|
From: Max <ma...@va...> - 2001-02-27 21:26:19
|
> Hi there! > > I'm working with some OpenGL, as some of you might know. > > I really would like to make some kind of a Doom-like engine. But, how do I > make cameras? I've heard that cameras in OpenGL is slow, and that you therefor > should rotate and move the entire scene. Can that be true?? Is it possible to > rotate an entire Matrix? Like, glMatrix(); > well, I don't want to offend you, but aren't you going a little too fast? If you don't know cameras, if you don't even know how to rotate the matrix, can you really make an engine(even as simple one as doom)? Maybe you should try something easier first, some simpler games, I can personally help you if you want. Anyway, the answer: something like 'real' camera doesn't actually exist in OGL. And yes, you do rotate, translate or whatever the whole world. But doing that is identical to rotating, translating or whatever the matrix, since the matrix itself reperesents the world. A matrix contains a lot of useful information: x-axis y-axis z-axis (above three are vectors) scale factor for each of these and some other. This is the case for the modelview matrix, of course. I believe people on this list are sick of me, since I always suggest my site, but I'll do it again: www.vault13.cjb.net There's a tutorials about rotation/translation and such things. email me if anything is unclear: ma...@va... Max |