[Papervision3D] Camera issues
Jose Argenzio
jargenzio at nawy.com
Tue Mar 6 17:32:38 EST 2007
Thanks, i'll try that as soon as possible.
-----Mensaje original-----
De: Papervision3D-bounces at osflash.org
[mailto:Papervision3D-bounces at osflash.org] En nombre de
Papervision3D-request at osflash.org
Enviado el: Martes, 06 de Marzo de 2007 15:17
Para: Papervision3D at osflash.org
Asunto: Papervision3D Digest, Vol 6, Issue 76
Send Papervision3D mailing list submissions to
Papervision3D at osflash.org
To subscribe or unsubscribe via the World Wide Web, visit
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
or, via email, send a message with subject or body 'help' to
Papervision3D-request at osflash.org
You can reach the person managing the list at
Papervision3D-owner at osflash.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Papervision3D digest..."
Today's Topics:
1. Re: Camera issues (John Grden)
2. Re: screen coordinates (John Grden)
3. collada (BSOD Gerokostas)
4. Re: collada (bjoern nagel)
----------------------------------------------------------------------
Message: 1
Date: Tue, 6 Mar 2007 13:58:14 -0500
From: "John Grden" <neoriley at gmail.com>
Subject: Re: [Papervision3D] Camera issues
To: Papervision3D at osflash.org
Message-ID:
<814c1ea20703061058k16af4287hc77ffa1b9dd2d06f at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
this might help you out. this is what I'm using on the xwing game demo's.
Yes, you have to update the scene with a timer. Before updating the scene,
upate the camera with the camera.transform.copy(baseObject.transform)
camera.transform.copy(target.transform);
if(!cockpitView)
{
// if we're in chase mode, set the camer back a bit, and up, the move
left/right and roll according to the mouse values
camera.zoom=5;
camera.focus=100;
var backAmt:Number = (rearView) ? -20 : 500;
camera.moveBackward( backAmt );
camera.moveUp( -(pitchRate*10)+100 );
camera.moveLeft( - (yawRate*10) );
camera.roll((yawRate*3));
}else
{
camera.zoom=5.5;
camera.focus=130;
}
... then I render the scene
On 3/6/07, Jose Argenzio <jargenzio at nawy.com> wrote:
>
> No, i'll try that. Do i have to do this on init() only or also every
> render
> loop? This is the only thing left for releasing this.
>
> What the camera needs is to be attached to its base, so the base does the
> moving and panning and the camera only handles the tilting part.
>
> Thanks in advance
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070306/
ae99b429/attachment-0001.htm
------------------------------
Message: 2
Date: Tue, 6 Mar 2007 14:01:27 -0500
From: "John Grden" <neoriley at gmail.com>
Subject: Re: [Papervision3D] screen coordinates
To: Papervision3D at osflash.org
Message-ID:
<814c1ea20703061101l1f2931f5g2fa6d9ed141aab2a at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
have you got the latest updates? That's an old error with the stars class
On 3/6/07, gilemon <gilemon at free.fr> wrote:
>
> Is the Stars class supposed to work in AS3.0 version?
>
> I'm having this error message (in Flash 9):
>
>
>
> *Stars.as : Line 198, Column 29 : [Compiler] Error #1023: Incompatible
> override.*
>
> * public override function render( scene
> :SceneObject3D ):void*
>
>
>
> I can't find anything about it in the documentation. Or is there any
> sample somewhere?
>
>
>
> Thanks,
>
>
>
> Gilemon
>
>
> ------------------------------
>
> *From:* Papervision3D-bounces at osflash.org [mailto:
> Papervision3D-bounces at osflash.org] *On Behalf Of *Carlos Ulloa
> *Sent:* Sunday, March 04, 2007 11:32 PM
> *To:* Papervision3D at osflash.org
> *Subject:* Re: [Papervision3D] screen coordinates
>
>
>
> All DisplayObject3D have a container property that's initialized when the
> object is a direct child of a MovieScene, i.e. when you have addChild it
> to a scene.
>
> The containers are actually centered at 0,0 so reading their screen
> coordinates won't work.
>
> Since RC1 we store the object position directly in its transform matrix,
> so there's currently no 2D position being calculated.
>
> I want to add adjustable registration points, and it would be great to add
> 2D info then.
>
> There's 2D position of each vertex, you can see how it's used in the Stars
> object.
>
> C4RL05
> // noventaynueve.com
> // papervision3d.org
>
>
> On 04/03/07, *John Grden* <neoriley at gmail.com> wrote:
>
> ok, I added and tested getSprite:
>
> public function getSprite(child:DisplayObject3D):Sprite
>
> Just pass in the DisplayObject3D reference, and you'll get back a Sprite
> reference to do 2D flash coordinate conversions with.
>
> This is AS3 only right now. It's in the repository
>
>
>
> On 3/4/07, *John Grden* < neoriley at gmail.com> wrote:
>
> ah, I don't have a good answer for you, but my first thought is to use
> MovieScene3D, then all of your objects are put into separate Sprites. I
> would have said you could then get the reference to that sprite, but I
just
> looked through MovieScene3D and we don't have an api yet for retrieving
the
> actual sprite container ;(
>
> I'll see if I can put that in easily. If so, I'll post and let you know,
>
>
>
> On 3/4/07, *Ron Valstar *<ron at sjeiti.com > wrote:
>
> 2d .... I'm making corny lens flares ;-p
>
> John Grden wrote:
> > Hey Ron, are you looking for 2D (x/y) coordinates or true vector of
> > where the objects at in 3D space? what are you trying to accomplish?
> >
> > On 3/4/07, *Ron Valstar * < ron at sjeiti.com <mailto:ron at sjeiti.com>>
> wrote:
> >
> > Is there a way to return the screen coordinates (and maybe even
> > size) of
> > a DisplayObject3D? I've been sifting through the classes but I can't
>
> > seem to find it.
> >
> > gr
> >
> > Ron
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
> >
> >
> > --
> > [ JPG ]
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> --
> [ JPG ]
>
>
>
>
>
> --
> [ JPG ]
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070306/
ab51a1f4/attachment-0001.htm
------------------------------
Message: 3
Date: Tue, 06 Mar 2007 21:48:49 +0200
From: "BSOD Gerokostas" <sger_error at hotmail.com>
Subject: [Papervision3D] collada
To: papervision3D at osflash.org
Message-ID: <BAY136-F8CE70957ED2F113435C32EB7B0 at phx.gbl>
Content-Type: text/plain; format=flowed
well i'm getting this output from flash 9 preview.
any ideas export .dae from 3d max
Collada material sunset not found.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
------------------------------
Message: 4
Date: Tue, 6 Mar 2007 21:17:19 +0100
From: "bjoern nagel" <br at elbjoern.com>
Subject: Re: [Papervision3D] collada
To: <Papervision3D at osflash.org>
Message-ID: <001601c7602c$74a052c0$7901a8c0 at centralpark>
Content-Type: text/plain; charset="iso-8859-1"
http://www.fabulastengeist.com/content/papervision/papervision-preso.rar
https://admin.adobe.acrobat.com/_a200985228/p11084282/
http://ricardocabello.com/index.php?postid=320
hope that helps...
cheers, bj?rn
+-----Urspr?ngliche Nachricht-----
+Von: Papervision3D-bounces at osflash.org
+[mailto:Papervision3D-bounces at osflash.org] Im Auftrag von BSOD
+Gerokostas
+Gesendet: Dienstag, 6. M?rz 2007 20:49
+An: papervision3D at osflash.org
+Betreff: [Papervision3D] collada
+
+well i'm getting this output from flash 9 preview.
+
+any ideas export .dae from 3d max
+
+Collada material sunset not found.
+
+_________________________________________________________________
+Express yourself instantly with MSN Messenger! Download today
+it's FREE!
+http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
+
+
+_______________________________________________
+Papervision3D mailing list
+Papervision3D at osflash.org
+http://osflash.org/mailman/listinfo/papervision3d_osflash.org
+
------------------------------
_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
End of Papervision3D Digest, Vol 6, Issue 76
********************************************
More information about the Papervision3D
mailing list