camera distance
camera distance
Hello, I have a large terrain mesh and want to see accross the entire mesh, but it seems there is a clipping range built into the camera distance ..
any ideas to extend, or am i being an idiot? sorry - i am primarily a 3D artist/animator (max) determined to learn at least some basic programming..
any ideas to extend, or am i being an idiot? sorry - i am primarily a 3D artist/animator (max) determined to learn at least some basic programming..
-
- Posts: 67
- Joined: Fri Jan 23, 2004 5:04 am
Thanks!
appreciate the help
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
i wanted to try that. but i am not yet able to work with the docu! i have never worked with such a thing like that documentation of an api or what irrlicht is.
can you give me a step by step example of to use the docu to use the setFarValue
to the camera (smgr->addCameraSceneNodeFPS(0, 0.0f, 0.0f, -1, 0, 0) ; )
can you give me a step by step example of to use the docu to use the setFarValue
to the camera (smgr->addCameraSceneNodeFPS(0, 0.0f, 0.0f, -1, 0, 0) ; )
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
sys: 2500+Barton 512MB 6600GT WinXP
You can use the code like this to fix the "fisheye view":
Code: Select all
#define PI 3.1415926538
.
.
.
cam->setFOV(PI/2);
The only thing to fear is running out of beer!
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
ok the link gives me that result but i realy don't know how to use that exactly.virtual void irr::scene::ICameraSceneNode::setFarValue ( f32 zf ) [pure virtual]
Sets the value of the far clipping plane (default: 2000.0f)
Parameters:
zf: New z far value.
how to use setFarValue ? i want to set the farvalue to 20000.0f --
setFarValue ( 20000.0f ) ;
but how can i use the docu so that i know what to wright ? i don't want to trouble everybody with my garbage ... i whant to know how to use the docu
i found that by seraching the forum
so were did i get camera? i want to use smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f, -1, 0, 0); ..... if i know how to use the docu i don't ask silly question again I swear!!!!! : !:camera->setFOV(70);
camera->setFarValue(1000);
camera->setNearValue(1.4);
Last edited by LordNaikon on Mon May 24, 2004 1:31 pm, edited 1 time in total.
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
sys: 2500+Barton 512MB 6600GT WinXP
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
thx u fery much !
smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f, -1, 0, 0);
it is thus a shortened way of writing
scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f, -1, 0, 0);
without creating a camera or only internally creation of it so that i can't use
setFarValue( 20000 ); ( if this what a say is not true then it is unimportant)
it works and only this is important
smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f, -1, 0, 0);
it is thus a shortened way of writing
scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f, -1, 0, 0);
without creating a camera or only internally creation of it so that i can't use
setFarValue( 20000 ); ( if this what a say is not true then it is unimportant)
it works and only this is important
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
sys: 2500+Barton 512MB 6600GT WinXP
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact: