Showing posts with label Away3D. Show all posts
Showing posts with label Away3D. Show all posts

Tuesday, April 5, 2011

[Away3D] My cats name on Away3D book! ;D

[PACKT] contact me to be a reviewer, an a year after that here it is!

IMG_0442

the left book is XNA, should be fun reading for C# stuff, I get both for free! Thanks! :D

IMG_0443
LOL, Pignoom and Kabmoo are my cat’s name, mean Thai northern style food

IMG_0195
and here they are, so adorable! ;D

actually I should post about MoleHill stuff, yes I did get direct contact from Adobe to get in prelease group, I should excite about it and post something when public release but nothing until now…why? I will tell you when the time is come, it’s worth to wait ;)

del.icio.us Tags:

Monday, February 15, 2010

[Away3DLite] More particles!

I think you're dead?

Long time no blog post woohoo! this year gonna be fun because I plan to workless play more, I need my life back! It's time for having fun ;D

Particle again?

Yeah! 2x faster one with some clipping cheating, 3x faster for no scale via copyPixels ;)
here's animated bitmap particles, while toggle render to copy pixels mode
we even have some fps to add filters and blend mode there ;D 

away3dlite particles

It's clipping around 1,000 particles, so around 2,000 left for render time, all shared same bitmapdata

OK, It's faster than before, what else?

- Shared bitmapData
- Support render to view/layer/bitmap (warning, bitmap approach need some change later)
- Clip by RectClipping
- Animate frame by frame by move their material rect
- Mouse hitTest each particle can be check by particle.isHit

Prove it!

well, here's for more fancy use, magic happen when you draw model 3D to shared bitmapData

1x version via Sprite3D (2009 demo, 1,000 Sprite3D @ 10/30fps)
http://away3d.googlecode.com/svn/branches/lite/bin/Advanced_Mario1000.swf
image

2x version via Particles (2,000 Particles @ 12/30 drawRect, and @ 24/30fps via copyPixels)
http://away3d.googlecode.com/svn/branches/lite/bin/Advanced_Mario2000.swf
image 
Try click to switch draw method from drawRect  -> copyPixels

Source?

as you wish!, you've been warn, it's dev stuff, which mean daily change will be apply ;p
http://away3d.googlecode.com/svn/branches/lite

Any thing else?

- Well, like it or not 3D with HW support via Flash not happen so soon…so i think caching/pooling bitmapdata like old style sprite 2D game with fixed camera angle is best choice for me this year, even Adobe release HW support tomorrow, we still have to wait next year for real production…

- Sadly but true, PSP didn't have multi touch, DS didn't have high quality graphic, iPad/iPhone didn't support Flash, WinMo 7 didn't support Flash, Flash didn't have HW support, Chrome didn't have RSS icon for feeding web, WebGL need geeky browser hidden somewhere and need super tricky to enable it, I think all this just #FAIL and still happen 'til today, many of them is nonsense ;p

- And here's #WIN list…LG LCD TV/Monitor cheaper than Samsung at better spec, Sony VAIO is cheaper Than DELL at better spec. SkyFire support Flash 10 on mobile for a year but not many peep notice! OpenPlug release AS3 -> mobile solution before Adobe Slider, Unity3D bring 3D technology 10 year far away from Flash 3D

- I won't say someone lazy in case I did ;p , Away3DLite is lack many features too, good luck it's open source, and we are open mind group, we always listen to any developer who want to push Flash to limit, when we squeeze all frame rate out and it still useless, so we can totally blame Adobe at that point…

- Many thanks to all submitted patch/improvement to us last year, you just help me save plenty of time, please don't stop doing that!

Next?

- May be Pixel particles? someone need it? it should be faster 5x for pixel, I think.

- Bad news UVT is slow, if you found that lite is slower in some case, try activate MIPMAP by use 2^n texture should help some, I'm try to figure out this by separate renderer, and render it without calculate "T" internal (and we can blame Adobe here ;p), and look like it not happen so soon

- Model Viewer, It's time to real production, let's start with model viewer :)

del.icio.us Tags:

Monday, October 5, 2009

