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.
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Vertex Displacment Map
Moderator: Support
Re: Vertex Displacment Map
Did you notice the Parallax Occlusion shader demo in the HLSL Shader help scene?
Re: Vertex Displacment Map
sure but i need real geometry displacment
Re: Vertex Displacment Map
well i guess there is no possibilitys to do that in ventuz - aye?
Re: Vertex Displacment Map
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
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
- Attachments
-
- VertexManipulation.vza
- (13.28 KiB) Downloaded 278 times