Away3D Forum http://away3d.com/forum/ Away3D Forum en Copyright 2017 2017-07-23T13:03:37+00:00 Best fitness tracker http://away3d.com/forum/viewthread/6256/ http://away3d.com/forum/viewthread/6256/#When:13:03:37Z <p>I found this <a href="http://ithealthfitness.com/best-fitness-tracker.dit/" title="best fitness tracker">best fitness tracker</a> in a site where so many <a href="http://ithealthfitness.com/fitness-tracker-reviews.dit/" title="fitness tracker reviews">fitness tracker reviews</a> .</p> 2017-07-23T13:03:37+00:00 Forum Feeds http://away3d.com/forum/viewthread/126/ http://away3d.com/forum/viewthread/126/#When:20:41:16Z <p>Hello everyone,</p> <p>We have just enabled atom and rss feeds at the bottom of the page. You can subscribe to blog posts, forum topics and other channel goodies we are preparing.</p> <p>Please let us know if you like the way it works, have suggestions, etc.</p> 2011-06-21T20:41:16+00:00 FBX File Support http://away3d.com/forum/viewthread/6210/ http://away3d.com/forum/viewthread/6210/#When:23:42:31Z <p>This week i have decided to create a fbx binary parser for away3d 4.1</p> <p>So far it only imports geometries data, cameras and lights.</p> <p>i was wondering although i think i know what the answer is who wants a copy when its done?</p> 2017-03-26T23:42:31+00:00 How to get UV coordinates of mesh http://away3d.com/forum/viewthread/6255/ http://away3d.com/forum/viewthread/6255/#When:12:55:31Z <p>Hi all.</p> <p>I already know that I can get UVs by using event:MouseEvent3D. event.uv is returning the same results what I need. But the problem is in my project I can’t use MouseEvent3D.</p> <p>So is there any function which returns UV of a mesh ?</p> <p>I can guess it’s called ‘unprojection’. But the function ‘unproject’ is only available for View3D &amp; it’s not resolving my issue I want to unproject a mesh. I want UVs of that mesh.</p> <p>Help please I’m searching for the solution since a last month :(</p> 2017-07-06T12:55:31+00:00 Problems converting .dae to awd http://away3d.com/forum/viewthread/6219/ http://away3d.com/forum/viewthread/6219/#When:17:18:36Z <p>Hi,</p> <p>I’m trying to convert a .dae file, exported from Blender, to .awd using Away Builder. The file uses skeleton animation and I’ve managed to imported it correctly into the Away Builder and played the animation, but when I save the file as .awd and try to re open it, I get an error#1034 and the scene is not loaded.</p> <p>If I import the file and save it, without attaching the animation into the model, I can open it fine, but as soon I try to attach the animation a get the error#1034 again.</p> <p>I’m attaching the .dae file I’m using for the test, can you help me on this matter?</p> <p>Thank you in advance.</p> 2017-04-30T17:18:36+00:00 How can we extract the animation of a web game Unity 3d .AWD http://away3d.com/forum/viewthread/6249/ http://away3d.com/forum/viewthread/6249/#When:16:05:51Z <p>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: <a href="http://upthink.wap.sh/files/v_shovel">http://upthink.wap.sh/files/v_shovel</a>[1].awd) <a href="http://upthink.wap.sh/images/untitled.JPG">http://upthink.wap.sh/images/untitled.JPG</a>). I need to be able to covert out .obj ... Looking forward to helping me. Thank you</p> 2017-06-20T16:05:51+00:00 How to render two mesh in different projections simultaneously at the same time? http://away3d.com/forum/viewthread/6248/ http://away3d.com/forum/viewthread/6248/#When:01:38:35Z <p>Question</p> 2017-06-17T01:38:35+00:00 How to render a plane in orthogonal, and a figure in a perspective projection? http://away3d.com/forum/viewthread/6247/ http://away3d.com/forum/viewthread/6247/#When:07:35:17Z <p>How to render a plane in orthogonal, and a figure in a perspective projection?</p> <p>This code not work.</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #0000BB">package</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;OpenFL&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">display</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">events</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Point</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Rectangle</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextField</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFieldAutoSize</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFormat</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFormatAlign</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">Assets</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">Lib</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Vector3D</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;Away3D&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">containers</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">entities</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">materials</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">primitives</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">utils</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">debug</span><span style="color: #007700">.</span><span style="color: #0000BB">AwayFPS</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">LensBase</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">OrthographicLens</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">PerspectiveLens</span><span style="color: #007700">;&nbsp;<br /><br />class&nbsp;</span><span style="color: #0000BB">Main&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">Sprite&nbsp;{<br />&nbsp;<br />&nbsp;</span><span style="color: #007700">private&nbsp;var&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">:</span><span style="color: #0000BB">View3D</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br /><br />&nbsp;public&nbsp;function&nbsp;new()&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;super</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">View3D</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_view</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">800</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">500</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">lookAt</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">Vector3D</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;ORTHOGRAPHIC&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;//_view.camera.lens&nbsp;=&nbsp;new&nbsp;OrthographicLens();&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">1024</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024&nbsp;</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/45.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">1024</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/56.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;<br />&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;&nbsp;PERSPECTIVE&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;//_view.camera.lens&nbsp;=&nbsp;new&nbsp;PerspectiveLens();&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">512</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">512</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/23.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220.01</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane2&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane3&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//setup&nbsp;the&nbsp;render&nbsp;loop<br />&nbsp;&nbsp;</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">Event</span><span style="color: #007700">.</span><span style="color: #0000BB">ENTER_FRAME</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_onEnterFrame</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">Event</span><span style="color: #007700">.</span><span style="color: #0000BB">RESIZE</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;</span><span style="color: #0000BB">}<br /><br />&nbsp;</span><span style="color: #007700">private&nbsp;function&nbsp;</span><span style="color: #0000BB">_onEnterFrame</span><span style="color: #007700">(</span><span style="color: #0000BB">e</span><span style="color: #007700">:</span><span style="color: #0000BB">Event</span><span style="color: #007700">):</span><span style="color: #0000BB">Void&nbsp;{<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;_view</span><span style="color: #007700">.</span><span style="color: #0000BB">render</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;</span><span style="color: #007700">private&nbsp;function&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">(</span><span style="color: #0000BB">event</span><span style="color: #007700">:</span><span style="color: #0000BB">Event&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">):</span><span style="color: #0000BB">Void&nbsp;{<br />&nbsp;&nbsp;_view</span><span style="color: #007700">.</span><span style="color: #0000BB">width&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">stageWidth</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">height&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">stageHeight</span><span style="color: #007700">;<br />&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;<br />}&nbsp;</span> </span> </code></div> 2017-06-16T07:35:17+00:00 How to output to render unicode 2d vector font ? (HAXE) http://away3d.com/forum/viewthread/6246/ http://away3d.com/forum/viewthread/6246/#When:21:29:05Z <p> How to output to render unicode 2d vector font ? (HAXE)</p> 2017-06-14T21:29:05+00:00 loadermd5test &amp; class which extends EventDispatcher http://away3d.com/forum/viewthread/6239/ http://away3d.com/forum/viewthread/6239/#When:03:04:07Z <p>in away3d broomstick example, loadermd5test, if there are several animated mesh(several class which extends EventDispatcher), it didn’t work, why ? this message appear:</p> <p>Error: Error #2032: Stream Error. URL: app:/players/pg3/model.png<br /> at away3d.loaders::AssetLoader/onRetrievalFailed()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at flash.net::URLLoader/onComplete()</p> <p>because of the MonsterEvent ? i am using loader instead of assetlibrary for different class which extends EventDispatcher<br /> can anyone help me solve this problem? any differences in coding by using different version of away3d? if yes, how ? now i am embedded all my enemies into the main file separate it with different loader<br /> please demonstrate it</p> 2017-06-01T03:04:07+00:00