Hello Com,
I wanted to put an image ( a space image ) in a background, but i dont know how. I have now a mesh in the middle and an image should be now as background around it. How can i do it?
and the 2nd one is, i cant find how i can move something when i press s , that it comes back, when i press w, that it moves to the front. I looked at all tutorials but i cant find it ;O. I know its somwhere there, but i cant find it-.-'
Cheers!
Image in Background?
1)
If you mean skybox use this:
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.
If you mean skybox use this:
Code: Select all
scene::ISceneNode* SkyBox = smgr->addSkyBoxSceneNode(
driver->getTexture("data/images/sky.jpg"),
driver->getTexture("data/images/sky.jpg"),
driver->getTexture("data/images/sky.jpg"),
driver->getTexture("data/images/sky.jpg"),
driver->getTexture("data/images/sky.jpg"),
driver->getTexture("data/images/sky.jpg")
);
Thanks, but why do i need it 6 times?cdesseno wrote:1)
If you mean skybox use this:
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.Code: Select all
scene::ISceneNode* SkyBox = smgr->addSkyBoxSceneNode( driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg") );
Because it's a box. So one texture for each side.wEEp wrote:Thanks, but why do i need it 6 times?cdesseno wrote:1)
If you mean skybox use this:
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.Code: Select all
scene::ISceneNode* SkyBox = smgr->addSkyBoxSceneNode( driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg") );