Image in Background?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wEEp
Posts: 70
Joined: Thu Nov 27, 2008 7:55 am

Image in Background?

Post by wEEp »

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!
cdesseno
Posts: 10
Joined: Sun Dec 14, 2008 8:03 pm
Location: Buenos Aires, Argentina
Contact:

Post by cdesseno »

1)
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")
);
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.
wEEp
Posts: 70
Joined: Thu Nov 27, 2008 7:55 am

Post by wEEp »

cdesseno wrote:1)
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")
);
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.
Thanks, but why do i need it 6 times?
sjb
Posts: 19
Joined: Tue Dec 23, 2008 10:35 pm
Location: Sweden

Post by sjb »

wEEp wrote:
cdesseno wrote:1)
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")
);
2) It is in http://irrlicht.sourceforge.net/docu/example004.html.
Thanks, but why do i need it 6 times?
Because it's a box. So one texture for each side.
wEEp
Posts: 70
Joined: Thu Nov 27, 2008 7:55 am

Post by wEEp »

how do i draw it then?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The same way you draw all scene nodes in Irrlicht. smgr->drawAll().

As for moving, you can use a FPS camera and a key map to do the movement, or you can write custom movement code.

Travis
Post Reply