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
  11 November 2005
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.
  11 November 2005
Way cool! Works fine with D2P for an animated "sea" as well!

MSA | OSX | xfiles ...Cinema4D Tools
  11 November 2005
Thanks Lennart, that sounds interesting. I hadn't thought of D2P. Off to give it a try...
  11 November 2005
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.
  11 November 2005
I've solved the problem with the Object Null axis and the expression is now working properly. The file has been updated.
  11 November 2005
Thanks for sharing Darter,
this is very nice,
I am at awe at your xpresso skills !
  11 November 2005
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.
  11 November 2005
Thanks moka-j and JoelD, I really appreciate the feedback. I thougth it was just me in here for a while!
  11 November 2005
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 08:45 AM.

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