- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.5
(Moderators:
Waterman
,
Mithrandir_
,
beyonder
,
ZaPPZion
) >>
Bump-mapping a landscape with shader
Pages: [
1
]
« previous
next »
Print
Author
Topic: Bump-mapping a landscape with shader (Read 461 times)
nomadsoul
Customers
Community Member
Posts: 173
Bump-mapping a landscape with shader
«
on:
February 03, 2012, 04:52:07 PM »
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
Re: Bump-mapping a landscape with shader
«
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
Re: Bump-mapping a landscape with shader
«
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...
Logged
jviper
Community Member
Posts: 2130
Discipline in training
Re: Bump-mapping a landscape with shader
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Game Development
-----------------------------
Projects
-----------------------------
=> In-Development
=> Showcase
=> Recruitment
=> Announcements
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.5
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
-----------------------------
TV3D SDK
-----------------------------
===> Shader Development
===> Content Pipeline
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks