Issues configuring Away3D with FlashDevelop 4, can’t find primitives.

Software: Away3D 4.x

James Dardry, Newbie
Posted: 14 July 2012 11:15 PM   Total Posts: 2

As the title suggests I’m having issues using Away3D with FlashDev. The compiler seems to be unable to find the basic primitives, namely Sphere, Cube, plane, and the like, however, it finds WireframeCube etc. fine, I’ve added -swf-version=13 to the compile options, am using Flex SDK 4.6.0, and compiling for Flash player 11.

The exact build number for FlashDev is 4.0.4, and the build number for Away3D is ‘fp11-b9c69ac’ using the source rather than the SWC.

Any help would be greatly appreciated.

   

Richard Olsson, Administrator
Posted: 15 July 2012 07:04 AM   Total Posts: 1192   [ # 1 ]

I think that the classes you are looking for are SphereGeometry, CubeGeometry, PlaneGeometry et c. Do you know how to use these in 4.x? Primitives work differently now (because geometry management works differently now) than it did in 3.x.

For example:

var geom Geometry = new CubeGeometr();
var 
mat ColorMaterial = new ColorMaterial(0xffcc00);
var 
myCube Mesh = new Mesh(geommat); 
   

James Dardry, Newbie
Posted: 15 July 2012 12:33 PM   Total Posts: 2   [ # 2 ]

Ah I see, it works now, thank you very much, it would be great if some tutorials where updated to mention this.

   
   
‹‹ Custom polygon shape

X

Away3D Forum

Member Login

Username

Password

Remember_me



X