setPosition doesn't seem to work on skybox/skydome
Posted: Sun Jan 02, 2011 4:22 pm
hi sirs,
Pardon my noobishness, but I have encountered another most likely trivial problem. I was experimenting a bit with skyboxes and skydomes and I encountered a little snag and I wanted to confirm if its just my noobishness that's getting me into trouble again.
Taking the example from 12.TerrainRendering, just below the lines:
I just added this 2 lines to test the setPosition:
it didn't show any warnings and errors so i'm expecting it to work, but it didn't. I already tried huge numbers (millions) but the position won't budge. Is the setPosition intended to work on skyboxes/skydomes? Again, please forgive my noobishness.
Pardon my noobishness, but I have encountered another most likely trivial problem. I was experimenting a bit with skyboxes and skydomes and I encountered a little snag and I wanted to confirm if its just my noobishness that's getting me into trouble again.
Taking the example from 12.TerrainRendering, just below the lines:
Code: Select all
scene::ISceneNode* skybox=smgr->addSkyBoxSceneNode(
driver->getTexture("../../media/irrlicht2_up.jpg"),
driver->getTexture("../../media/irrlicht2_dn.jpg"),
driver->getTexture("../../media/irrlicht2_lf.jpg"),
driver->getTexture("../../media/irrlicht2_rt.jpg"),
driver->getTexture("../../media/irrlicht2_ft.jpg"),
driver->getTexture("../../media/irrlicht2_bk.jpg"));
scene::ISceneNode* skydome=smgr->addSkyDomeSceneNode(driver->getTexture("../../media/skydome.jpg"),16,8,0.95f,2.0f);
I just added this 2 lines to test the setPosition:
Code: Select all
skybox->setPosition(core::vector3df(0.f, -10000.f, 0.f));
skydome->setPosition(core::vector3df(0.f, -10000.f, 0.f));