Jump to content
TomRaynor

Displace points at render time

Recommended Posts

I have two cases.

 

One:

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

 

Two:

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?

 

Cheers,

Tom

displaceOddness_v01.hip

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

You are welcome.

You can, just add color attribute to the original source points and then add it also to the Attributes To Copy parameter. Then you can change color inside cvex shader.
I added quick example.

pz_rendertime_pointprocedural.hipnc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×