Texture splatting(only 2 at the moment :)

Published September 10, 2007
Advertisement
I'm back on playing with effect files and i must say it is easy :P
Back In the day i took me a few days to make texture splatting with opengl and the fixed function pipeline.All those sampler states,texture units blending arguments etc was just pain in the ***.
Well it took me only a few hours to make the splatting work.It is very primitive at the moment but It works.The vertex shader passes the vertex normal to the pixel shader and the pixel shader interpolates between two texture depending on the vertex normal.

I'll add 4 texture weights to each vertex so I can blend between four textures in the shader.
I tested the application first on an old radeon x550 which i have at work.Well It was running at ~40-50 fps.Which was a big drop from 100.So I think x550 was sucky at shaders.I tried it at my geforce 7600gt which is not a great card today but it can kick at 300 to 500 fps :).So I guess performance is okay.

Here is a screen shot :
Screen Shot

0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Advertisement