Results 1 to 7 of 7

Thread: Raycast node for Blocking instances

  1. #1
    LW Junkie squeegie's Avatar
    Join Date
    Aug 2003
    Location
    Central Florida
    Posts
    90

    Raycast node for Blocking instances

    Found a neato thing... not sure if anyone else does this or not so I thought I'd share.

    I always hated having to use alpha map to block out areas that I don't want grass (under driveways, foundations, etc). I started tinkering with using the RayCast Geometry node to generate a weight map and BAM!
    Nice and clean clipping of the instances with no maps or extra geometry needed.

    Click image for larger version. 

Name:	RaycastWeightMap.jpg 
Views:	76 
Size:	1.13 MB 
ID:	145002
    <insert clever signature here>

  2. #2
    Thats going to be useful.
    Thanks.
    Robert Wilson, MA Deaf Ed.
    Indiana Deaf School
    This e-mail may contain information protected under the Family Educational Rights and Privacy Act.

  3. #3
    Registered User
    Join Date
    Aug 2016
    Location
    a place
    Posts
    1,750
    thats really cool, thanks for sharing.

  4. #4
    Curmudgeon in Training Ma3rk's Avatar
    Join Date
    Mar 2003
    Location
    Near Beaverton, OR
    Posts
    1,261
    Quote Originally Posted by squeegie View Post
    Found a neato thing... not sure if anyone else does this or not so I thought I'd share.

    I always hated having to use alpha map to block out areas that I don't want grass (under driveways, foundations, etc). I started tinkering with using the RayCast Geometry node to generate a weight map and BAM!
    Nice and clean clipping of the instances with no maps or extra geometry needed.

    Click image for larger version. 

Name:	RaycastWeightMap.jpg 
Views:	76 
Size:	1.13 MB 
ID:	145002
    Might you have a sample scene you could post? Looks very useful but some of us are nodally challenged so having something in hand to fiddle & poke helps a lot.
    "Never be a cat in a cartoon. Never." Chief Wiggum

  5. #5
    LW Junkie squeegie's Avatar
    Join Date
    Aug 2003
    Location
    Central Florida
    Posts
    90
    Quote Originally Posted by Ma3rk View Post
    Might you have a sample scene you could post? Looks very useful but some of us are nodally challenged so having something in hand to fiddle & poke helps a lot.
    Raycast Grass.zip

    Sure thing! Here is a simplified version. I'm a bit node-clunky as well, but if you have any questions I can try to answer them.
    <insert clever signature here>

  6. #6
    Curmudgeon in Training Ma3rk's Avatar
    Join Date
    Mar 2003
    Location
    Near Beaverton, OR
    Posts
    1,261
    Gratzi! Will take a look at it a bit later.
    "Never be a cat in a cartoon. Never." Chief Wiggum

  7. #7
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,883
    Quote Originally Posted by squeegie View Post
    I always hated having to use alpha map to block out areas that I don't want grass (under driveways, foundations, etc).
    Alpha? Why you didn't use weight map, with Vertex Maps > Weight node?

    Did you see my way of handling intersecting instances?

    https://www.youtube.com/watch?v=P6p-Cm_PFyc&t

    This saves render time also.. Because to fill instances so close that they don't have gaps, you need to use couple times (4-10x) more instances, than when they are uniformly placed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •