Archived

This topic is now archived and is closed to further replies.

Visualization?

This topic is 5541 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I was trying to construct a 3D Solid Pyramid, and i was wondering: How do all the proffesionals visualize the coordinates? because right now, its only a 3 Sided pyramid, with half of it missing... Heres the coordinate code:
CQuantumVertex CQVTriangle[]=  {	{0.0f,1.0f,0.0f,0xffff0000},{-1.0f,-1.0f,-1.0f,0xff00ff00},{1.0f,-1.0f,-1.0f,0xff0000ff},//Backside Triangle

{0.0f,1.0f,0.0f,0xffff0000},{-1.0f,-1.0f,1.0f,0xff0000ff},{-1.0f,-1.0f,-1.0f,0xff00ff00},//LeftSide Triangle

{0.0f,1.0f,0.0f,0xffff0000},{1.0f,-1.0f,1.0f,0xff00ff00},{-1.0f,-1.0f,1.0f,0xff0000ff},	 //Front Face

{0.0f,1.0f,0.0f,0xffff0000},{1.0f,-1.0f,-1.0f,0xff0000ff},{1.0f,-1.0f,1.0f,0xff00ff00}}; //Rightside Triangle

{1.0f,-1.0f,-1.0f,0xffffff00},
{-1.0f,-1.0f,1.0f,0xffffff00},
{1.0f,-1.0f,1.0f,0xffffff00}};

Thanks. Quantum

Share on other sites
Usually the professionals make their models in a 3D Modeler, rather than hand writing the coordinates.

Share on other sites
A pyramid is not hard to visualize, draw it out on paper and then formulate the vertices.

"Usually the professionals make their models in a 3D Modeler, rather than hand writing the coordinates."

Sometimes it''s useful to procedurally generate shapes that fit a certain criteria, (spheres, cones, cubes, pyramids, etc). Do you think 3D Studio Max loads the spheres from a file? It''s more useful to have algorithms that generate these objects in different ways, as to allow more diversity in the object''s make-up.

-------
Homepage: http://students.washington.edu/andrey

Share on other sites
Of course primitives are more easily generated through an algorithm, but thats not hand-write the coordinates, now is it? Also, I''m pretty sure that D_JildQuantum was referring to objects other than primitives when he spoke of "professionals".

Share on other sites
Ok, i figured out what my problem was. I had it in TriangleStrip mode, instead of TriangleList... Oh, and i was wondering, how do i get it to rotate in 2 directions at once? i can only get it to rotate along one axis each time...

Quantum

Share on other sites
Nevermind i solved it on my own ^_^ i knew it had to do something with Multiplication, and it wouldnt let me multiply in the function call.

Quantum

1. 1
2. 2
3. 3
Rutin
16
4. 4
5. 5

• 10
• 10
• 14
• 10
• 25
• Forum Statistics

• Total Topics
632647
• Total Posts
3007640
• Who's Online (See full list)

There are no registered users currently online

×