Thanks for answer.
I'm trying with matrix transformation doing some test without success.
Also I tried to add the camera as objetc child but I get a confusing
results, for example:
If I code "this.camera2.transform.n14 = this.modelContainer.transform.n14;"
and "this.camera2.transform.n24 = this.modelContainer.transform.n24;" (x and
y position of matrix3D), I get this:
Loading Image...
What camera2 watch it shows in
the black plane, and in this case the model
is in the center, but when I move the marker in space the model has the same
orientation in the plane.
I I code "this.modelContainer.addChild(camera2);" I get this:
Loading Image...
as you can see, the model is in the
center too, but the model in the other camera gets crazy, and I don't know
why.
At the end of onEnterFrame I render:
renderEngine.renderScene(scene3D,camera3D,viewport3D);
renderEngine2.renderScene(scene2,camera2,viewport2);
And the modelContainer is child of scene2 and scene3D.
Any idea?
Post by Huge OntomanIF i understand You right, You probably need to extract from a
flar-calculated *transformation_matrix* object the *rotation_part* of Your
interest, and then apply* *(sync) that rotation* *to Your *
collada_model.rotation.
* Finally render it within a "normal" view / render-window (normal as
in not-linked-to-marker).
That is for the *papervision* part...
The most complicated part will probably be getting the angle (degrees
or radians) out of a transformed matrix4 (within values for scale_part,
transform_part, rotation_part), it could involve some basic vector math and
matrix operations...Because You are already familiar with the concept of *objects
in computer science*<http://en.wikipedia.org/wiki/Object_%28computer_science%29>,
and maybe the APIs You are using, right?!
But still, i think You would be better off asking in the *
flartoolkit-userz-mailinglist*<http://groups.google.com/group/flartoolkit-userz/about>too. The people over there probably can help You with advanced 3D calculus
in this field (know both APIs).
Hope all this helps!
cheers.
------------------------------
Date: Thu, 3 Feb 2011 18:03:04 +0100
Subject: [Papervision3D] Camera problem in Papervision and FLARManager
Hey guys!
I'm new on FLARManager and Papervision3D and I modified the loading Collada
models tutorial (
http://words.transmote.com/wp/flarmanager/inside-flarmanager/loading-collada-models/
).
With a second camera (Camera3D) I can show the model in another viewport
but the problem is that I want the camera in a fixed point on the model,
regardless the marker where is in the space. I mean, as much as the marker
moves in space, I would like the camera always points from the same angel
and axis to the object and only see the object as it rotates on itself.
I tried to do that without success, any clue? I tried camera.target =
object; and camera.transform = marker.matrix; but it's not exactly what I
want.
Any idea?
thx in adv.
_______________________________________________ Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org