Search found 3 matches

by taiBsu
Tue Jul 29, 2014 2:42 pm
Forum: Game Programming
Topic: adding fog underwater
Replies: 3
Views: 3682

Re: adding fog underwater

kklouzal wrote:Each node that you want to receive fog must also have fog enabled.
so the camera has got to have fog enabled too if underwater, right?
by taiBsu
Tue Jul 29, 2014 2:16 pm
Forum: Game Programming
Topic: adding fog underwater
Replies: 3
Views: 3682

adding fog underwater

Hey guys,
I want to add fog to my camera view if it comes below my water pane's y position. I saw there's a function called

Code: Select all

driver->addFog()
but adding this function into my main loop surrounded by an if command changes nothing. what do I have to look for adding that effect?
Regards
taiBsu
by taiBsu
Fri Aug 16, 2013 12:07 pm
Forum: Code Snippets
Topic: Camera for RPG
Replies: 8
Views: 3478

Re: Camera for RPG

I simply don't get it. I added the .cpp and the .h files to my project but when I enter

Code: Select all

 
CSceneNodeAnimatorCameraRPG* camera = new CSceneNodeAnimatorCameraRPG(device->getCursorControl(), 3.0f, 1.0f, 0.5f, 30.0f, vector3df(0, 0, 1), u8(001));
 
I simply get a black screen - why??