Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Cube Mapping for Sky Sphere

Author
Message
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 5th Sep 2003 23:41 Edited at: 10th Sep 2003 04:36
Here is my zip to generate a 360 x 360 degree view of a lake that I mapped to a Sky Spere via Cube Mapping

http://www.geocities.com/jjames@pacbell.net/CubeMappedSkySphere.zip


I had some trouble with Cube Mapping and Rich Helped me out. Here are the Key Points.

Quote: "
Front, Back, Top, Bottom, Left, Right

Without seeing the textures you're using I can't comment further. The textures should be a uniform size (i.e. 256x256 or 512x512) and should be applied to the object in the correct sequence as above
"


In Addition I came accross this excerpt from a book on Nvidia Cg graphics that add some usefull info, be patient it is quite slow to load, but worth the wait

http://www.aw-bc.com/samplechapter/0321194969.pdf

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 6th Sep 2003 03:53
Hmmm, interesting effect. If you edit each image and get rid of one pixel blue margin along top and down side, it will get rid of those annoying lines between faces.

Pity you couldn't get a fully seamless design between all faces.

The programmer formerly known as sonic

Login to post a reply

Server time is: 2024-04-26 02:29:28
Your offset time is: 2024-04-26 02:29:28