I want all my models to use "setMaterialFlag( EMF_FOG_ENABLE, 1);" So I want to use that function in the "IVideoDriver" ... But it doesn't work... So I have maybe to use the "setMaterial" function (as "IVideoDriver" got) But I don't know how to make a SMaterial..
Help
Materials? SMaterial?
-
- Posts: 13
- Joined: Wed Sep 28, 2005 5:15 pm
- Location: sweden
-
- Posts: 322
- Joined: Tue Aug 30, 2005 10:34 am
- Location: slovakia
-
- Posts: 13
- Joined: Wed Sep 28, 2005 5:15 pm
- Location: sweden
-
- Posts: 24
- Joined: Fri Oct 28, 2005 10:05 am
- Location: Gold Coast, QLD, Australia
Could have an Object Manager that stores an array/vector/map what eva ... of pointers to your objects. It calls a function that steps through each object flagging the effect, such as fog.
Or you could try and edit the source so that you can call from IVideoDriver a function that links with you SceneManager and flags all SceneNodes, but thats gettin difficult...
Or you could try and edit the source so that you can call from IVideoDriver a function that links with you SceneManager and flags all SceneNodes, but thats gettin difficult...
"do it, do it now"
-
- Posts: 13
- Joined: Wed Sep 28, 2005 5:15 pm
- Location: sweden