i'm trying to scale the skybox and i get no result ... i made the changes on the forum ... rotation works but scale don't ...
Also i tried to change
f32 l = 500.0f;
f32 t = 1.0f - onepixel;
f32 o = 0.0f + onepixel;
the l value. but the texture is showing at the same dimension ...
I want an larger field of view but only on texture ...
Anyone have resized the size of sky box ?
(i want something change fov ... but to not affect other nodes .. only the skybox rendering ...)
SkyBox resize?
take irrlicht12 code
add magic line's
compile new dll ...
take example 10, copy dll, change global include path
put core:
scene::ISceneNode *skybox = smgr->addSkyBoxSceneNode(
and
smgr->drawAll();
skybox->setScale(irr::core::vector3df(skybox->getScale().X+0.01,skybox->getScale().X+0.01,skybox->getScale().X+0.01));
driver->endScene();
run ... and see no change on the box size ... if it was a box all the textures of sky box should change size .... and rendering mode ....
wait until skybox started to disappear ( no change in thexture rendering ... no real box ....)
Get depressed because even drawing an box and some textures ... in the right way seems is making lot't of problems
Post this ... and hope someone know the magic way to dray an box ..
be back very soon
add magic line's
compile new dll ...
take example 10, copy dll, change global include path
put core:
scene::ISceneNode *skybox = smgr->addSkyBoxSceneNode(
and
smgr->drawAll();
skybox->setScale(irr::core::vector3df(skybox->getScale().X+0.01,skybox->getScale().X+0.01,skybox->getScale().X+0.01));
driver->endScene();
run ... and see no change on the box size ... if it was a box all the textures of sky box should change size .... and rendering mode ....
wait until skybox started to disappear ( no change in thexture rendering ... no real box ....)
Get depressed because even drawing an box and some textures ... in the right way seems is making lot't of problems
Post this ... and hope someone know the magic way to dray an box ..
be back very soon
Dissapearing of skybox after this line occurs in Irr.011. You must add line like AutomaticCullingEnabled = false; for avoid this. But in Irr.012 culling is dissabled for sky box /check it/
Scale for skybox by default is 1,1,1.
Why do tou not try instead
skybox->setScale(irr::core::vector3df(skybox->getScale().X+0.01,skybox->getScale().X+0.01,skybox->getScale().X+0.01));
something like
skybox->setScale(irr::core::vector3df(10,2,10));
for test?
Scale for skybox by default is 1,1,1.
Why do tou not try instead
skybox->setScale(irr::core::vector3df(skybox->getScale().X+0.01,skybox->getScale().X+0.01,skybox->getScale().X+0.01));
something like
skybox->setScale(irr::core::vector3df(10,2,10));
for test?
rotation is working fine ...
skybox->setRotation(irr::core::vector3df(skybox->getRotation().X+0.01,skybox->getRotation().X+0.01,skybox->getRotation().X+0.01));
scaling have no effect ... except culling made by video card ... tried you sugestions too
in the advances topic somewone say that the angles remain the same (no mather what size is the skyboc )... don't know why ...
skybox->setRotation(irr::core::vector3df(skybox->getRotation().X+0.01,skybox->getRotation().X+0.01,skybox->getRotation().X+0.01));
scaling have no effect ... except culling made by video card ... tried you sugestions too
in the advances topic somewone say that the angles remain the same (no mather what size is the skyboc )... don't know why ...
That was wat i was saying ... is happening in original irrlicht too ...
But scaling, re size is working fine ... the changes only don't have visible effect ...
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=8590
.... any way ... i updated the code ... my code ... all in one post with -out duplicates... and i test it and is working fine (of curse) resize, move .. etc ...
But scaling, re size is working fine ... the changes only don't have visible effect ...
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=8590
.... any way ... i updated the code ... my code ... all in one post with -out duplicates... and i test it and is working fine (of curse) resize, move .. etc ...