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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 12 December 2010   #1
2 really hard questions. need help

hello
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:

1.
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?

2.
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
 
Old 12 December 2010   #2
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
 
Old 12 December 2010   #3
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...
 
Old 12 December 2010   #4
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
 
Old 12 December 2010   #5
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
 
Old 12 December 2010   #6
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 07:04 AM.


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