Mhydrax, water isn't visible

noferat

03-01-2011 10:47:12

Water does not appear in the logs says that the mesh is created, but it is not there.
My code

smgr.ShadowTechnique = ShadowTechnique.SHADOWTYPE_NONE;
hydrax = new MHydrax.MHydrax(smgr, cam, mRoot.AutoCreatedWindow.GetViewport(0));
MHydrax.MProjectedGrid module = new MHydrax.MProjectedGrid(// Hydrax parent pointer
hydrax,
new MHydrax.MPerlin(),
new Mogre.Plane(new Vector3(0, 1, 0), new Vector3(0, 0, 0)),
MHydrax.MMaterialManager.MNormalMode.NM_VERTEX,
new MHydrax.MProjectedGrid.MOptions(256, 35, 50, false, false, true, 3.75f));
hydrax.SetModule(module);
hydrax.LoadCfg("ProjectedGridDemo.hdx");
hydrax.Create();


Log, contains no errors:

...............................................
13:33:04: [Hydrax] Hydrax created.
13:33:04: [Hydrax] ProjectedGridDemo.hdx loaded.
13:33:04: [Hydrax] Config file version doesn't correspond with Hydrax version.
13:33:04: [Hydrax] Creating module...
13:33:04: [Hydrax] Creating ProjectedGridVertex module.
13:33:04: [Hydrax] ProjectedGridVertex created.
13:33:04: [Hydrax] Module created.
13:33:04: [Hydrax] Initializating RTT Manager...
13:33:04: [Hydrax] RTT manager initialized.
13:33:04: [Hydrax] Registring device restored listener...
13:33:04: [Hydrax] Device restored listener registred.
13:33:04: [Hydrax] Creating materials...
13:33:04: [Hydrax] Creating water material...
13:33:04: Texture: Fresnel.bmp: Loading 1 faces(PF_L8,256x1x1) with hardware generated mipmaps from Image. Internal format is PF_L8,256x1x1.
13:33:04: [Hydrax] Water material created.
13:33:04: [Hydrax] Materials created.
13:33:04: [Hydrax] Creating water mesh...
13:33:04: [Hydrax] Water mesh created.
................................................


What am I doing wrong?
Thanks.

noferat

03-01-2011 23:04:19

Fixed bug.
But there are new bugs(viewtopic.php?f=20&t=13871), most likely because of the old version mhydrax. Does anyone have a working version without bugs mhydrax 0.5(a) for mogre 1.6.x(5)? Share please. Try to compile from source, but it does not start. :cry:

Beauty

04-01-2011 00:25:44

Maybe there still is a problem mentioned in your logfile :
13:33:04: [Hydrax] Config file version doesn't correspond with Hydrax version.

noferat

04-01-2011 09:33:41

No..I already tried to use different configuration files, including those from other versions.
This new:
02:30:27: [Hydrax] Hydrax created.
02:30:27: [Hydrax] bb.hdx loaded.
02:30:27: [Hydrax] Creating module...
02:30:27: [Hydrax] Creating ProjectedGridVertex module.
02:30:27: [Hydrax] ProjectedGridVertex created.
02:30:27: [Hydrax] Module created.
02:30:27: [Hydrax] Initializating RTT Manager...
02:30:27: [Hydrax] RTT manager initialized.
02:30:27: [Hydrax] Registring device restored listener...
02:30:27: [Hydrax] Device restored listener registred.
02:30:27: [Hydrax] Creating materials...
02:30:27: [Hydrax] Creating water material...
02:30:27: Texture: Fresnel.bmp: Loading 1 faces(PF_L8,256x1x1) with hardware generated mipmaps from Image. Internal format is PF_L8,256x1x1.
02:30:27: Texture: Foam.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
02:30:27: [Hydrax] Water material created.
02:30:27: [Hydrax] Creating depth material...
02:30:27: Texture: Caustics_0.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_1.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_2.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_3.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_4.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_5.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_6.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_7.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_8.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_9.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_10.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_11.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_12.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_13.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_14.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_15.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_16.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_17.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_18.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_19.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_20.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_21.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_22.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_23.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_24.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_25.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_26.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_27.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_28.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_29.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_30.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: Texture: Caustics_31.bmp: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
02:30:27: [Hydrax] Depth material created.
02:30:27: [Hydrax] Creating underwater material...
02:30:27: [Hydrax] Underwater material created.
02:30:27: [Hydrax] Materials created.
02:30:27: [Hydrax] Creating god rays...
02:30:27: [Hydrax] Perlin destroyed.
02:30:27: [Hydrax] God rays created.
02:30:27: [Hydrax] Creating water mesh...
02:30:27: [Hydrax] Water mesh created.