I propose a novel and exciting new web service. A dummy mailing list where you can pretend to write down a problem you've been stuck with the entire day, because as soon as you hit that "send" button you'll most likely find the solution yourself. As in this case. With such a service I could have spared you guys an extra mail in your inbox. :) Let's hope someone with an entrepreneur mind gets to it! There's money to be made! Anyhow, of course the solution actually was in the yaw/pitch/roll functions. I didn't think one step further, since my data had absolute values and those functions add to the rotations relatively and I didn't read the documentation close enough and I had too much cheese on my bread this morning and... I just reset the rotations before every call to the y/p/r functions with my absolute values, and tadaaa. Instant n00b feeling :)
On Jan 19, 4:45 pm, Thomas Söderlund <[email protected]> wrote: > Hey everyone, this is my first post here. I'm having tons of fun > learning Away3D, discovering new stuff to toy around with all the > time. However, I've run into a particular problem I can't seem to find > a solution to in earlier posts. > I'm trying to get the camera to rotate the same way it does for me in > my 3D tool (in this case, Cinema 4D) where the rotation axis rotates > with the camera. Like this: > > http://vvvvwvvvwvvwvvvvwvwwvvvwwvwvvvwvvvwvvvwvvvv.com/dev/camera_rot... > > However, when I do the same in Away3D (using a Camera3D), it seems > like the rotation axis never changes, but is locked to the scene. > I've illustrated the difference here: > > http://vvvvwvvvwvvwvvvvwvwwvvvwwvwvvvwvvvwvvvwvvvv.com/dev/rotation_p... > > Use the button in the upper left corner to select between my pre- > rendered sequence and the same sequence played back in Away3D. The pre- > rendered sequence is how I want my rotation to be in Away3D :) The > first roll maneuver looks as it should, but as I start panning with > the camera rolled I have a problem... > > As it is now I'm rotating the Away3D camera by accessing it's > rotationX/rotationY/rotationZ properties, and nothing I've tried so > far has done any difference. I tried putting it in a objectContainer > and rotating that, tried using yaw(), roll(), etc, but no luck there > either. > > Anyone got a clue to what a guy can do to fix this?
