- Home /
Bump Mapping
Okay basically I know i probably sound like i have no idea what im doing, but i kinda do (I think!). Basically i have managed to apply a normal map to my material of a tiled floor, and in design mode it looks perfectly applied, but as soon as i press play to test it it just disappears, leaving only the flat diffuse visible. When i stop the game test, it renders in the design view fine again :( Is there a problem wit my camera?? :( Help ;)
Update Here's a screenshot of my workspace and test scene, as you can see there are no scripts attached to the plane i have tested the textur on. On the design window you can see the bumps from the normal map, but on the game view it's just a flat diffuse :/
Do you have a public variable in a script where you've set the $$anonymous$$aterial that's overriding?
Answer by AdamScura · Feb 11, 2014 at 12:31 AM
Bump mapped materials should work out of the box with no scripts required.
Just create a material with a bump map shader, then pick the diffuse and normal texture in the property inspector. Then drag this material onto your game object.
If you have any scripts involved, please post them so we can better assist you.
I've taken a screenshot and updated above, and there aren't any scripts.... :/
Add a light to your scene.
When you don't have a light in your scene, unity adds an invisible light to the scene view just to make it easier to edit your scene. But this invisible light is not part of the game and does not render in the game view. As soon as you add a light to your scene, both the game view and the scene view will show the correct lighting.
Your answer
Follow this Question
Related Questions
Changing bump map opacity. 0 Answers
Normal maps and Lightmaping in forward rendering 0 Answers
Normal maps problem 1 Answer
Normals on procedural mesh 0 Answers
can you make a surface shader be drawn before or after a certain pass? 1 Answer