|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Did lookAt() change ?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 ?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?
|
|
|
Re: Did lookAt() change ?Have you rendered before calling lookAt()?
On Mon, Sep 8, 2008 at 2:24 PM, Vaene <vaene@...> wrote:
_______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Did lookAt() change ?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
|
| Free Forum Powered by Nabble | Forum Help |