Jump to content

Displace points at render time

Recommended Posts

I have two cases.



A grid being rendered with displacement (an attribute on the geo defining how much the grid is displaced from the centre outwards)



The points from the grid only. Trying to displace these in exactly the same way. The damn things won't be displaced at render time.


Anyone have any idea why "case1" works and "case2" doesn't?





Link to comment
Share on other sites

Thats interesting!

Probably mantra does not run displacement part of the shader on points as you can actually manipulate them before that.

I just did some tests and I wasn`t able to move points at render time at all.

Link to comment
Share on other sites

Cheers for that Petr, very useful!


The help card for the point replicate proc says that you have access to the global variables "P", "id" and "pid".

It also says:


"You can use additional attributes of the points being instanced on. The available attributes are controlled by the Attributes To Copy parameter."


I understand this to mean that I can bring ANY attributes on the points into CVEX and use them to do stuff - this part works fine. I am curious if I am able to set other attributes on points in the CVEX shader such as colour?

Can I modify the colour in the CVEX shader and have my material pick up that modified colour?

I have tried and so far no luck...


Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...