[Away3DLite] Let's mess with Particles


What?

  • when ppl busy with BSP thing i keep mess up with 2D particles...sound boring huh? it's still fun for me lol ;)
  • it's sort with mesh screenZ, (and yes you can request to make it sort with face but it will be slower obviously, so...i decide to do it really later)
  • draw with old style render method beginBitmapFill+drawRect
  • animated by adding bitmapData sequence, and turn animated on (off by default)
  • auto buffer scale just like DOF (without blurring), slower for small piece but a lot faster for huge bitmap (more than ~24px), but consume more RAM depend on quality option set
  • layer support! weirdo but it's there!, i can imagine that someone use this particle as Tree decor, and that will be nightmare if no layer support! more good news is it's just Sprite that you can add filters or blendmode to it! cool ehh? ;)

Why?

  • render as Object3D is seem to be slower because you need to apply matrix transform twice + invert also more traverse time through child node, pros is you can get native interactive
  • render by drawGraphicsData, so it's just like plane = 2 triangles right? you can test speed for 200-300 plane before thing go slow down, so i count that not a good choice
  • render with copyPixels, yeah i know that best choice, but i need buffer scale and some Bitmap for that, and i need to z-sort that Bitmap with other Mesh! so...not now,... suppose to be have own canvas 1st i think

Result?

  • best score for drawRect is around 10px particles with around 2,000-2,500 at 30/30fps steady... i call this "it's just work" version ;p so you can use it it but don't expect for speed wise just yet ;)

away3dlite particles
http://www.sleepydesign.com/labs/as3/Away3DLite/ExParticles.html

Source?

Next?

  • next try would be drawPath , i'll explain this one later (if it work well ;p) let's compare speed again when it done :)
  • btw, in case no GPU for PC via Flash10.1, let's pray drawPath will be faster ;p
  • any comment for improvement is welcome!
del.icio.us Tags: ,

Monday, August 24, 2009

[Flash 10] Round 1: Away3D vs. Away3DLite

What?

- just speed test, want to see speed improve aren't you? ;)
- expect more explanation about Away3DLite at official Away3D site later

Diff?

- name, coding, size (~13kb)
- render pipeline (3D native)
- overall ~4x speed increase
- maximum rendered faces increase from 3,000 to ~14,000 for quad core and steady at 30/30fps

Result?

- Away3D 119kb, 23-26fps via quad core
http://sleepydesign.com/labs/as3/Away3D/ExSphere.html
image

- Away3DLite 13 kb, 30/30fps via quad core
http://sleepydesign.com/labs/as3/Away3DLite/ExSphere.html
image 

Source?

- yes it's finally public in Away3DLite name like i said before , thx Rob for cleaning up ;)
- libs : http://away3d.googlecode.com/svn/trunk/fp10/Away3DLite/src
- examples : http://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3DLite/as/src

Next?

- round 2? i expect you to do that ;p and do tell me if you get faster result from other engine ;)
- more examples? yes sure things, you can expected more soon
- more features? why not?

Tuesday, June 30, 2009

[Flash10] As promised, MD2 with Animation via native Flash10 3D (~10KB)

no it's not perfect yet, old style face reference is slow thing down again around 2x...got to make it "flat" Array 1st to gain fps back...must be 12,000 faces (in my theory) after optimized

MD2 with Animation via native Flash10 3D

and what so different to 18KB version? it's 10KB! lol and this time i did use Utils3D.projectVectors instead to gain more speed like i said before, and you may already known that all this labs result 'll be add to away3d engine soon, which mean you can expect clean+optimize code there, or let me know here if you really want to use this in your next week project ;p


del.icio.us Tags:

Thursday, April 2, 2009

[JigLib] new JigLib+Away3D example

Hmm?

- good news is huge update and new example released, but bad news is it not seem to work on me ;o

So?

- Away3D geek don't like to wait, then i fix it, and also add handy SimpleView+Stat

Result?

  - faster? slower? see for your self ;)

JigLibFlash Away3D 

http://sleepydesign.com/labs/as3/JigLib/Away3D/ExAwayBalls.html

Source?

