Away3D Forum 0 Copyright (c) 2018 ExpressionEngine tag:away3d.com,2018:02:20 Using DelaunayMesh to generate aj object from 3D scanner’s data tag:away3d.com,2015:forum/viewthread/.5821 2015-03-14T05:38:30Z 0 agventu I have read a lot about delaunay triangulation.  Suddenly I realized that there was a class like that on away3d.  Great news!    But when I tried to use this class I noted that I need to pass a planetype to generate the mesh.  I don’t understand at all what is that parameter.  In fact, I even don’t know if this class could help me in my project.

The thing what I want is just create a mesh starting a 3d scanner’s data which is just a point cloud.  Could DelaunayMesh be the class what I have been looking for in order to get a mesh from a lot of “random” points?

]]>
Loading swf files created using away3D into swf files made using flash GUI tag:away3d.com,2017:forum/viewthread/.6282 2017-12-31T12:47:44Z 0 O_MEGA Hello, recently I made an AS3 project using FLASHDEVELOP and AWAY3D everything works fine. However when I tried to load created .swf file (which is located in bin folder) into another .swf file produced using flash GUI(ADOBE FLASH CS6) I get this Error!

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main/initEngine()[F:AWAY3D_test3DmodeltestsrcMain.as:115]
at Main/init()[F:AWAY3D_test3DmodeltestsrcMain.as:95]
at Main()[F:AWAY3D_test3DmodeltestsrcMain.as:87]

Is there anyone who knows how I can solve this problem? I thought if I copy swc version of away3D in lib folders of installed flash CS6 will help me overcome this problem, I was wrong!(or maybe I have copied them in a wrong folder, does anyone know where shall I copy them?)

Is there anyone who knows how to load an swf made using away3D into another swf ?

Best Regards

]]>
AWD file Issue tag:away3d.com,2017:forum/viewthread/.6281 2017-12-21T14:37:05Z 0 O_MEGA Hi,
I was trying to make an android project(apk)(AIR mobile AS3 app), using Flashdevelop (5.3.0) and AIR_SDK(28)and android sdk ( Revision 23.1.0 (December 2015)), my project uses AWAY3D + minimalcomps and it includes some .awd models ( I made two 3D models in blender then textured them and then imported them in AWAYBuilder and finally exported them as .AWD files) but I recieve the following ERROR!

Error: Error #2032: Stream Error. URL: app:/assets/mymodel.awd
at away3d.loaders::AssetLoader/onRetrievalFailed()[F:\away3d-core-fp11-4.1.6\src\away3d\loaders\AssetLoader.as:521]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()[F:\away3d-core-fp11-4.1.6\src\away3d\loaders\misc\SingleFileLoader.as:411]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

NOTE: when I make an AS3 project(targeting flash player) everything works fine! and I don’t receive an ERROR!

I hope somebody can help me. I even considered to remake the 3D models!

]]>
[closed] Dispose vertex animation tag:away3d.com,2017:forum/viewthread/.6263 2017-11-28T11:24:09Z 2017-11-28T14:03:57Z yomyom Hello !

I would like to dispose a vertex animation. When i take a look to the function dispose() of the vertexclipnode or vertexanimationset, I find an empty function.

only the frames have something in it, and there is something I dont understand :

public function dispose():void
  {
   
var numSubGeoms:uint _subGeometries.length;
   
   for (var 
i:uint 0numSubGeoms; ++i{
    
var subGeom:ISubGeometry _subGeometries[0];
    
removeSubGeometry(subGeom);
    
subGeom.dispose();
   
}
  } 

It disposes only the first subgeom. Is it an error? How to dispose properly the animationset and all the animations inside? frame by frame and then just by setting the animationset and the nodes as “null”?

thank you.

 

]]>
modifying global axes orientation tag:away3d.com,2017:forum/viewthread/.6261 2017-10-29T13:41:09Z 2017-10-30T15:52:20Z klinek3 Is it possible to change the orientation of global axes in away3D? (like in the attached jpeg)

It’s different from the orientation in most of 3d softwares (like 3ds max) - sometimes it’s little confusing when you build your scene inside desktop 3d software and try to transfer it into away3D.

]]>
GameTools Examples Away3D Version? tag:away3d.com,2017:forum/viewthread/.6260 2017-10-07T13:58:49Z 0 Raster Hi, I was wondering what specific version of Away3D and AwayPhysics that was used in this old github game tools example:

