Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
Hi,
I want to add skybox, but I don't know how to do this.
I have been make a sky box with SpaceScape and I have two file, first .xml and second .jpg (6 file)
When I opened OS3D, I set the skybox menu in the scene but I don't know to add my file so that it can appeared in the scene.
Please give me some step to do this..
Thanks!
Offline
you should try to create your sky material manually this time and add the material as a resource in the scene
and then apply it to the skybox
Try a search on the forum this kind of question has been already answered.
Offline
i have been set material manually,
-------------------
material planet-skybox
{
technique tech-skybox
{
pass pass-skybox
{
ambient 0.588235 0.588235 0.588235 1
diffuse 0.588235 0.588235 0.588235 1
specular 0 0 0 1 10
texture_unit
{
texture xx/skybox/semesta_back6.jpg
}
}
}
}
---------
but why the skybox plugIT can't detected this material?
Offline
of course!
and i have been check at resources directories wheter my material was successfully imported or not, and it the material successfully imported,
but every I add skybox and then edit settings, there isn't material was detected.
thanks!
Offline
Did you added the textures resources to openspace3d too... ?
Otherwise, your material is incorrect, that's not a skybox material... It do not contain a "cubic" texture, so it can't be used as a skybox. It should be something like:
material planet-skybox
{
receive_shadows off
technique tech-skybox
{
pass pass-skybox
{
lighting off
texture_unit sky_map
{
cubic_texture xx/skybox/semesta.jpg separateUV
}
}
}
}
With your 6 image files named (http://www.ogre3d.org/docs/manual/manual_17.html#SEC83):
semesta_bk.jpg
semesta_dn.jpg
semesta_fr.jpg
semesta_lf.jpg
semesta_rt.jpg
semesta_up.jpg
When it comes to materials scripts, or Ogre's related script, Ogre's manual is very usefull: http://www.ogre3d.org/docs/manual/index.html#SEC_Top
Last edited by Nodrev (14-May-2012 17:05:17)
Offline
ok, thankyou
i will try soon
Offline
Pages: 1