Jump to content

distance from geometry help


Recommended Posts

Hi! 

I'm just starting to work with the distance from geometry node and would like to scatter a number of points over a grid of cubes based on the distance to the camera. 

I am running into two maybe easy to fix issues. As far as I know the DFG node (distance from geometry) creates a attribute named "dist" I would like to use that attribute in a series of adjustments made to the cubes.
Now I can call on "dist" with the "@dist" expression but I dont know how to use that in a node such as scatter. 

Secondly I am looking for higher values closer to the reference object. Using DFG without adjustment gives higher values to objects furhter away. 

Any help would be appreciated. 
 

-Thomas 

Link to comment
Share on other sites

This is perfect thank you. Distance from geometry is starting to make a lot more sense. 
So I'm seeing how to cast @dist to the example pscale. But would it be possible to cast it to a float in a FOR EACH? so that I could for example adjust the max density of a scatter node based on the proximity of a grid of packed cubes? 

So lets say a grid of 10 cubes, for each cube check the distance to the camera and scatter a maximum of 1.000 points over the closest and a minumum of 200 points over the cube most far away. 

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.

Guest
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...