Horde3D
http://www.horde3d.org/forums/

Skybox texture tutorial?
http://www.horde3d.org/forums/viewtopic.php?f=11&t=626
Page 1 of 1

Author:  wakko [ 25.01.2009, 19:24 ]
Post subject:  Skybox texture tutorial?

What I am really missing in the tutorials section are some hints on how to
create a custom texture for the skybox.
Unfortunately the most common skybox-texture format is
Code:
          TOP
   LEFT  FRONT RIGHT BACK
        BOTTOM

instead of the Horde format
Code:
          TOP
   LEFT  FRONT RIGHT
         BOTTOM
         BACK

Of course I can convert the common format to fit into Horde's pattern
and move the BACK-side "under" the BOTTOM and rotate it by 180°
but it somehow corrupts the distortion that makes the vertical sides
fit to the top and bottom sides when mapped onto the cube and it
always looks crappy. Creating my own one from scratch wasn't successful
due to problems with the distortion.
Are there any tutorials on how to make Horde-compliant skybox textures?
Or are there any available for free? A space-skybox would be great. ;)

Author:  Vurlix [ 26.01.2009, 00:32 ]
Post subject:  Re: Skybox texture tutorial?

You could easily modify horde to work with your skybox arrangement of choice :)

Author:  PuG [ 26.01.2009, 09:45 ]
Post subject:  Re: Skybox texture tutorial?

Ive not tried it, but perhaps a tool worth looking into is the ATI Cubemap maker. I think the current default direction does need moving to a more standard layout? :)

As for the skys themselves you may find it better to create a geo cube, and map the 6 texture accordingly not using the Skycube shader - at the moment theirs allot of pixel wastage.

Ive tried shunting in some very large images via the skybox, but almost impossible to get the quality without bogging down the system.

wakko wrote:
Or are there any available for free? A space-skybox would be great. ;)


If you want a space scene (starfield), I can make one up for you sometime.

Author:  SpOOky [ 26.01.2009, 15:35 ]
Post subject:  Re: Skybox texture tutorial?

I'd recommend using a sky dome. Less stretching that way. Been using them for a while now.

I switched to them when i've encountered the same problem as you have and was looking for a fix.

Author:  marciano [ 26.01.2009, 22:43 ]
Post subject:  Re: Skybox texture tutorial?

The cubemap layout that we have now is called vertical cross. We had the other layout (horizontal cross) before but more tools (like HDR Shop) seem to support the vertical cross, that's why it was changed. Actually there should not be any distortion when manually converting the cube layout from horizontal to vertical. I did that with the sample sky cube map and noticed no problems.

When we get dds support, dds will probably be the format of choice. ATI's CubeMapGen can be used to generate the dds from a vertical cross.

Author:  wakko [ 30.01.2009, 12:27 ]
Post subject:  Re: Skybox texture tutorial?

HDRShop was a great hint. Didn't know about that. Thanks

Author:  Orm [ 07.01.2010, 07:59 ]
Post subject:  Re: Skybox texture tutorial?

How would one go about implementing a 3D skybox such as those seen in Valves Source engine?

Author:  phoenix64 [ 07.01.2010, 16:14 ]
Post subject:  Re: Skybox texture tutorial?

afaik that's just a second scene with much smaller scale (you can see it e.g. in counterstrike when you fly away from the map, tiny geometry of a less detailed map floating around there with the center missing where the real map is inserted). Should be quite simple when done with Horde3D).

Author:  Orm [ 07.01.2010, 18:46 ]
Post subject:  Re: Skybox texture tutorial?

Yeah, I'm aware as to how they are made in Hammer, but what I am puzzled about is how they make the 360 degree camera and then render it out to the skybox utility texture.

Author:  phoenix64 [ 07.01.2010, 20:27 ]
Post subject:  Re: Skybox texture tutorial?

huh - is it even rendered to a texture? Why not just manually draw it as 3D geometry? The effect would be the same, but with less textures involved.

If you *really* want it on a texture (but this needs more rendering work actually as you cannot cull invisible geometry that quickly and have a much higher memory throughput), then you have to use 6 cameras, each for one cube side. I actually did something similar for point light sources somewhere in the community repo although I quite think that that branch is long dead (wasn't any good either).

Author:  DarkAngel [ 08.01.2010, 00:04 ]
Post subject:  Re: Skybox texture tutorial?

Yeah I'm pretty sure they place the camera inside the sky-box model and render the scene, then they clear the depth buffer, place the camera back inside the actual world model and render the scene again.

Author:  Orm [ 14.01.2010, 15:47 ]
Post subject:  Re: Skybox texture tutorial?

DarkAngel wrote:
Yeah I'm pretty sure they place the camera inside the sky-box model and render the scene, then they clear the depth buffer, place the camera back inside the actual world model and render the scene again.


Picture a skinny pale white guy being crushed by big block letters that spell out the word "DERP!" and you get the general idea of how I am feeling right now.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/