Hello,
I have a large warehouse which is my world. In this I have many models. I want the whole warehouse to be visible all the time but I want the far value applied on models within .
Example
- If this was possible it would be great to set the far value for the Warehouse to 18000 and set far value to models within to 3000.
The reason why I need far value on models set down is I have many and I need better performance. However my warehouse looks funny with a low far value.
Please help.
Thanks
Grant
farvalue
You could use fogging to make the farvalue drop off point invisible and you'd just get fog going off into the distance, but of course this might not suit your warehouse as you don't usually have fog inside...
I guess an option could be to first render the warehouse with the farvalue required and then change the farvalue in the camera and then render the rest of the objects... I'm not sure if that would work very well and you'd have to edit the source or call render methods yourself rather than smgr->drawAll();
Another option is that i guess you could do this with shaders, so if you can manage shaders then that could be the easiest method.
I guess an option could be to first render the warehouse with the farvalue required and then change the farvalue in the camera and then render the rest of the objects... I'm not sure if that would work very well and you'd have to edit the source or call render methods yourself rather than smgr->drawAll();
Another option is that i guess you could do this with shaders, so if you can manage shaders then that could be the easiest method.
-
- Posts: 25
- Joined: Fri Jul 27, 2007 10:02 am
Irrlicht does support fog. It's in one of the examples... but i forget which...
You have to set up the driver initially with fog values such as where it starts and ends etc and then for each node you have to set it to receive the fog, in the materials i think.
So check the API (IVideoDriver and ISceneNode) for fog functions.
You have to set up the driver initially with fog values such as where it starts and ends etc and then for each node you have to set it to receive the fog, in the materials i think.
So check the API (IVideoDriver and ISceneNode) for fog functions.