Archived

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

D_JildQuantum

Visualization?

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



CQuantumVertex CQVQuad[]=  {{-1.0f,-1.0f,-1.0f,0xffffff00},
							{1.0f,-1.0f,-1.0f,0xffffff00},
							{-1.0f,-1.0f,1.0f,0xffffff00},
							{1.0f,-1.0f,1.0f,0xffffff00}};
Thanks. Quantum

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites