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

Cube Mapping...

Started by BeyondDeath Dec 7, 2000 at 4:11 PM 5 replies 350+ views
Original Post
BeyondDeath
BeyondDeath
Ok, just wondering how to do this ive been trying for 3 hours with nothing that will even compile... looking for an explination of how to do this thnx allot
tcs
tcs
Hmmm... you really had much trouble ? I just read the ext doc and it took me 10 minutes.

You simply have 6 new texture targets for each of the cube textures. Then you have to deactivate TEXTURE_2D and 1D. Then you bind the cube texture and activate the cubemapping with a normal glenable statement. Then using nv_texgen_reflection and activating it for the first three tex coords will bring you the reflection effect.

You ca download a class from my website that does all this work for you. I also have an cubemap & metaball example from Ofer Kapota on my site...

Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
BeyondDeath
BeyondDeath
Oh great, has clear code in this at least, i got this program in my email the other day from him, but with no source. Even tho it is missing 3-4 files, i got the idea now ;p thnx a bunch!
BeyondDeath
BeyondDeath
Ok, its sorta working... its putting the textures on the sphere from the cube its in, but there a problem if i rotate the box or the sphere the reflection isnt adjusting if you dont understand ask and i can send u the thing thnx a bunch all
tcs
tcs
Don''t use his source code, simply use the cubemapping class on my site

Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
okapota
okapota
hi there, i dont belive my source code is a very good thing to use, its pretty messy.
but if the source code is missing some files, tell me which are those.
this is strange, since i have been told that no file is missing, and it also worked on my computer.
tcs
tcs
I also got no mails about missing stuff in the version that''s on my site. Please inform me if there are any problems, I''ll correct them


Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity

Topic Locked

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

Sign in to reply to this topic.