• Advertisement

Archived

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

Transform ONE object ?

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I'm working on a simple 3D engine in OpenGL. And wrapping most of it. My goal is that the API isn't "visible", so I can make a DX version later Well, my problem right now is how I manipulate ONE object. I have a class called cPrimitive, it's basicly a Mesh, storing vertices and vertexindexes. It can represent cubes, triangles, pyramids, and such. But I want to be able to transform the cPrimitive. Meaning Translating, Rotating or Scaling it based on it's own vertices and not the world. I know that I can:
  
glPushMatrix();
  glTransformf(...); // or whatever

glPopMatrix();
  
But that must be done every time I render. I want to _permanently_ change the primitive. Is there some OGL or GLUT support for that? Or do I have to code my own Matrix classes and bring up my old algebra book? "No lies of sugar can sweeten the sournes of reality" }+TITANIUM+{ A.K.A. DXnewbie[onMIRC] [edited by - Seriema on January 31, 2003 8:23:12 PM]

Share this post


Link to post
Share on other sites
Advertisement
Gotta code your own.

------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."

Share this post


Link to post
Share on other sites

  • Advertisement