Sign in to follow this  
Gumgo

OpenGL Quick sphere mapping question

Recommended Posts

OpenGL's built-in sphere mapping doesn't seem to be affected by glLookAt(). Is there a way to make the "camera" affect sphere mapping? Most objects will be static so sphere mapping won't be visible on them since they don't move.

Share this post


Link to post
Share on other sites
A/ it should (wrt rotations)
B/ why sphere mapping?, cubemapping gives better results (and is just as fast or even faster)

Share this post


Link to post
Share on other sites
I'm just using sphere mapping because it's simpler and I don't really care if it is really that accurate (and this is my first OpenGL project).

I would think that it would work as well but the texture doesn't "move" when I move/rotate the camera (by the way, I meant to type gluLookAt(), not glLookAt())

EDIT: Problem turned out to be something stupid... for some reason, I had the gluLookAt after glMatrixMode( GL_PROJECTION ); and not GL_MODELVIEW and then I had (even worse) glLoadIdentity()!

Anyways, is it possible to zoom out a little with the sphere map (without messing up the normals because I will have lighting soon)? I can hardly see the texture.

[Edited by - Gumgo on June 7, 2007 6:46:16 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this