Can someone help me with getting some wondows in a building to reflect the surroundings? I looked at what someone had done with water. That was horizontal. Need to reflect in windows. I tried the multi cam approach but haven’t got it working. Anyone if you could help that would be greatly appreciated. The glass windows do not need to be transparent!!!
How many windows do you have and do they need to reflect actual geometry, or “reflect something abstract” (in that case just use a cube map and one of reflective shaders)?
Many windows. Was trying to see if this would work to make it look very realistic. I guess I could try the Cubemap way but was hoping to see the cars, trees, etc. reflecting. Could you run through the basic process for doing both? Thanks for the help for this Noob!
Thank you for your help! I am having some difficulty understanding how to use the shader. I copied the code into a new text file and saved it as MirrorReflection.shader. I am not sure where to place the shader in the assets folder. I have tried a few different places. It won’t let me attach/use the shader as an option under the material. I am not sure what I am doing wrong. Any further help ould be greatly appreciated.
I think it’s easiest if you select Assets->Create->Shader in the Unity menu and the open the newly created shader file from the Project view, and then paste the code into it.
No errors with either the script or the shader. I created the shader by the method described by Freyr. That seems to work. Now all I see on the windowis flat black. I have the material assigned to the window(and the script to the geometry). Thanks for the help so far everyone!!!
Tried that, and did a build game to see if that would solve the problem. Rebooting now. Deleted old material and recreated it with the same issue of showing up flat black when played…
Got the material to work on one window. It seems to be reflecting the sky box and nothing else. the reflection is also upside down!!! Thanks for any further help.
Can you send the Unity project you have via Report Bug.app? Maybe you’re setting up something wrong, or maybe I did not explain it correctly on the wiki page…
Ok I have impported the package example and it works great! When I apply the material and script to my geometry it has the same effect as before. Upside down skybox with black at top and no reflecting geometry… I am stumped. I hope you guys can figure it out over there at OTEE!!!