Skip to main content
GameDev.net gamedev.net
🔒 Locked

Sphere Mapping

Started by sinistrx Oct 19, 2000 at 8:11 PM 3 replies 350+ views
Original Post
sinistrx
sinistrx
Quick question, I have a kind of weird box shape (not exactly a cube but close) and I want to do environment mapping on it, are there any parameters I can do other than sphere mapping? Or is there a way to make sphere mapping so I can see more of the texture I''ve made on the cube? Right now it shows only about 1/16th of the texture which is somewhere in the middle so it just comes up looking like a big blob of changing colors on the object.
Strylinys
Strylinys
Enlarge the area it''s reflecting...

(dunno, it''s a guess, haven''t done sphere mapping, but it seems obivous to me... )

S.
baskuenen
baskuenen
There''s a sneaky thick for environment mapping:
Have you tried using the vertex normal values, and using them as texture coords? If your normal is in camera space, you can drop the Z value of the normal and use X&Y part as the TexCoords

OpenGL also does this in camera space, but you don''t have to. But it can look a bit ugly from the sides...

zedzeek
zedzeek
true the nvidia cards have an extension that does this in hardware nv_normal_ext? (maybe) also one for relection but im a bit pissed to suss that out at the moment extension wise i mean


http://members.xoom.com/myBollux
Bruno
Bruno
Check this link

http://www.sgi.com/software/opengl/advanced97/programs/programs.html

Bruno

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.