https://github.com/away3d/away3d-game-tools

Thanks.

]]>
How to apply a texture inside a CylinderGeometry tag:away3d.com,2017:forum/viewthread/.6259 2017-09-07T07:48:31Z 0 dakota I am using the following code to apply a texture on a CylinderGeometry

_plane = new Mesh(new CylinderGeometry(10010020064,,falsefalse), new TextureMaterial(Cast.bitmapTexture(FloorDiffuse)));
_view.scene.addChild(_plane); 

This code is applying the texture on the outside of the cylinder. Is there any way I can apply the texture to the inside surface of the CylinderGeometry?

]]>
How can we extract the animation of a web game Unity 3d .AWD tag:away3d.com,2017:forum/viewthread/.6249 2017-06-20T16:05:51Z 0 vietnamese I live in Vietnam, Currently I have a problem is a file v_file.awd contains the animation of a web game that I play, I do not know how to unpack it or open with what software. I hope you can help me to extract this file and exploit the resources from them (I mod Counter-Strike game) (I at the link: http://upthink.wap.sh/files/v_shovel[1].awd) http://upthink.wap.sh/images/untitled.JPG). I need to be able to covert out .obj ... Looking forward to helping me. Thank you

]]>
How to render two mesh in different projections simultaneously at the same time? tag:away3d.com,2017:forum/viewthread/.6248 2017-06-17T01:38:35Z 0 Vacuum bulb slave Question

]]>
How to render a plane in orthogonal, and a figure in a perspective projection? tag:away3d.com,2017:forum/viewthread/.6247 2017-06-16T07:35:17Z 0 Vacuum bulb slave How to render a plane in orthogonal, and a figure in a perspective projection?

This code not work.

package;

//   OpenFL   
import openfl.display.*;
import openfl.events.*;
import openfl.geom.Point;
import openfl.geom.Rectangle;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFormat;
import openfl.text.TextFormatAlign;
import openfl.Assets;
import openfl.Lib;
import openfl.geom.Vector3D;
//   Away3D   
import away3d.containers.*;
import away3d.entities.*;
import away3d.materials.*;
import away3d.primitives.*;
import away3d.utils.*;
import away3d.debug.AwayFPS;
import away3d.cameras.lenses.LensBase;       
    
import away3d.cameras.lenses.OrthographicLens
    
import away3d.cameras.lenses.PerspectiveLens

class 
Main extends Sprite {
 
 
private var _view:View3D;
 private var 
_plane:Mesh;
 private var 
_plane2:Mesh;
 private var 
_plane3:Mesh;

 public function new() 
{
  super
();
  
  
_view = new View3D();
  
addChild(_view);
   
_view.camera.800
   
_view.camera.= -500;
  
_view.camera.lookAt(new Vector3D());
    
   
  
//   ORTHOGRAPHIC   
  //_view.camera.lens = new OrthographicLens(); 
  
  
_plane = new Mesh(new PlaneGeometry(10241024 ), 
  new 
TextureMaterial(Cast.bitmapTexture("assets/45.jpg")));
  
_plane.0;
  
_plane.0;
  
_plane.= -220
  
_plane.rotationX = -30;
    
  
_plane2 = new Mesh(new PlaneGeometry(10241024), 
  new 
TextureMaterial(Cast.bitmapTexture("assets/56.jpg")));
  
_plane2.1024;
  
_plane2.0;
  
_plane2.= -220
  
_plane2.rotationX = -30;
 
 
  
//  PERSPECTIVE   
  //_view.camera.lens = new PerspectiveLens(); 

  
_plane3 = new Mesh(new PlaneGeometry(512512), 
  new 
TextureMaterial(Cast.bitmapTexture("assets/23.jpg")));
  
_plane3.0;
  
_plane3.0;
  
_plane3.= -220.01
  
_plane3.rotationX = -30;
    
  
_view.scene.addChild(_plane );
  
_view.scene.addChild(_plane2 );
  
_view.scene.addChild(_plane3 );
  
  
  
//setup the render loop
  
addEventListener(Event.ENTER_FRAME_onEnterFrame);
  
stage.addEventListener(Event.RESIZEonResize);
  
onResize();
  
 
}

 
private function _onEnterFrame(e:Event):Void {
  
  _view
.render();
  
 
}
 
private function onResize(event:Event null):Void {
  _view
.width stage.stageWidth;
  
_view.height stage.stageHeight;
 
}
 
]]>