Advanced Ray Collision Expression

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 11 November 2005   #1
Advanced Ray Collision Expression

Hereís an expression which calculates ray collision without ray point objects and uses a cross product vector to orient the moving object.

The whole setup can be moved and rotated at any angle and the expression will keep working correctly.

All ray points maintain a constant Y distance from the surface objectís XZ plane, allowing use of the Distance port.

Just tweak the User Data settings and watch the blue cage change.

If anyone encounters any problems or has any suggestions, feedback would be welcomed.

Last edited by Darter : 11 November 2005 at 12:10 PM.
Old 11 November 2005   #2
Way cool! Works fine with D2P for an animated "sea" as well!

MSA | OSX | xfiles ...Cinema4D Tools
Old 11 November 2005   #3
Thanks Lennart, that sounds interesting. I hadn't thought of D2P. Off to give it a try...
Old 11 November 2005   #4
Okay, I just realised that when the Cone object was replaced in the hierarchy, the expression was inverting the new object. I've replaced the file with an updated version, which temporarily solves the problem by inverting the Object Null.

I'll post a fine-tuned version when I've sorted this out.

Last edited by Darter : 11 November 2005 at 02:09 PM.
Old 11 November 2005   #5
I've solved the problem with the Object Null axis and the expression is now working properly. The file has been updated.
Old 11 November 2005   #6
Thanks for sharing Darter,
this is very nice,
I am at awe at your xpresso skills !
Old 11 November 2005   #7
Originally Posted by moka-j: Thanks for sharing Darter,
this is very nice,
I am at awe at your xpresso skills !

Same here! Thanks.
Take a look at those xpresso nodes and prepare to go cross-eyed.
Old 11 November 2005   #8
Thanks moka-j and JoelD, I really appreciate the feedback. I thougth it was just me in here for a while!
Old 11 November 2005   #9
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:20 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.