Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #450: No render for Multiple Water Planes
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
Closed
Resolution:
Fixed
Created On:
July 11th, 2005
Last Modified:
July 14th, 2005
Reported By:
Vinnepin
The engine doesn't render multiple water planes u created.

He only renders the first Water Plane created, although he does create the render surfaces right.

Comments:

Posted by SylvainTV on July 13th, 2005 at 9:27 PM
Well i tried here :

It seemed to work..



CTVMesh* plane1 = pTVApp-pScene-CreateMeshBuilder();
CTVMesh* plane2 = pTVApp-pScene-CreateMeshBuilder();

plane1-AddFloor(0, 0, 0, 30, 30, 0, 1, 1, true);
plane2-AddFloor(0, 50, 50, 80, 80, 0, 1, 1, true);

CTVRenderSurface* refl1 = pTVApp-pScene-CreateRenderSurface(256,256,true);
CTVRenderSurface* refr1 = pTVApp-pScene-CreateRenderSurface(256,256,true);
CTVRenderSurface* refl2 = pTVApp-pScene-CreateRenderSurface(256,256,true);
CTVRenderSurface* refr2 = pTVApp-pScene-CreateRenderSurface(256,256,true);

CTVGraphicEffect ge;
ge.SetWaterReflection(plane1, refl1, refr1, 0, &cTV_PLANE(0,1,0,0) );
ge.SetWaterReflection(plane2, refl2, refr2, 0, &cTV_PLANE(0,1,0,0) );


then that in render.

refl1-StartRender(false);
atmos.Atmosphere_Render();
refl1-EndRender();

refl2-StartRender(false);
atmos.Atmosphere_Render();
refl2-EndRender();


refr1-StartRender(false);
atmos.Atmosphere_Render();
refr1-EndRender();

refr2-StartRender(false);
atmos.Atmosphere_Render();
refr2-EndRender();


And to me it seemed ok, both render correctly :(

You should try to reproduce the problem on a smaller example (without using classes and things to keep everything simple).