Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Bump-mapping a landscape with shader  (Read 461 times)
nomadsoul
Customers
Community Member
*****
Posts: 173


« on: February 03, 2012, 04:52:07 PM »

 Undecided hi,

I have made a splat-shader with bump-mapping which work great on mesh. When i apply it on landscape the bump effect appear and dissapear each frame or when i move the camera ! Every one can tell me why please ?
Logged
jviper
Community Member
*
Posts: 2130

Discipline in training


« Reply #1 on: February 04, 2012, 06:37:32 PM »

I think the vertices in the TVLandscape still do not have tangents and binormals (or bitangents, which ever one it is). And with TVLandscape you cannot add these like you can with TVMesh (because you cannot change the vertex format in TVLandscape). Therefore you have to generate them manually in the shader. Cross product the normal of the vertex with an arbitrary vector (I think we used (0,1,0) ). Then cross product that new vector with the normal and get a third, and there you have faked a vertex with binormals and tangents.

I think somewhere in the community is a version of a shader for TVLandscape, which does those things.
Logged

JAbstract.....Don't just imagine, make it happen!
nomadsoul
Customers
Community Member
*****
Posts: 173


« Reply #2 on: February 18, 2012, 07:25:39 AM »

ok, not find any shader for landscape for the moment, i am not enought good to do what you say... Undecided
Logged
jviper
Community Member
*
Posts: 2130

Discipline in training


« Reply #3 on: February 18, 2012, 07:49:30 PM »

I thought I has a sample with landscape bumpmapping. I can't seem to find any of them now.
Logged

JAbstract.....Don't just imagine, make it happen!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks