Page 1 of 1
Vertex Displacment Map
Posted: 09 Jul 2012, 09:34
by pyrrr
After many attemps to create a displacment shader based on a heightmap i surrender.
it seems to be no posibility to get access to the luma values into the vertex shader.
my second attempt was to create an array which holds the height values but on 320*200 i will need at least 64k values. so - no solution here
if there any other solution for it ? maybe i just a blockhead.
Re: Vertex Displacment Map
Posted: 09 Jul 2012, 10:03
by Karol
Did you notice the Parallax Occlusion shader demo in the HLSL Shader help scene?
Re: Vertex Displacment Map
Posted: 09 Jul 2012, 10:07
by pyrrr
sure but i need real geometry displacment
Re: Vertex Displacment Map
Posted: 09 Jul 2012, 10:13
by pyrrr
Re: Vertex Displacment Map
Posted: 16 Jul 2012, 10:14
by pyrrr
well i guess there is no possibilitys to do that in ventuz - aye?
Re: Vertex Displacment Map
Posted: 18 Jul 2012, 17:14
by GlareTechnologies
Hello,
first of all, not all texture formats are supported within a vertex shader (HLSL V3.x). As far as i know A8R8G8B8 is not supported.
Beside that texture fetch must be done with tex2Dlod.
However, I am still struggling to get my shaders running in Ventuz. So I have attached an archive with a small example.
Explanation:
- A 256x256 texture with TexGen gets created and rendered into a render target with float 32 bit red format.
- I create a rectangle with tesselation. Now a shader (vertex shader) tries to manipulate the vertices via this generate texture
Alex and/or Karol, please be so kind and tell me whats wrong with it.
Cheers,
Bastian