How to disable Sprite3D Scaling?

Software: Away3D 4.x

ign, Newbie
Posted: 17 December 2012 02:24 PM   Total Posts: 1

Hello, in previous versions of Away3D Library Sprite3D contain method distanceScaling, but in new versions we have no this method.
How i can disable Sprite3D scaling?

I am already try method with update scale at any render, but that works not fine.

   

Avatar
loth, Sr. Member
Posted: 18 December 2012 12:12 AM   Total Posts: 236   [ # 1 ]

yo add your sprite3d to one mesh

   

Hector, Sr. Member
Posted: 19 December 2012 01:10 PM   Total Posts: 137   [ # 2 ]

Hi ign,

I also miss ‘distanceScaling’.

See my old post here:
http://away3d.com/forum/viewthread/1488/

theMightyAtom suggested to display the 2D sprites as Flash display objects (above the Stage3D).

This doesn’t work for me because I need to have multiple draggable 3D models with their names in a pitch and the 2D sprites would overlap each other without any specific order when the camera is in a low position. Also, my 3D scene is surrounded by a 2D interface (movieclips) and the sprites would float on top of it. It would be good for a small 2D popup menu or something like that, I don’t know if this is your case.

This is a possible solution that didn’t work for me:
http://away3d.com/forum/viewthread/797/
Maybe because I missed something like the yFactor or something like that.

This is my feature request post:
http://away3d.com/forum/viewthread/1478/
If you find it useful, please support this request so they include it in future Away3D versions.

There is a long time I don’t work in this project, but I will be happy to help, drop me an email if you are interested. Also, if you find a solution please share it smile

   

Hector, Sr. Member
Posted: 19 December 2012 01:15 PM   Total Posts: 137   [ # 3 ]

hi loth,

sorry, I´m very new with v4, can you be more specific?

   

Avatar
loth, Sr. Member
Posted: 19 December 2012 02:39 PM   Total Posts: 236   [ # 4 ]

create new mesh like a cube
var m:Mesh = new Mesh(new cubeGeometry(1,1), fakeMaterial);
add to scene
scene.addChild(m);
and add sprite3d to it
m.addChild(mySprite3D);

   

Hector, Sr. Member
Posted: 19 December 2012 03:03 PM   Total Posts: 137   [ # 5 ]

I see. That adds the Sprite3D to the scene, but how to keep it from scaling when the camera zooms in or out?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X