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 / [DBP] - 1 Object/1 Texture Skybox system with no visible edges!

Author
Message
Le Verdier
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 15th Aug 2012 20:55
Here is a skybox object I use in my 20liner project

Having a single square texture for the skybox may gain performance on older graphics cards...

The 6 skybox sides are divided into 4 part each and reassembled into a 5*5 parts grid
A border is also drawn around each part

To calculate the side texture size:
for example with a final texture of 1024 size
(not necessary pow of 2 but there a annoying bug in Save Image function)
Int 1024/5 = 204
204 - 2 = 202 (Border)
202*2 = 404*404 Side texture size!





And the texture Generator:




Requires the IanM's Matrix1DLLs

I use the skybox sample from Here


Generated texture in the download

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-29 02:06:35
Your offset time is: 2024-03-29 02:06:35