Blender Geometry Nodes - Raycast to Surface

  Рет қаралды 13,722

Robbie Tilton

Robbie Tilton

Күн бұрын

Snap any object to a surface using the Blender 3.0+'s Raycast Node. This technique snaps the location and normal rotation of the entire object (not just the vertices). Want to have a boat floating in a stormy ocean? Look no further.
Patreon: / robbietilton
Twitter: / robbietilton
Instagram: / robbie.tilton
Discord: / discord
#blender #geonodes #geometrynodes

Пікірлер: 55
@Zebra_Blender
@Zebra_Blender 2 ай бұрын
Very good tutorial, especially the smoothing of normals, very instructive. In addition, the hit position of the raycast can be directly linked to the position of the transformed geometry
@NikClark
@NikClark 2 жыл бұрын
This is excellent and well explained. Thank you.
@RobbieTilton
@RobbieTilton 2 жыл бұрын
thanks for watching!
@vizdotlife
@vizdotlife 10 ай бұрын
This is really cool! Thank you for sharing this trick.
@CaptainSnackbar
@CaptainSnackbar 3 ай бұрын
awsome tutorial really helped me out :)
@bonecoseoutrascoisas-leiri1131
@bonecoseoutrascoisas-leiri1131 Жыл бұрын
Excelent tutorial! Thank you!
@a.miroshin
@a.miroshin 3 ай бұрын
Super!
@wakegary
@wakegary 2 жыл бұрын
This music reminds me of Myst/Riven. Love it. It's rare for me to like bg music as it's usually stock stuff. Even if this is stock, I dig it. Ambient is the way to go. Good video. Raycasting confuses me and I've put off learning that node for a while.
@dimdimtattooer
@dimdimtattooer 2 жыл бұрын
thanks for video!
@frankwas586
@frankwas586 9 ай бұрын
You are a Geometry node genius. 😂
@purpleparkstudios4124
@purpleparkstudios4124 2 жыл бұрын
Cool concept I like it. Want to try this out I literally just made some ocean stuff today
@vstreet7583
@vstreet7583 2 жыл бұрын
Great tutorial. Very useful. Thank you for sharing your knowledge. THANK YOU! Dg
@coleorloff
@coleorloff 2 жыл бұрын
Super helpful!
@RobbieTilton
@RobbieTilton 2 жыл бұрын
glad to hear it
@homundakahani3D
@homundakahani3D Жыл бұрын
Good tutorial, I from India.
@matiasbriones9665
@matiasbriones9665 2 жыл бұрын
Great tutorial, so useful. Can’t wsit to make something with it. Good work :D
@RobbieTilton
@RobbieTilton 2 жыл бұрын
thanks for watching!
@amrtahtawi
@amrtahtawi 2 жыл бұрын
Love your video here! I was happy to support you on patreon because of this amazing video. I'm trying to animate the uv sphere with different location like a ship sailing for example, but It's not working with me for some reason, Can you make a video about that please? Thanks in advance.
@cosmo4251
@cosmo4251 Жыл бұрын
Hi Robbie, great tutorial. Question. In my file, the cube was initially disappearing every X number of frames. I realized it related to the wave height going above the cube's origin. I fixed the origin by moving the cube up but in object mode. Do you know if there's a way to avoid needing to do this?
@RobbieTilton
@RobbieTilton Жыл бұрын
you could change the original raycast position to have an offset in the z+ direction and then you wouldn't need to worry about it.
@cosmo4251
@cosmo4251 Жыл бұрын
Perfect, thank you!@@RobbieTilton
@EthanWilson473
@EthanWilson473 Жыл бұрын
i'm trying to use this to place a road on a terrain i made but i can't get the position of the points to cast the ray from
@cherok5004
@cherok5004 Жыл бұрын
Hey - this tutorial really stands out! I wasn't able to learn how to project full 3d objects (without mashing the verticies into two dimensions) on many other similar videos. I have a small follow up question for something that wasn't covered - what if instead of a single floating cube, I want to connect multiple cubes to the source position on Raycast? I my case, I'm trying to connect a group of nested objects to a bumpy landscape. It looks like Source Position will only receive one connection - is there a way to capture location data for all nested objects and link them to Raycast? Thanks, and love your content!
@RobbieTilton
@RobbieTilton Жыл бұрын
thanks for the comment. regarding your question i'm going to have to think about it. it's a good use case though. I'll see if i can figure it out this week and will make a video if so.
@cherok5004
@cherok5004 Жыл бұрын
@@RobbieTilton Awesome - thanks! I'll be mucking around with it myself, so if I discover anything worth noting, I'll post it here.
@cherok5004
@cherok5004 Жыл бұрын
I wish that it was possible to post images here as it might helpful to show and not tell about the nodes I used. TLDR: the only means for getting close to the desired effect is to flip the land layer (the ocean in this video), connect Hit Position to Set Position for each of the three nested geometry groups (Buildings, Roads and Land Use in my case) via Set Position, and try to get the base and geometry layers close enough that they 1) don't stretch too much, and 2) don't go above Raycast's Ray Length threshold. The only solution I can figure is that there's a way to combine location data from all objects using a capture attribute node for each, then combine them into one, then feed it into the Source Position input on Raycast (like you did to make the Cube float). That said, I have no idea if that's even possible. Anyway, I'd be appreciate if you have any suggestions and thanks for making great content!
@omermagen824
@omermagen824 Жыл бұрын
Is there a way to have the same effect but with multiple islands of the same mesh? I tried using the Accumulate Field node and Transfer attribute by island index but none of those preserved mesh details.
@RobbieTilton
@RobbieTilton Жыл бұрын
to do that i would use two geometry nodes. one for the individual mesh like in this tutorial. and then a new geo nodes to instance the islands where you instance the object that has the raycast geonode setup
@omermagen824
@omermagen824 Жыл бұрын
@@RobbieTilton I actually found a way using two accumulate field nodes. One to find all the positions and one to find the number of verts in an island. Then you can use those values to calculate an avarage position for each island.
@RobbieTilton
@RobbieTilton Жыл бұрын
@@omermagen824 very cool! thanks for sharing
@youtuberrick2065
@youtuberrick2065 2 жыл бұрын
I am facing a problem where the cube becomes abnormally elongated when i plug the raycast with combine xyz to the offset. by any chance do you know what the source of the error could be
@RobbieTilton
@RobbieTilton 2 жыл бұрын
can you double check you plugged the result into 'offset' and not 'position'? Nothing in here should mess with the scale
@RobbieTilton
@RobbieTilton 2 жыл бұрын
actually... in 'object info' node make sure you click ''relative'.
@matthewmounsey-wood5299
@matthewmounsey-wood5299 Жыл бұрын
😻
@catchingsky334
@catchingsky334 Жыл бұрын
In 3.3.1 I'm getting the really jittery movement too. It doesn't roll smooth with the waves like your video and I've painstakingly reviewed all the nodes and steps. Mine seems like its clamped in some way where it bobs up and down fine but more shivers in place instead of rolling. What I did stumble on though is when I duplicated the cube and moved it off of the world center it worked fine. So for some reason even though the cube was at +5 in Z to be above the wave as long as the X and Y were 0 it just shivers. Also, if I animate the cube moving in X or Y it rolls but also has the shiver like its being added in and using both movements. Also, if I apply the location to the cube at 0,0,5 it rolls fine without the shiver but its obviously floating above the surface. Any ideas what going on there? I also set it to the Z in the Euler like in the video. Hmmm I don't understand at the end how its working with the sphere when you are skipping the entire Attribute Statistic part as well???
@RobbieTilton
@RobbieTilton Жыл бұрын
could you share your file w me on my discord under the 'help' section. then i can take a look and let you know what's happening.
@catchingsky334
@catchingsky334 Жыл бұрын
@@RobbieTilton when I click the Discord link it says "Invite Invalid". I tried both direct and also logged in and tried again - still no luck. :-(
@RobbieTilton
@RobbieTilton Жыл бұрын
@@catchingsky334 sorry- looks like that link expired. try this: discord.com/invite/FQuYknV5Wf I also updated the link in the video description
@somrender
@somrender 2 жыл бұрын
what addon are u using to show the key u are pressing?
@RobbieTilton
@RobbieTilton 2 жыл бұрын
carmac
@David_Fernandez
@David_Fernandez 2 жыл бұрын
Really good tutorial! But I still get very jittery movement ... cannot make it smooth. Even adding all those offsets doesn't make a difference :(
@RobbieTilton
@RobbieTilton Жыл бұрын
Feel free to send the file in ‘help’ section of my discord if you want me to debug
@David_Fernandez
@David_Fernandez Жыл бұрын
@@RobbieTilton Thanks a lot for your response and for your offer, I found another work around, but I will send it to you if it doesn't work. Have a good day!
@Lucas.D
@Lucas.D 2 жыл бұрын
bruh i just got it yesterday and it looks like spacesNice tutorialp controls thx for your help
@diiba_
@diiba_ 2 жыл бұрын
My cube disappears below the ocean after 78 frames or so, double checked all node settings and connections and they match the ones in the video. Edit: Figured it out, the original position of the cube had to be moved further up in a more wavy ocean so that the raycast would stay above it.
@RobbieTilton
@RobbieTilton 2 жыл бұрын
check the position of your cube and make sure it's above the water. because we raycast downward it needs to be above it. you could also modify the raycasting so it works both below and above
@likeyouknowwhatever2811
@likeyouknowwhatever2811 2 жыл бұрын
There’s an ocean modifier??? Where???
@RobbieTilton
@RobbieTilton 2 жыл бұрын
it's built in. just go to the modifier tab and find 'ocean'
@joshiifive
@joshiifive 2 жыл бұрын
Can the origin be affected by this?
@RobbieTilton
@RobbieTilton 2 жыл бұрын
you can use a translate to offset where it catches on the surface. or use bounds to get the bottom most point of your mesh at anytime
@sebastianosewolf2367
@sebastianosewolf2367 2 жыл бұрын
what do you use for the keys shown ?
@RobbieTilton
@RobbieTilton Жыл бұрын
carnac
@giorgilezhava1877
@giorgilezhava1877 2 жыл бұрын
is thumbnail image your artwork?
@RobbieTilton
@RobbieTilton Жыл бұрын
no - i got it from a royalty free website
@CassiaConvolution
@CassiaConvolution Жыл бұрын
"Euler" is pronounced like "oiler".
Import ANY Animation from Blender to Unity (NO RIG / NO BONES!)
19:18
Placing Objects on Faces Using the Raycast Node
18:25
Artisans of Vaul
Рет қаралды 8 М.
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 15 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 116 МЛН
XRay Effect in Blender
6:25
Robbie Tilton
Рет қаралды 7 М.
How RAYCAST works in Blender - Geometry Nodes
25:40
Xan 3D
Рет қаралды 5 М.
Blender 3.1 - Procedural Tentacles with Geometry Nodes
16:10
Retroshaper
Рет қаралды 130 М.
How I made this battle scene in blender
11:05
FxForge
Рет қаралды 668 М.
10 Minutes vs. 10 Years of Sculpting
19:48
Isto Inc.
Рет қаралды 617 М.
This node is just INCREDIBLE - Blender
29:04
Stray Creations
Рет қаралды 65 М.
Generate 3D from ANY Video! │Gaussian Splatting Tutorial w/ Postshot
18:50
Blender3D 3.3 - Topography Landscape Geometry Nodes
31:56
Chong 3D
Рет қаралды 18 М.
You Should be Using Proximity in Your Animations (Blender)
22:39
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН