Sprite3D position problem

Software: Away3D 4.x

sargon, Member
Posted: 18 October 2011 12:26 PM   Total Posts: 51

Hi I have some problem with rendering 1000 x Sprites3D.

I have 1000 Sprites in container and when I change tilt/pan angle of my camera which is HovecCamera3D, sprites “change” their position.
When I change tiltangle of camera sprites go up/down and goes back to their position in the view.
Others objects that are in the same container behavior corectly, it doesn’t depend how many Sprites I have.

Any ideas ?

   

kornwaretm, Newbie
Posted: 18 October 2011 01:58 PM   Total Posts: 21   [ # 1 ]

please check where your camera looking at. you have to call lookAt after you move your camera

   

sargon, Member
Posted: 18 October 2011 03:01 PM   Total Posts: 51   [ # 2 ]

but my camera is always looking at (0,0,0) by default and I dont change it… even if I execute camera.lookAt(new Vector3D(0,0,0)) before every camera.render(). it doesnt help

   

kornwaretm, Newbie
Posted: 18 October 2011 04:15 PM   Total Posts: 21   [ # 3 ]

just a curious question, are you looking for orthogonal camera?

   

sargon, Member
Posted: 18 October 2011 06:28 PM   Total Posts: 51   [ # 4 ]

what do you mean by saying orthogonal camera ?

way I do it:

random size,xPos ...

var sp:Sprite3D = new Sprite3D(new ColorMaterial0xff0000 ),size,size);
    
sp.mouseEnabled false;
    
sp.xPos;
    
sp.yPos;
    
sp.zPos;
    
OC3D.addChild(sp); 

where OC3D:ObjectContainer3D;

then
scene.addChild(OC3D);

camera is always looking at (0,0,0) ...
problem is:
sprites position behavior depends on camera.tilt/panangle

when camera stays in posision (tween of pan/tilt angle ends) sprites are in corect position.

I do not change sprites,oc3d position…

   

kornwaretm, Newbie
Posted: 19 October 2011 04:40 AM   Total Posts: 21   [ # 5 ]

sorry I’m just guessing. it is hard to understand your need actually.
orthogonal
http://en.wikipedia.org/wiki/Orthographic_projection

perspective
http://en.wikipedia.org/wiki/Perspective_distortion_(photography)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X