Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   camera moving with object (http://www.alice.org/community/showthread.php?t=2268)

Alex Rodriguez 02-13-2009 04:06 PM

camera moving with object
 
I have a world in which a cow and chicken converse, then turn to face a farmer and walks towards him. My question is, how do I get the camera to follow these two objects as they walk towards the farmer? I know that you can change the properties vehicle=world to make the camera follow a certain object. But I need the camera to stay still for the first part of my animation, then when it gets to the point where they walk towards the farmer, I want the camera to follow them.

If someone can help me, please email me at arodriguez1212 at msn (I had previously put yahoo by mistake, I feel aweful for the person that might have been getting emails for this....oops). I'd appreciate it.

What I've tried so far:
Do together
Both methods for cow and chicken walking
camera move forword X meters
This makes the camera move forward faster then my objects go. It doesn't move fluidly with them
I've also tried using the move at speed, but that doesn't get me the results I'm looking for.

Any help would be awesome. Thanks.

bsmill04 02-14-2009 12:27 AM

have you tried make the camera follow the chicken and cow? Or is that possible?

Theres also a thing called dummy objects. U use these to set the camera postion. I believe use these when making one object move around the area.
You can find more info about these on page 81 and 291 of the book.

Mojax 02-14-2009 04:51 AM

You can dynamically set the vehicle at any time by dragging it into your method. So find the point in your program where the camera needs to start following them, and then drag the "vehicle=" property in, set it to the cow or chicken. Then if you need it to stop again, just set it back to world.

Alex Rodriguez 02-14-2009 09:04 AM

Thanks for the help, I'm still not getting the desired results. I found that if I put the vehicle=world in place where I want the camera to follow a certain object, it does so, but I can't get the camera to move back to its origninal position. I'm running out of time with this assignment so I'll have to cut this from my scene and try and figure it out later.

DrJim 02-14-2009 11:45 AM

[QUOTE=Alex Rodriguez;8806] ... get the camera to move back to its origninal position. [/QUOTE]

You need to drop a dummy object at the camera in it's original position and orientation. After you set the camera's vehicle back to the world - move the camera to the dummy object and orient the camera to it.


All times are GMT -5. The time now is 03:37 AM.

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.