2 really hard questions. need help

Become a member of the CGSociety

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

Thread Tools Display Modes
  12 December 2010
2 really hard questions. need help

I've come up with 2 major problems, and I hope there's a way to solve them without using any scripts. please help me:

I have a camera that spins around an object that is encased by another object
I need to somehow make the only side that facing the camera transparent or cut (don't really care)
without cutting the encased object itself (which is doing his own animations). So of course viewport clipping won't do.
Is there a way to do it?

I need a spotlight to constantly calculate and find the vertex or polygon that is nearest to it and look at it.

Can anyone help?

thanks in advance
  12 December 2010
One solution to the first question is:
- create a box, such that it intersects with enclosing object
- link it with the camera, so that it also spins (Or animate it like that)
- make a Boolean object of this box with enclosing object (A-B or B-A)
- the cut will spin with the camera
  12 December 2010
Thank you for the reply.
It did solve my problem
Had to change the pivots so the rotation will be exactly around the the object but overall it works!

Now I only need to solve the other problem...
  12 December 2010
If you're not afraid to script, look into the closestFace function of the MeshProjIntersect class.
I attached a horibly inefficient example that will probably flood your ram or melt your CPU.

If you really don't wanna script, you might be able to pull it of with particle-flow, but that would probably be even more complicated.
Attached Files
File Type: zip look_at_closest_point_example.zip (19.8 KB, 10 views)
Working with 3dsmax 2012 & maya 2014 on Win 7 64bit
  12 December 2010
I don't mind to script,
Not so proficient with it though, but I figured this must be the only way

I know that I need somehow to calculate the closest vertex of Object1 from Light1 and then rotate Light1 to look at this vertex.

Thanks for the example, I'll start digging into it
  12 December 2010
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:48 PM.

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