Horde3D
http://horde3d.org/forums/

Skyboxes
http://horde3d.org/forums/viewtopic.php?f=2&t=86
Page 1 of 1

Author:  mabrown [ 14.05.2007, 13:32 ]
Post subject:  Skyboxes

I've noticed that the skybox in the Chicago demo comes out black, despite there being a texture mapped to it. I tried applying a sky texture to it but it still came out black. Is there a trick to making the sky visible?

Mark

Author:  SpOOky [ 14.05.2007, 13:50 ]
Post subject: 

lol, i`ve encountered the same problem and now i was fiddling with it. i had modified the skybox.shader.xml and commented the line
Code:
//gl_FragColor.rgb = vec3( 0, 0, 0 );      // Black sky
and uncomented the line
Code:
gl_FragColor.rgb = albedo;
(lines 65 and 66)
plus i have modified the lighting.shader.xml and did the same to the lines 29 and 30. now i was searching a way to turn the spotlight into an ambient light to test if this works. any idea on how to achieve this?

paul

Author:  mabrown [ 14.05.2007, 15:01 ]
Post subject: 

SpOOky wrote:
lol, i`ve encountered the same problem and now i was fiddling with it. i had modified the skybox.shader.xml and commented the line
Code:
//gl_FragColor.rgb = vec3( 0, 0, 0 );      // Black sky
and uncomented the line
Code:
gl_FragColor.rgb = albedo;
(lines 65 and 66)
plus i have modified the lighting.shader.xml and did the same to the lines 29 and 30.


Thanks Paul! Well spotted. I've got sky now :D

SpOOky wrote:
now i was searching a way to turn the spotlight into an ambient light to test if this works. any idea on how to achieve this?


No idea I'm afraid. I have messed with some of the light values. My sky came up as soon as I made your changes. I will have a look tomorrow (but you will probably get there first!)

Mark

Author:  SpOOky [ 14.05.2007, 15:03 ]
Post subject: 

actually it doesnt require that. i forgot to copy the skybox.scene.xml to my content folder. :oops: thanks for the horde log marciano! ;)

now i was rushing to post the results. im happy i could help ;)

and in other news, ladies and gents, we have sky!
Image

Author:  marciano [ 14.05.2007, 22:19 ]
Post subject: 

Looking nice, but you should adjust the position and color of the light source so that it is more like the sun in your skybox :)

Author:  Mirytabel [ 09.11.2009, 13:40 ]
Post subject:  Re: Skyboxes

Hi.
I would like to change example Chicago replacing the sunset with a blu sunny sky. How can I do that?

Author:  Volker [ 09.11.2009, 15:44 ]
Post subject:  Re: Skyboxes

Just replace the skybox texture file and adjust the material to the new file name

Author:  Mirytabel [ 10.11.2009, 10:39 ]
Post subject:  Re: Skyboxes

I already tried so, but the sky comes out black. Should I perhaps use images with a fixed dimension? But in this case... which dimension? And where can I find a suitable one?

Author:  Volker [ 10.11.2009, 11:02 ]
Post subject:  Re: Skyboxes

The skybox dds file is a cube map,... is your's one too?

Author:  marciano [ 12.11.2009, 01:13 ]
Post subject:  Re: Skyboxes

As Volker mentions, our skybox is currently using a cube map. This allows to modify the texture coordinates so that the box always appears to be far away, even if you stand directly in front of it. However, it would also be possible to use a huge box with standard texturing instead (makes texture creation a bit easier).

BTW, a nice tool for generating dds cube maps is ATI CubeMapGen. It can take a vertical cross texture as input and generate a dds cube map from it.

Author:  Mirytabel [ 13.11.2009, 20:38 ]
Post subject:  Re: Skyboxes

Thank you.

As you suggested, I easily solved using CubeMapGen :)

Author:  brucelu [ 13.10.2012, 13:52 ]
Post subject:  Re: Skyboxes

marciano wrote:
As Volker mentions, our skybox is currently using a cube map. This allows to modify the texture coordinates so that the box always appears to be far away, even if you stand directly in front of it. However, it would also be possible to use a huge box with standard texturing instead (makes texture creation a bit easier).

BTW, a nice tool for generating dds cube maps is ATI CubeMapGen. It can take a vertical cross texture as input and generate a dds cube map from it.


Hi, i am a freshman, so i want to ask you how to use CubeMapGen to convert a picture(jpg, bmp, or other formats) into cube map. since CubeMapGen now has another name---the modified CubeMapGen, i don't know what the input is ?

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