See the package at
http://www.unifycommunity.com/wiki/index.php?title=MirrorReflectionLightmapped
Surely not being able to resize the plane makes this unusable?
video of the problem in action:
See the package at
http://www.unifycommunity.com/wiki/index.php?title=MirrorReflectionLightmapped
Surely not being able to resize the plane makes this unusable?
video of the problem in action:
Just use Water script from Pro Standard Assets with MirrorReflectionLightmapped shader. Works fine.
Ow, You might want to get rid of refraction section from the script ;)
Just imported a plane from max, the rest of the model was made in sketchup. None of the proposed solutions worked.
This might help :
( mirror reflection script) Try to experiment with the value of Clip Plane Offset. Tweek it untill you find the right reflection distance.
The way I solved this problem:
On the MirrorReflection.cs script, add a new variable
public int custom_scale = 1;
Then, on line 95, substitute
//Matrix4x4 mtx = transform.localToWorldMatrix * Matrix4x4.Scale( new Vector3(1.0f/scale.x, 1.0f/scale.y, 1.0f/scale.z) );
Matrix4x4 mtx = transform.localToWorldMatrix * Matrix4x4.Scale( new Vector3(custom_scale/scale.x, custom_scale/scale.y, custom_scale/scale.z) );
Now all you have to do is to put on custom_scale the same value you have on your plane's scale.
This could even be done by referring to the transform.scale component of the object, but I'm in a hurry and haven't implemented it like that yet, so :)
But this way it works. Hope it helps!
(edit)
Ok then, you can also add
public float custom_scale = 1;
instead, and then, lets say, before line 95, add the following
custom_scale = transform.lossyScale.x;
and then the Matrix4x4 code changes stated above.
This way, it will always use your plane's scale (I'm assuming you have a uniform scale on all axis, so just use the x scale)
Hope it helps!