Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

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

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
pyrrr
Posts: 34
Joined: 13 May 2012, 15:50

Vertex Displacment Map

Post by pyrrr » 09 Jul 2012, 09:34

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.

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Vertex Displacment Map

Post by Karol » 09 Jul 2012, 10:03

Did you notice the Parallax Occlusion shader demo in the HLSL Shader help scene?

pyrrr
Posts: 34
Joined: 13 May 2012, 15:50

Re: Vertex Displacment Map

Post by pyrrr » 09 Jul 2012, 10:07

sure but i need real geometry displacment

pyrrr
Posts: 34
Joined: 13 May 2012, 15:50

Re: Vertex Displacment Map

Post by pyrrr » 09 Jul 2012, 10:13

mesh.JPG

pyrrr
Posts: 34
Joined: 13 May 2012, 15:50

Re: Vertex Displacment Map

Post by pyrrr » 16 Jul 2012, 10:14

well i guess there is no possibilitys to do that in ventuz - aye?

GlareTechnologies

Re: Vertex Displacment Map

Post by GlareTechnologies » 18 Jul 2012, 17:14

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
Attachments
VertexManipulation.vza
(13.28 KiB) Downloaded 277 times

Post Reply