Jump to content
  • Advertisement


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


Transform ONE object ?

This topic is 5767 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:
  glTransformf(...); // or whatever

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
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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!