Normal/ bump maps on terrain

Would anyone like to share the knowledge on how to do it and share the shader? :slight_smile:
I’ve seen many people say that they done it.

Thanks :wink:

Bump-o-zaurus

Everything actually working that I’ve seen so far did not use Unity terrain, but either terrain meshes or some other replacement.

I’d also love to see someone show us a working bump shader that works with Unity terrain.

Ah, I was surprised by the first request because AFAIK, you absolutely can’t replace the terrain shaders at all, so this seems to explain it.
I’d like to be proven wrong though…

You can hack it:

http://answers.unity3d.com/questions/410/better-shader-effects-on-terrain-bumpmapping-or-specular

Yeh that’s what I had in mind about ‘hacking’ the original shaders.
I tried downloading and importing the unity built-in terrain shaders few days ago but what I’m asking here is that someone could explain which shader to change so terrain would accept bump mapping and/or share the ‘hacked’ edited built-in shader for accepting bump maps.

I tried editing them myself but nothing seems to be working for me ::frowning:

Thanks

bump

there is a project on the showcase board that comes with a unitypackage for a replacement shader that might just do what you want.

In either case there is no reason for a bump. if people want to help you can help you for free they will :slight_smile:

Well no one answered for a while, so I bumped that people could see that I’m still looking for answer :wink:

could you link me to the topic with that unitypackage?
I’m browsing through showcase section quite often but never came across this project :frowning:

EDIT:
is it this one:
http://forum.unity3d.com/viewtopic.php?t=34949&highlight=terrain+shader

yupp exactly this one :slight_smile:

thats the most advanced terrain shader for Unity I am aware off.

Just be aware that it requires SM3 (that though is granted out of the box due to the SM2 texture amount restriction).

Alright, I’ll try it when I get back home from college.
Quick question… What’s SM3? :smile:

EDIT: blind guess, does it mean Splat Map 3 or something?
Sorry, can you explain little more about that SM3? :slight_smile:

ShaderModel 3, so technically ATI Radeon X1300+ / GeForce 6600+

Ah, not a problem for me then.
But this means that people who do not meet the requirements for that SM3 won’t see this shader on Terrain when playing my game? Or is it just me (developer of that game) who needs SM3 in order to apply that shader and then compile game with it?

Thanks

Yes. If the shader is done right though, old-gen cards will fallback to a cruder shader (ie the default non-bumpmapped one). So if your design relies too heavily on bumpmaps, it’ll look crap for them.

No. That actually doesn’t make much sense IMO.
Don’t mean to seem rude, but you seem a bit light on the techy stuff, my advice would be to stick to what’s available out of the box, otherwise you’ll end up losing a lot of time on something you don’t master, and for little gain. Just my 2 cents…

If I was making a commercial game then I’d stay out of that, but I’m making an FPS and trying to make it look as much HD as possible. It’s just a learning project to play with friends.

I’m not that light on tech stuff to be honest… I’m doing an IT practioners: system support course at college :slight_smile:

It’s just that I thought implementing the shader into game required that SM3, and after compiling the game to standalone the SM3 requirement wouldn’t matter for players -.-

sorry hehe, my bad