PDA

View Full Version : Using raycast as animated heat shrink



raw-m
02-17-2018, 03:06 AM
I have some 2 point poly chains in a single layer that I want to wrap around an displaced object. Itís simple enough raycasting to xyz axis of another object but donít know how to setup as if itís wrapped around an object - a little like an animated heat shrink. I think this used to be achievable using DP Kitís Nearest Neighbour but Iím not all that familiar with raycasting (was always crashing on Mac), want to try in LW2018.

Ztreem
02-17-2018, 04:52 AM
I think it was a heatshrink raycast example in the lw11.5 or lw2015 content.

raw-m
02-17-2018, 05:17 AM
Thanks Ztreem, I’ll try and hunt it down. Hoping it’s a 2015 version as I think a lot changed re raycasting between 11.5 and 2015.

erikals
02-17-2018, 05:39 AM
yes, there is a heatshrink raycast example in the lw11.6 content
(note, not in the LW11.5 content)

(Scenes\Raycast\02_Examples\Raycast_Deformation)

raw-m
02-17-2018, 07:21 AM
Thanks Erikals: Raycast_ObjectThruTube in the 11.6 content directory is what I needed..... and it hasn't yet crashed :D

Ztreem
02-17-2018, 08:10 AM
Thanks Erikals: Raycast_ObjectThruTube in the 11.6 content directory is what I needed..... and it hasn't yet crashed :D

That was the one I thought of.

erikals
02-17-2018, 09:10 AM
hasn't yet crashed  :D

hope it turns out cool  :king:

p.s.
somewhat related, Bullet Simulation, might spin some ideas...
https://www.youtube.com/watch?v=3q3p-5ld76o

adk
02-22-2018, 05:40 AM
Thanks Erikals: Raycast_ObjectThruTube in the 11.6 content directory is what I needed..... and it hasn't yet crashed :D

Did you manage to get it to work with 2 point poly chains Mark ? I had a play with the newest nodes in 2018 and there's some extra functionality there but I'm yet to figure out how to effectively heat shrink 2 point polys to a mesh.
The problem is that unlike a mesh they don't have a normal, which is what is generally used to define the displace direction.

Mesh to mesh is pretty easy.

140240

erikals
02-22-2018, 01:38 PM
a trick i used once back, was to simply create a 2 point poly chain on the side of the poly object,

should work, i think...
remember to merge points

https://i.imgur.com/QOKylfr.png

adk
02-22-2018, 11:36 PM
Cheers erikals ... worked a treat
140272

erikals
02-23-2018, 04:20 AM
nice!  :) :hey:

raw-m
02-24-2018, 03:30 AM
Email notification seems to have stopped working! Thanks for asking adk and replying erikals - good info to have. The brief changed a little that no longer required heatshrinking so didn’t test fully.

On an aside, raycasting seems to be working nicely at last in LW2018 on Mac, so I feel like I have a new feature to play with! Been looking for a way to replace DP Kits Marker Pen and found raycasting to be useful, used to animate on Instances in this case: https://www.facebook.com/groups/lightwiki/permalink/1339425596163436/

erikals
02-24-2018, 10:01 AM
Email notification seems to have stopped working!
yes, just sent them a mail...



to replace DP Kits Marker Pen and found raycasting to be useful, used to animate on Instances
yeah  :) saw it, cool technique!
saved!  :king:

adk
02-25-2018, 05:30 AM
That looks very neat Mark. Must try it as I always instance trees. A fade towards the edges would be nice like you say.

Side note : there's a way to conform just 2 point poly chains to a deforming mesh, without attaching them to an actual mesh, but it only 3/4 works and I can't figure out why? You can see that the first two chains don't conform for some reason...perhaps the rays are either missing the strands or the other way around ?

140309

erikals
02-25-2018, 06:09 AM
Side note : there's a way to conform just 2 point poly chains to a deforming mesh, without attaching them to an actual mesh
not sure, if you didn't merge, then it might be just a lucky shot.
i think you'd have to merge the point positions. (even if metalinking / hardlinking)