Reflection Plane Help

Loading

18-12-2006 23:37:10

Hi, Does anyone know how to make a plane that shows reflections? I tried looking at the Fresnel demo and I didn't understand too much of it. I learned how to create a plane, but I dont know how to make it show reflections.

Also, how come when I make planes they are black and I can't see anything besides a black plane even when I set the lighting differently?

reflectionPlane.normal = Vector3.UNIT_Y;
reflectionPlane.d = 0;
MeshManager.Singleton.CreatePlane("ReflectPlane",
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME,
reflectionPlane,
1500, 1500, 10, 10, true, 1, 5, 5, Vector3.UNIT_Z);
pPlaneEnt = sceneMgr.CreateEntity("plane", "ReflectPlane");
pPlaneEnt.SetMaterialName("Examples/FresnelReflectionRefraction");
sceneMgr.RootSceneNode.CreateChildSceneNode().AttachObject(pPlaneEnt);

Bekas

20-12-2006 12:57:27

This is definately on the "Using Ogre" category, so search around in forums/wiki for implementing reflections using RenderTarget and if all fails, try posting to the main Ogre forums.