Did lookAt() change ?

View: New views
4 Messages — Rating Filter:   Alert me  

Did lookAt() change ?

by Ohm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I recently (yesterday) update my PV3D classes, and since then the lookAt() function doesn't work anymore....:-(

I had something like : plane.lookAt( sphere );

Is there a workaround for this ?

Thx !

Re: Did lookAt() change ?

by Vaene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the same problem, had not updated for awhile and when I did my zoom was all messed up(fixed that) and the lookAt function no longer functioned, can anyone point me to a changelog?
Ohm wrote:
Hi All,

I recently (yesterday) update my PV3D classes, and since then the lookAt() function doesn't work anymore....:-(

I had something like : plane.lookAt( sphere );

Is there a workaround for this ?

Thx !

Re: Did lookAt() change ?

by Lindquist :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you rendered before calling lookAt()?

On Mon, Sep 8, 2008 at 2:24 PM, Vaene <vaene@...> wrote:

I have the same problem, had not updated for awhile and when I did my zoom
was all messed up(fixed that) and the lookAt function no longer functioned,
can anyone point me to a changelog?

Ohm wrote:
>
> Hi All,
>
> I recently (yesterday) update my PV3D classes, and since then the lookAt()
> function doesn't work anymore....:-(
>
> I had something like : plane.lookAt( sphere );
>
> Is there a workaround for this ?
>
> Thx !
>

--
View this message in context: http://www.nabble.com/Did-lookAt%28%29-change---tp18610478p19380432.html
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: Did lookAt() change ?

by Vaene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I took a look at all of the threads and tried to adapt my code by rendering before calling lookAt(): here is the relvant function:

private function lookAtCamera():void {
        cameraShadow.copyTransform( camera );
        cameraShadow.moveBackward(-4000);


        renderer.renderScene(scene, camera, viewport);
        //have planes lookAt CameraShadow
        for (var i:int =1;i<19;i++){
        container.getChildByName("planeNode"+i).lookAt(cameraShadow);
                               
                }
                       
}
 

the only new bit is the

renderer.renderScene(scene, camera, viewport);

I added after reading a bunch of posts on the subject. Alas it does not work. The camera shadow is just a far off object I am having all the planes look at so the planes look more or less flat relative to the camera.  lookAtCamera() is called as part of the onEnterFrame loop to render the whole scene.

Here is an air file of what it is supposed to look like (dev version  only the vids for LC, GTA work)

gametrailers.xillo.com/dev

Lindquist wrote:
Have you rendered before calling lookAt()?

On Mon, Sep 8, 2008 at 2:24 PM, Vaene <vaene@yahoo.com> wrote:

>
> I have the same problem, had not updated for awhile and when I did my zoom
> was all messed up(fixed that) and the lookAt function no longer functioned,
> can anyone point me to a changelog?
>
> Ohm wrote:
> >
> > Hi All,
> >
> > I recently (yesterday) update my PV3D classes, and since then the
> lookAt()
> > function doesn't work anymore....:-(
> >
> > I had something like : plane.lookAt( sphere );
> >
> > Is there a workaround for this ?
> >
> > Thx !
> >
>
> --
> View this message in context:
> http://www.nabble.com/Did-lookAt%28%29-change---tp18610478p19380432.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>

_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
LightInTheBox - Buy quality products at wholesale price