Hi,
I would like to reduce a highres polyplane that I got from a displacement in another software in realtion to the distance to the camera. I already checked the distance tap in the polyreduce node but this is meant for capsulated objects in space and not a surface that streches over the distance. To put it in another way the plane shall be reduce in the distance but not in front of the camera.
Thank You!
Distance Poly Reduction
2418 2 1- cosmo
- Member
- 4 posts
- Joined: Sept. 2015
- Offline
- Konstantin Magnus
- Member
- 686 posts
- Joined: Sept. 2013
- Online
Hi cosmo,
inside polyreduce there is an attrib weight parameter responsible for reducing details over distance.
You can create the weight attribute in a point wrangle:
inside polyreduce there is an attrib weight parameter responsible for reducing details over distance.
You can create the weight attribute in a point wrangle:
// Read in camera position matrix m = optransform(chs('cam')); vector cam_pos = cracktransform(0,0,0,{0,0,0}, m); // Inverted distance from each point to camera @weight = sqrt ( distance(cam_pos, @P) * 2); @weight = fit(@weight, 0, 30, 20, 0);
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- cosmo
- Member
- 4 posts
- Joined: Sept. 2015
- Offline
-
- Quick Links