- it's working "only today svn" http://sleepydesign.com/labs/as3/JigLib/Away3D/ExAwayBalls.as

Next?

- i currently addict to my own AIR web browser, someone want to joy dev it with me? tell me and i'll put them to google code ;)
- btw thx for all click to ads, i got $29.27 now (almost 2 years), so i'll get 100$ pay around next 2-3 years not bad eh? what i gonna buy that day? lol ;)

Technorati Tags: ,

Tuesday, March 3, 2009

[Away3D] Basic Collada Animation Examples

Skip this if you already Away3D expert!, nothing new just got time to start doing leg work here, all noobs is welcome, ;D

1. Basic Collada Animation

image 

How?



skinAnimation = (target.animationLibrary["default"] as AnimationData).animation as SkinAnimation;

// update animation
skinAnimation.update(getTimer()/1000);


2.  Collada Custom Material

image

Snippets?




// try change "lambert1" material
var targetMaterial:MaterialData = target.materialLibrary.getMaterial("lambert1");
targetMaterial.material = new BitmapFileMaterial("assets/Maya8.5/ColladaMaya3.05B/advance/10_skeleton.png");


Source?


- better put in svn right?, a lot easier for keep update and fixing later :)
- grab here http://away3d.googlecode.com/svn/trunk/examples/Collada


That's it?


- lol, yes it's just special request from some peep around here ;), and i decide to blog it for other noobs out there, you can expected more complicated examples later when i got free time and mood :P


Next?


- i mention about Cocomo (AFCS) before and it's run just fine on my "Hello World" test (which my stupid error that i forget to type room name, lol), should blog about it somehow


Technorati Tags: ,,

Friday, February 13, 2009

[Away3D] v2.3 released + new JigLib demo

Read here and more here, okie! now my turn ;) in case JigLib release new Car and Drag demo, but nothing seem to support Away3D like expected ;o, so look like it's my duty to make for Away3D geek, no need to wait!

Here we go

- Engine run test: use your keyboard to move sphere
http://sleepydesign.com/labs/as3/JigLib/Away3D/ExJigLibAway3DFlash3DPhysics.html
image

- Car Drive : use your keyboard to move car
http://sleepydesign.com/labs/as3/JigLib/Away3D/ExJigLibAway3DCarDrive.htmlimage 

- Mouse Drag : use your mouse or your m8 mouse :p kidding
http://sleepydesign.com/labs/as3/JigLib/Away3D/ExJigLibMouseDragAway3D.htmlimage

what's you can expect is clean code with some comment, and best of all is now you can be access in svn
here http://away3d.googlecode.com/svn/branches/jiglib and all 3 examples include there just browse!

That's all?

- not yet, as you can see new profiler and stat appear on top there, that's right! new handy tool is coming to town!, here's how to use it

   1:  // init
   2:  Tasks.init(this, "Tasks test run by katopz");
   3:   
   4:  // begin task
   5:  Tasks.begin("Loop");
   6:   
   7:  // try slow down
   8:  for(var i:uint=0;i<20000;i++)
   9:  {
  10:      var j:Number = Math.random()+Math.sin(i)+Math.cos(i);
  11:  }
  12:   
  13:  // end task
  14:  Tasks.end("Loop","00FFFF");




that's it! and now "Label" and total milliseconds result in specified loop will automatic appear in that taskbar and also plot in mr.doobs Hi-ReS! Stats on the right, nice ehh?


What's next?


- xmpp just out, maybe i can make it work trough strict firewall here (may be not lol) also empty room of cocomo is still waiting for me there, sadly all my free time has gone!

PS. any JigLib question plz ask them not me!, i know nothing more than you guy really! ;) have fun coding!


Technorati Tags: ,,

Tuesday, January 13, 2009

[Away3D] JigLib Flash 3D Physics Engine

What?

bla bla bla i'm lazy to describe thing better see below :P

Then?

it's said Flash but you still can compile with Flex, and yes even try with Away3D, what you waiting for? just do it!

Required?

Result?

