SpecialFX demo - water texture

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

SpecialFX demo - water texture

Post by etcaptor »

Hi all,
Can someone tell me why water texture is streched?

Here is my sample picture

Image

Here is another user's picture. I found it in bugs topic, but his picture looks better than mine ;-)

Image

In my demo texture is streched /I thnik/

With many value parameters for addHillPlaneMesh and addWaterSurfaceSceneNode I cannot get good result.
Please help...
Any Idea?

Thanks in advance.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

The water looks a little bit ugly in the opengl version. Maybe you are using opengl?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Hi Niko,
and thanks for reply.
I have no problem with OpenGL version. Only the first picture is mine.
The second and third pictures was posted from another forum member. He wrote about Opengl problem related with third picture.

But my problem is that cannot make water like water on second picture.

When I compile example, get stretched texture on the water object.
What can to resolve that?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Hey boys,
I need our advice.

How to make realistic water? What functions or values I must to change?
Thanks.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

maybe is bug

Post by etcaptor »

I found the problem:
water texture is streched only if EMT_REFLECTION_2_LAYER or EMT_TRANSPARENT_REFLECTION_2_LAYER are used.
Post Reply