Welcome Guest | Signup | Login

Community

 

Community >> Components Discussion >> 3D Scene component
Post Reply
User Info 3D Scene component
mojjo
mojjo
Posts: 4
Hi,

I have a question related to 3D Scene. Can I access and manipulate the objects and cameras using ActionScript?

Thanks
  Post Date: 02-01-09
  Re: 3D Scene component | Quote
Flashtuning
Flashtuning
Posts: 4
Hello,

You can dynamically control the cameras and objects using the component's ActionScript API. You can check the component's Flash Help Book for a full list of all the supported methods/properties and events.

All the best,
FT
  Post Date: 02-01-09
  Re: 3D Scene component | Quote
mojjo
mojjo
Posts: 4
Thank for the quick answer. I have a couple more questions to ask if you wanna respond to them.

1. How does camera pivot and camera rotate options works?
2. How many cameras can be specified?
3. Why aren’t my objects rendered?

Thanks in advance.
  Post Date: 02-02-09
  Re: 3D Scene component | Quote
Flashtuning
Flashtuning
Posts: 4
Thank for the quick answer. I have a couple more questions to ask if you wanna respond to them.

1. How does camera pivot and camera rotate options works?
2. How many cameras can be specified?
3. Why aren’t my objects rendered?

Thanks in advance.


Hello,

1.
When performing a rotation, the camera direction rotates around one of the camera's own axes and describes the surface of a disc.

When performing a pivot, the camera direction rotates around one of the world's axes describing a cone.

You can combine these options to achive the desired results for your 3D scene.

For example in a space simulation you would rotate the camera around both its X and Y axes to look around whereas in a first person game you would rotate the camera around the X axis and pivot around the Y axis so that the camera stays pointed at a constant up/down level when looking around.

2.
You can specify an unlimited number of cameras, but only one active camera (status="on") is allowed at a time.

3.
The xml configuration file must be properly formatted (the tags need to be closed and lowercase). Also make sure you have an active camera object created in your application (you can initiate the camera creation either in the XML configuration file having the status="on" or using the Flashtuning3DScene.createCamera() method).

All the best,
FT
  Post Date: 02-02-09