after 1 hour mod some class....tadaaaa http://sleepydesign.com/labs/as3/JigLib/Away3D/JigLibAway3DFlash3DPhysics
plz keep in mind it's just quick idea to apply JigLib to Away3D, no material , no light, you can expected many dirty code there (also old PV3D code to compare), feel free to clean/optimize it! ;)

Source?

sure! it's new year right? ;D
http://sleepydesign.com/labs/as3/JigLib/Away3D/JigLibAway3DFlash3DPhysics.zip


happy new year + coding!

Technorati Tags: ,,,,,,

Tuesday, August 5, 2008

Away3D : Collada Animation (Blender)

thx rect (note.x), help me testing collada blender export, here's result

Away3D Collada Blender

What?

  1. we are support Maya 8.5 with ColladaMaya 3.05B
  2. we (maybe) support Blender 2.4 6 with ColladaBlender 0.3.159

Why?

  1. i got no skill in Blender so i ask rect for help
  2. i got no time to learn 'em all just Maya ;/
  3. i try to make friend(s) with AS3, and it work ;D

Required?

  1. my sample here : http://sleepydesign.blogspot.com/2008/07/away3d-collada-animation.html
  2. some basic Collada Animation that export from Blender
  3. hair for tearing off ;P

More?

  1. do try explore more maya dae samples here
    http://sleepydesign.com/labs/as3/Away3D/ColladaAnimation/Maya8.5/ColladaMaya3.05B/
  2. blender? try ask blender guy not me, i can't help ;)

Next?

  1. more advance sample
  2. finish real life job ;P

Thursday, July 31, 2008

Away3D : Collada Animation


finally out!, i'm busy now! so let's the code say ;P
http://sleepydesign.com/labs/as3/Away3D/ColladaAnimation/

 

What?

  1. play normal dae animation export from fav 3d prog (test with Maya8.5)
  2. controllable bone at runtime.

Required?

  1. Away3D rev 596 : http://away3d.googlecode.com/svn/trunk/src
  2. Demo : http://sleepydesign.com/labs/as3/Away3D/ColladaAnimation.zip

What's Next?

  1. try bone -> lookAt -> object
  2. try add physics to bone for more fun
  3. back to real life work :P

Thursday, May 1, 2008

Away3D : Metasequoia (mqo)

i'm now in Away3D team yeah! ;D so let's add more in Away3D section, lol



What for?
  1. add more 3d model format support for Away3D
  2. learning that's it :P
Related?
  1. main site : http://www.metaseq.net/english/index.html
  2. original source : http://www.libspark.org/wiki/rch850/Metasequoia
  3. some model stock : http://logic-wizard.hp.infoseek.co.jp/fms_e.htm
Source?
  1. early : http://sleepydesign.com/labs/as3/Away3D/Metasequoia.zip
Next?
  1. maybe add that mqo to away3d svn
  2. dae animation on Away3D
  3. add some md2 animation samples
  4. Away3D Away3D Away3D Away3D ;P

Thursday, April 3, 2008

Away3D : Fluid with Polygonal

Open source 'll rule the world ;) , when someone release some code. someone else use/mod and release it like virus cycle, i'm talking about Water Fuild as3 code here , let's see...

Related Links
  1. Yamasv
  2. Exey
then it's my turn and let's challenge more Fluid with Away3D Polygonal Array3



Info
  1. model and textures are someone (not mine) copyright.
  2. use Numpad 1 for Wire, 2 for Texture, 3 to toggle Polygonal on/off
  3. left click navigate, right click for stat
What's for
  1. learn to use Polygonal Array3 (maybe faster maybe not)
  2. keep open source growing ;)
  3. try add more sample/skill with Away3D
Source?
  1. FluidPolygonal.as
Next?
  1. add real physics (maybe WOW)
  2. add more duck to test more Array3 speed

Friday, February 29, 2008

Away3D : EngineTest 1.9.4 rev 443



Just engine test, after Rob add my BitmapFileMaterial.as
to 1.9.4, it's now easy for flash ppl to use! no more embed! ;)

What for?
  • learning another 3D engine
  • suggest handy class to group
  • boost up both 3D engine to limit
Demo

Next?
  • don't know, busy here ;P