Flex - Written by Niels on Monday, February 25, 2008 20:11 - 7 Comments

Rotating arround 3D object in Away3D

HoverCamera3D explorerHere’s a nice alternative to all the Flex 3.0 and AIR 1.0 posts today. Today I was experimenting with the HoverCamera3D class from Away3D. With the HoverCamera3D you can “hover” the camera arround the target object. This is much easier than when you do it with the standard Camera3D. Of course I made an example so you can try this out for yourself.

EXAMPLE

This example will find his way into the Flex Away3D Explorer i’m building. Hope this wil give you a clear image of the capabilities of Away3d and the HoverCamera3D class. I added a simple track mouse function, so you can even explore it better! ;)
Don’t forget, right click on a Away3d object, and you get a nice debugger. The little camera on top got some useful information when playing with the HoverCamera3D.

2 Days ago, Away3D version 1.9.4 was released. Take your time to look at an amazing sample made with it, the Away3D temple. I’m keeping it basic for know, hehe. Have fun!

Popularity: 82% [?]



7 Comments

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Jeroen
Feb 29, 2008 10:09

Awesome. Keep up the good work.
You find working with Away3d better/easier in comparison to working with Papervision 3d? Are their any major differences?

Nicolas
Feb 29, 2008 19:11

Hello Niels !
I just want to know wich component you use to integrate Away3D into a Flex project ?
I’m currently using UIcomponent but i have some difficulties to define a size to this sprite.

Thx for help,
Nico

Niels
Mar 7, 2008 0:21

@Jeroen: I’m using Away3D because I don’t know any better ;). Yes I did look at Papervision3D, but I get free service, when using Away3D. Fabrice Closier is one of the main developers @ Away3D, and also working at , so there’s my book of documentation ;). But Away or PV3D, it’s about what you can make with it that counts…

@Nicolas: I’m using UIComponent too. Can you explain your problems?

T-Sugar
Jul 10, 2008 20:25

Could you please post flex project. I can’t get an idea how to integrate away in flex, not just in flash or Action Script project. 8-(( need an assistance :)

p.s. Thanks for this great example !

Jolan
Jul 11, 2008 13:15

Hello Niels

Very cool example, it really helped me getting the hang on the HoverCamera3D class.
However, I’m facing a limitation : whenever I want to change the target of the camera (like in your example when you click on “Pane 2″ for instance), I would like the camera to make the new target its pivot for rotation. I tried to stop calling the “hover()” method on the camera, change its position and then call “update()” on each frame, but no change was visible. I’m clueless as how to realize that, do you know if it’s possible to do so, or is an HoverCamera3D instance’ pivot point always locked on the origin point of the scene ?
The only workaround I could think of is to move all the scene to make the targeted object the new origin point… And I don’t like that !

Thanks for your help,
Cheers

vurentjie
Jul 23, 2008 22:54

thanks for this example, it helped explain some of the properties, kinda different to an opengl cam in some ways so have been trying to figure out and play with the away3d api and was also searching some of the very rare examples, yours helped a LOT!

johari
May 27, 2010 6:32

Hello, nice example. Helped a lot. But can’t this hovercamera3d rotate around the object vertically full 360 degrees as it does for horizontal. As we see that the max tilt angle can be 90 degrees. Can’t it be increased? or any method to do this?

Thanks

Leave a Reply

Comment

Most Popular Content

Flex - Feb 25, 2008 20:11 - 7 Comments

Rotating arround 3D object in Away3D

More In Technology


Usability - Feb 6, 2008 17:39 - 5 Comments

10 Great articles about RIA (Flex) usability

More In Interaction Design


NabAIR - Feb 27, 2008 2:04 - 5 Comments

NabAIR v0.1: Update to AIR 1.0

More In Projects