How to Avoid Object Intersection | Blender Geometry Nodes Tutorial

  Рет қаралды 34,466

Kenan Proffitt

Kenan Proffitt

Күн бұрын

In this Blender tutorial I break down the RayCast Node in a Geometry Nodes network. The RayCast node can be used for multiple things, including telling Blender to avoid objects on the ground plane where we want to grow grass.
Download the Foliage Pack: www.motionblendstudio.com/ble...
Facebook: / motionblendstudio
My Website: www.motionblendstudio.com/

Пікірлер: 80
@RealGaryGibson
@RealGaryGibson 7 ай бұрын
FINALLY someone explains raycast in a way that I can understand it. Thank you soooo much!
@KenanProffitt
@KenanProffitt 7 ай бұрын
You’re welcome! So glad it’s helpful!
@samuelsantos
@samuelsantos Жыл бұрын
Nice one! I just noticed it's possible to use "Set Position" just after the "Object Info" to slightly scale the rock's vertices in its normal directions just in the context of "RayCast". This way you can have an even better behavior preventing intersections. Just plug "Normal" -> "Scale (vector)" - > "Set Position (Offset)".
@KenanProffitt
@KenanProffitt Жыл бұрын
Great tip! Thank you! :)
@SpencerMagnusson
@SpencerMagnusson Жыл бұрын
Great implementation of the Raycast node! Love seeing more people experimenting with it and coming up with good solutions. One tip I'll mention is that the "Ray Length" property for the raycast node can be shortened, not just to accidentally hit hovering objects that may not count as an intersection, but it can also drastically improve performance when colliding with more or more complex objects. The performance hit is minimal with smaller meshes like this, but may be helpful for big scenes. This is coming from someone who's used the Python equivalent of the Raycast in Blender for an add-on and learned that the hard way :) cheers
@KenanProffitt
@KenanProffitt Жыл бұрын
Good tip!
@gordonbrinkmann
@gordonbrinkmann 10 ай бұрын
Great basic tutorial on the Raycast node. Just a quick tip, when you hoped the points would be visible enough in the video, there is a Set Point Radius node which could make them larger and much easier to see in the video. Setting the sphere to wireframe or bounding box while leaving the viewport in Solid mode would have also helped and saved you always switching between modes.
@iraisynn.attinom
@iraisynn.attinom Жыл бұрын
very nice! thanks! will implement it in my addon (ia scatter) asap. also, connecting a normal node to the ray direction input makes sense for both horizontal and vertical surfaces
@KenanProffitt
@KenanProffitt Жыл бұрын
Awesome thanks for watching! And yes, good tip!
@DavidWinstead
@DavidWinstead Жыл бұрын
Wow, that's very useful man, thanks for sharing your demonstration!
@KenanProffitt
@KenanProffitt Жыл бұрын
Thanks, David! :)
@nswij123
@nswij123 Жыл бұрын
This is exactly what I was looking for! Thanks!
@KenanProffitt
@KenanProffitt Жыл бұрын
Glad I could help! Thanks for watching!
@kazes
@kazes Жыл бұрын
This is super cool and usefull for my project which is generate old stone houses. The wall ares mades with stones not the same sizes and shapes and no mortar, so I wanted them to scatter on wall faces but not overlap. Thanks!
@KenanProffitt
@KenanProffitt Жыл бұрын
Sounds cool! I'd love to see that when you finish it. Thanks for leaving a comment!
@stephanepolin8981
@stephanepolin8981 Жыл бұрын
Thx a lot, very good and simple tuto for GN raycast
@KenanProffitt
@KenanProffitt Жыл бұрын
Glad to hear it! and thanks for watching. :)
@MrAsavich
@MrAsavich 3 ай бұрын
Awesome!
@contentwh0re
@contentwh0re Жыл бұрын
i must have done something wrong. using blender 3.2.2 and all points disappear when i add the raycast, when i add the NOT bool, all points show even in the sphere? :(
@contentwh0re
@contentwh0re Жыл бұрын
nvm i figured it out. the plane needs to be subdivided a bunch as all those vertices on the plane are where the actual rays fire from. I was just using a plane with 4 vertices. hope this helps someone.
@KenanProffitt
@KenanProffitt Жыл бұрын
Glad you figured that out! And yes thanks for sharing. I should have mentioned that tip in the video. 😅 best of luck to you!
@daimonxart8253
@daimonxart8253 4 ай бұрын
@@contentwh0re Gd, you sabed me, for ome reason i couldt make it work, thank you so much for your comment!
@yuroomsusa
@yuroomsusa 2 ай бұрын
Thank you. I had the same question and you answered it!
@deepthoughtsradio
@deepthoughtsradio 4 ай бұрын
Great video. Ty!
@KenanProffitt
@KenanProffitt 4 ай бұрын
Glad you enjoyed it! Thanks for watching!
@RefaeiWork
@RefaeiWork Жыл бұрын
Great tutorial
@KenanProffitt
@KenanProffitt Жыл бұрын
Thanks Rafaei!
@pcforgaming3772
@pcforgaming3772 Жыл бұрын
Now blender is becoming more powerful compared to houdini, Maya, 3dx, cenema4d
@dyingeveryseconds396
@dyingeveryseconds396 Жыл бұрын
Awesome!!!!!!
@KenanProffitt
@KenanProffitt Жыл бұрын
Thanks for watching! 😎
@SkinnyBlackout
@SkinnyBlackout Жыл бұрын
Today I learned how to get rid of penetration.
@DamianPatkowski
@DamianPatkowski Жыл бұрын
Is there a way to create a pile of rocks so I'll have a collection of big rocks, 2nd collection of middle ones, and 3rd of small and these objects inside the collections will not intersect each other? I wonder of is there an option to randomly create a pile of rocks where big ones are in the center, middle around, and smaller ones in small holes or outside.
@wildguardian
@wildguardian Жыл бұрын
Is there a way to use this in order to make every geometric shape randomly distributed into the instance points not to touch itself? "distance min" isn't good enought.. either too distant or then it clips elements when distance is setted as too close
@Mr_Steve3D
@Mr_Steve3D Жыл бұрын
Awesome, thanks. You can also get rid of all clipping by adding a scale elements node just before you realize :) It is the cheat method to get proximity!!!
@KenanProffitt
@KenanProffitt Жыл бұрын
Hey good tip. Thanks!
@AnthonyAragues
@AnthonyAragues Жыл бұрын
thanks for this. I keep finding new uses for this node. Still have the big open question I came here for. If I instance on points, I want its instances to avoid colliding with each other. so far I managed to create some circular logic that errors :)
@Boipelo
@Boipelo Жыл бұрын
On your point distribution node, change the distribution method from "Random" to "Poisson Disk" using the drop down arrow. You can then adjust the "Distance min" value to your liking.
@AnthonyAragues
@AnthonyAragues Жыл бұрын
@@Boipelo thanks, I was aware of that and it only works with the max size in a collection, not great with varying sizes
@irismuddyhehe
@irismuddyhehe Жыл бұрын
thank you very much!!
@KenanProffitt
@KenanProffitt Жыл бұрын
You're welcome!
@kazes
@kazes Жыл бұрын
I just discovered the Proximity Geometry node and I was wondering if we could achieve the same effect with it?
@GGeneBrush
@GGeneBrush Жыл бұрын
Very useful.
@KenanProffitt
@KenanProffitt Жыл бұрын
Glad it was helpful!
@VisualistAyush07
@VisualistAyush07 Жыл бұрын
Thanks man
@KenanProffitt
@KenanProffitt Жыл бұрын
You’re welcome! :) hope it was helpful
@paulopma
@paulopma Жыл бұрын
Hello. In this case you avoid collision of two different collections. I tried avoiding collision within the same collection but couldn't make it, is it possible? I'm new to Blender, thx for your videos.
@KenanProffitt
@KenanProffitt Жыл бұрын
Hey Paulo, have you tried feeding your collection node into a "realize instance" node then taking that into the raycast node? 11:50 of this video might help...
@cr4723
@cr4723 3 ай бұрын
@@KenanProffitt He means avoiding collision within the SAME collection. That does not work.
@syidm7840
@syidm7840 8 ай бұрын
Hey, great tutorial! Just a quick question, why did you use realize instance node?
@abandonedcranium6592
@abandonedcranium6592 28 күн бұрын
Very helpful video, although I still can't figure out something. This video demonstrates how to prevent an object from clipping into another object. I'm using "distribute points on faces" to place leaves on a tree. How do I prevent the leaves from clipping into themselves?
@RamiLovesFortnite
@RamiLovesFortnite Жыл бұрын
Dear Kenan, thank you for sharing this amazing tool! is there anyway to prevent the grass from overlapping each others using ray cast?
@KenanProffitt
@KenanProffitt Жыл бұрын
Hey there! it all depends on how close together the assets are and how big the overlap of the grass is. The raycast controls where the point of origin they are grown out of is located. So if you adjust that enough the grass won't intersect at all. Kind of depends on the assets. :) Hope that helps....
@phalhappy8612
@phalhappy8612 Жыл бұрын
How can I use image texture to mask point instancing in Geometry node? I have digital elevation terrain with image texture. I want to instance trees on the green channel of texture. I already isolate the Green Channel in photoshop and make it black and white as a mask. Now I don't know how to instance trees on that terrain base on texture mask. Hope that explain my problem.
@SanOcelotl
@SanOcelotl Жыл бұрын
How do you give a falloff to this? so the closer the grass is to the geometry the less dense it is, is it possible with this node?
@atekdigital
@atekdigital Жыл бұрын
Great video will this work with particles or scatter object overlapping each other or is there any option. Thanks for the video
@KenanProffitt
@KenanProffitt Жыл бұрын
It should help with avoiding collision with existing scattered objects. Hope it helps!
@_casg
@_casg 5 ай бұрын
bro what if i wanna distribute on volume? how can I make my particles no touch from my collection object instances
@sebastianosewolf2367
@sebastianosewolf2367 Жыл бұрын
why you jdont just added an object for the points before ? instead of "i hope you can see this little tiny gray on gray points ?
@arinarici
@arinarici Жыл бұрын
can we do same thing with geometry proximity for instance - with a line ?
@KenanProffitt
@KenanProffitt Жыл бұрын
Hey Arin! I haven't done much experimenting yet but yes it looks like you can!
@aidelank
@aidelank Жыл бұрын
what if my rocks are colliding with each other and I want to avoid self-intersections?
@OfficiallyOToole
@OfficiallyOToole Жыл бұрын
Are you from Nebraska? You seem really Nebraskan
@KenanProffitt
@KenanProffitt Жыл бұрын
Haha nope. Texan. Nebraskan's seem cool though ;)
@waltage
@waltage Жыл бұрын
now it's work different
@alperenozgur
@alperenozgur Жыл бұрын
what about self-intersection?
@KenanProffitt
@KenanProffitt Жыл бұрын
ah yeah, still workin on that one!
@Mr-dk1dh
@Mr-dk1dh Ай бұрын
This didnt work for me at first, make sure your ground plane hase enough geometry
@andallicansayis
@andallicansayis Жыл бұрын
4:50 :D
@KenanProffitt
@KenanProffitt Жыл бұрын
😜
@Micthebear1
@Micthebear1 Жыл бұрын
What the sus it has been a year!
@KenanProffitt
@KenanProffitt Жыл бұрын
Haha yes... I’m back!
@_editdude_
@_editdude_ Жыл бұрын
Hi it's not working in blender 3.3.1 why?
@KenanProffitt
@KenanProffitt Жыл бұрын
The node isn't working?
@Pkg_gaming2847
@Pkg_gaming2847 Жыл бұрын
Bro after year?
@KenanProffitt
@KenanProffitt Жыл бұрын
After a year! 😅
@dyingeveryseconds396
@dyingeveryseconds396 Жыл бұрын
Great comeback!!
@cl0msy
@cl0msy Жыл бұрын
i followed exactly what he did and it did not work in 3.4
@mubzy4706
@mubzy4706 Ай бұрын
my points are massive ~~ for some reason????????
@KenanProffitt
@KenanProffitt Ай бұрын
Hey! you might need to apply the scale on your object. "Ctrl-A + apply scale" that should bring the points down to the correct scale
@waltage
@waltage Жыл бұрын
calculation not accurate
I wish I knew this before using Geometry Nodes (Blender)
1:24:14
Rabbit Hole Syndrome
Рет қаралды 168 М.
Make Dynamic Blender Puddles in 1 Minute! #shorts
1:01
Kenan Proffitt
Рет қаралды 9 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 11 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 25 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,3 МЛН
Select What You Want in Geometry Nodes - Blender Tutorial
1:14:20
The Secrets of Photorealism
24:38
Blender
Рет қаралды 816 М.
How Ray Tracing (Modern CGI) Works And How To Do It 600x Faster
32:06
Josh's Channel
Рет қаралды 566 М.
physics with geometry nodes
9:42
CGMatter
Рет қаралды 29 М.
Tutorial: Tipping Over Stacks of Cubes in Blender
9:23
Polyfjord
Рет қаралды 2,9 МЛН
Blender Geometry Nodes - Raycast to Surface
12:42
Robbie Tilton
Рет қаралды 13 М.
EVERYTHING About Blender's Motion Tracking System!
21:54
SharpWind
Рет қаралды 109 М.
How to Fracture Anything with Blender 3.0 and Geometrynodes!
7:38
Cartesian Caramel
Рет қаралды 114 М.
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 184 М.
Крокодил получил по-заслугам! 😱
0:32
КиноСклад
Рет қаралды 2,9 МЛН
Max Invites his Nugget Friends to the Costume Party!
0:24
Max Design Pro - Creative Animation Channel
Рет қаралды 8 МЛН
Caza de galletas 🍪 #español #shorts
0:16
Rosita Fresita - WildBrain
Рет қаралды 9 МЛН