I am create new water surface, but I have texturing broblem

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

I am create new water surface, but I have texturing broblem

Post by Magnet »

I am create a nwe water surface.
In this surface I am realize hits on water.
But I can't texture this surface normaly.
I am rotate my camera and take this:
Image

Please review my code and halp me.
http://www.webpolit.com/irr/MyFish.rar
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

Why rays reconverge in one point?
Whence these rays?
As their possible avoid?

If I set for HillPlaneMesh:

Code: Select all

node->setMaterialTexture(0,driver->getTexture("../../media/stones.jpg"));
node->setMaterialTexture(1,driver->getTexture("../../media/water.jpg"));
node->setMaterialType(video::EMT_REFLECTION_2_LAYER);
I have same effect.
Image
Post Reply