Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Camera Question (http://www.alice.org/community/showthread.php?t=9919)

alofferman 02-15-2013 10:05 AM

Camera Question
 
When I'm moving objects around in the Add Objects part of Alice I move the view around using the arrows. This screws up my camera and thereby any directions I've given the camera object once I've gotten done adding objects. Is there any way around this or is the best option to put in all the objects in the starting positions first and then move the camera around? Thanks for any help!

bob3584 02-15-2013 11:55 AM

Could you send me a sample of what your talking about?

fourbros 02-15-2013 05:42 PM

[QUOTE=alofferman;52435]When I'm moving objects around in the Add Objects part of Alice I move the view around using the arrows. This screws up my camera and thereby any directions I've given the camera object once I've gotten done adding objects. Is there any way around this or is the best option to put in all the objects in the starting positions first and then move the camera around? Thanks for any help![/QUOTE]

Here's my advice: Create a 'when world starts' method called whatever you want. Move the camera where you want it to be. Then place a dummy object on the camera. Then in the start method, for the first thing use the camera's "move to" method to make the camera move to the dummy object. From here use turn methods to orient the camera. Tell me if this helps you.

bob3584 02-15-2013 05:53 PM

If that's his problem, then it will help, otherwise, he should take my advice and post it.

MrMoke 02-24-2013 07:03 PM

Pretty Close
 
[QUOTE=fourbros;52437]Here's my advice: Create a 'when world starts' method called whatever you want. Move the camera where you want it to be. Then place a dummy object on the camera. Then in the start method, for the first thing use the camera's "move to" method to make the camera move to the dummy object. From here use turn methods to orient the camera. Tell me if this helps you.[/QUOTE]

Set the camera to a given position for a scene.
Drop a dummy on the camera.
Any time you want to go back, "Set point of view" for the camera to that Dummy object.

chickentree 02-25-2013 12:56 PM

Dummy objects are the way to go.
 
[QUOTE=MrMoke;52501]Set the camera to a given position for a scene.
Drop a dummy on the camera.
Any time you want to go back, "Set point of view" for the camera to that Dummy object.[/QUOTE]

I agree with you, just a couple of things to beware of:
1. After you create a dummy object, go to the Dummy folder in the object tree. Open the folder and rename the object. I usually use something like "initCamera" to indicate what this dummy object is for.
2. The same goes for other dummy objects. If you want the camera to have 5 different positions, make a dummy object for each and then just set the Cameras "Point of View" to that dummy object. The camera will move and it will be positioned exactly as it was when you placed the dummy. Again I recommend naming the dummy objects, once you get past 2 or 3 (dummy1, dummy2, dummy3 ...) it is difficult to keep them straight (Not that that has ever happend to MEeeee, of course, but I have heard of others that had this problem.)

Mark

MrMoke 02-28-2013 10:15 PM

Absolutely
 
:)


All times are GMT -5. The time now is 11:35 AM.

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