Visualization?

Started by
4 comments, last by D_JildQuantum 20 years, 9 months ago
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
Quantum
Advertisement
Usually the professionals make their models in a 3D Modeler, rather than hand writing the coordinates.
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
-------Homepage: http://www.pclx.com
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".
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
Quantum
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
Quantum

This topic is closed to new replies.

Advertisement