View Full Version : solids of revolution?
03-29-2002, 09:27 AM
Hello, I want to construct a 3d object from a 2d curve (well, not exactly a curve: small lines) rotating it around an axis. Can I use glRotate betwen calls to glVertex* to make a mesh? I mean, changing the modelview matrix will affect the continuity of my model by breaking my polygon strips? Thanks! Bye.
03-29-2002, 11:05 AM
If memory serves. glRotate (and any other matrix functions for that matter) are not allowed to be invoked between glBegin and glEnd.
03-29-2002, 12:29 PM
But i dont think that will stop you from using your own matrix functions.
03-29-2002, 06:57 PM
ok. Thanks on that one. But I still don't really know how to do it without defining some manual transforming sub-routines. I mean, it's not really a problem for me but I just know there's some other (and more elegant) way to do it! I'm really new to opengl so maybe I'm missing something http://www.opengl.org/discussion_boards/ubb/smile.gif. Well, either way I'm liking it!!! Thanks!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.