Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #709: resizingFullscreen while having dynamic water
Product:
TV3D SDK 6.2
Language:
C#
Current State:
New
Resolution:
Unconfirmed
Created On:
May 31st, 2007
Last Modified:
May 31st, 2007
Reported By:
ricardos
When you have dynamic water (like in the bsp-temple example) and you try to resize fullscreen it gives the 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' error.

error caused by:
TextureFactory.LoadTexture("water.bmp", "Water", -1, -1, TrueVision3D.CONST_TV_COLORKEY.TV_COLORKEY_NO, true, true)
water = Scene.CreateMeshBuilder("Water")
water.AddDynamicWater(-882.3169f, -338.25f, 11.10005f, 64, false,false,false) //this one
water.ScaleMesh(14f, -18f, 14f)
water.SetTexture(FPMain.Globals.GetTex("Water"), -1)
surfaceRender = Scene.CreateCubicEnvironmentMap(128)//and this one
water.SetEnvironmentMap(true, surfaceRender.GetTexture(), -1)

workaround:
call the Destroy() functions before resizing and recreate the water after the resizing is done

disscussed with sylvain and len on the irc channel

Comments:

No comments available.