Jump to content

Stopping displaced geometry creation on distance

Recommended Posts

I am trying to kill displacement when geometry gets a certain distance from camera. I've taken the geo bounds and was able to get that into black/white information in my shader. I am controlling the falloff with a fit range. I can multiply that black/white information against the displacement value and the geometry will not visibly displace. The problem I'm having is that it seems the geometry is still being subdivided in those areas. Anyone know how to kill that geometry creation when the displacement value is 0?

Share this post

Link to post
Share on other sites

are you talking about the whole objects stop computing displacement at a certain distance or just portions of a huge object that are too far from camera?

in the first case you can do this multiple ways either on SOP or SHOP level. just measure how far the object is (distance VOP, for example) and then switch for a simplified shader at the certain threshold.

at the second case I'm afraid it is currently not possible unless you split that object into more sections that behave as individual objects. I'm not aware of any renderer allowing you to dial in dynamic per-primitive displacement subdivision. you can only do amount of rendertime subdivision per object.

If you want to compute less subdivisions when displacement is near nothing, try increasing Dicing flatness parameter in the object settings (Dicing>Dicing Flatness). that is sort of doing what you want, but again, it affects the whole object everywhere, not only at the distance. it is meant as an optimization tool for increasing performance at the price of lower precision. but it's worth trying.

Edited by davpe
  • Like 1

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