Showing posts with label ND3D. Show all posts
Showing posts with label ND3D. Show all posts

Wednesday, January 28, 2009

[ND3D] Smallest 3D engine for JigLib isn't it ;)

Lars just update his ND3D! also my MD2 mod there nice! then it's my turn ;)

Are you got plenty of free time?

- hmm...no! but i can't resist myself doing this (not again :P)...so let's skip boring part, here we go!

1. FileMaterial (17kb) : Lars add AlphaMaterialExample look pretty cool but i do hate to embed image in swf so let's mod it to load picture from external

image
http://sleepydesign.com/labs/as3/ND3D/JigLib/ND3DFileMaterial.html

2. Line3D and LineMaterial (16k) : and yes another handy while debugging thing it's axis which mean i need some line here, let's mod it (a bit dirty cause i use 3 vertices here)

 image
http://sleepydesign.com/labs/as3/ND3D/JigLib/ND3DLine3D.html

3. MD2 with Axis (22k?) it's 18k before isn't it lol, blame me see below for reason ;)

 image
http://sleepydesign.com/labs/as3/ND3D/JigLib/ND3DMD2.html

4. Here's most fun and hardest part cause ND3D didn't have Matrix also transform!, actually it's a good news for minimal crazy here cause we can use Matrix class from JigLib and the result is 31kb perfect for banner size limit ;)

image
http://sleepydesign.com/labs/as3/ND3D/JigLib/ND3DJigLib.html

and yes that's why size is increasing! but i'm quite sure that no one blame me here ;)
btw, all source code has been sent to Lars and let's him make decision that all features here 'll be add or not (you can blame him now  :P , lol)


What's next?

- i really want to try Unity3D, sadly that i got no Mac here, can some one rapid click my banner plz! i got 11$ now in 1 year, so it's just only 100 year to but some Mac LOL

Technorati Tags: ,,,,,,

Tuesday, September 30, 2008

ND3D : Is that possible 18KB SWF for MD2 animation?

What?

- I use Away3D for web site, but sometime i do need smallest kb for banner limited size somehow (blame slow speed connection here ;)

Then?

it's 2 options in my mind
1. Away3D : scale down by ripping no use class there
2. ND3D : implement MD2 animation by mod existing class by Philippe Ajoux (Where's he now btw?)
the 2nd choice look...more challenge ;D

Result?

image- it's quite easy to implement MD2 parser there cause ND3D is quite simply to understand, after 1 night pass by, here is 18k swf : http://sleepydesign.com/labs/as3/ND3D/MD2

More?

- that's it! actually it's not much class added, also not much line changed/mod so swf size still small ever!
- it can be optimize somehow, nothing optimize yet really ;)
- it can be smaller, but 18kb already fine to me

Source?

- i forget to mention early, my F10 test and also this MD2 animation source code already sent to Lars, so do beg him if you really need them (sorry Lars i know you busy, don't blame me here ;P )

Next?

- hmm, don't know yet...maybe hello world PureMVC or maybe more F10 test ;P

Tuesday, September 16, 2008

Flash Player 10 : drawTriangles is faster?

What?

Flash Player 10 is out there for a while, and i really want to know is that faster for 3d with core function? let's try it, shall we? let's googling and let's see what i got there

How?

  1. start reading here : http://www.senocular.com/flash/tutorials/flash10drawingapi/
  2. or here : http://www.boostworthy.com/blog/?p=242
  3. more basic sample here : http://flashandmath.com/advanced/p10triangles/index.html
  4. advance sample here : http://pixelero.wordpress.com/2008/08/31/flash-10-part-4-of-testing-drawtriangles-old-school-tunnels/

Required?

  1. Flex and Flash Player 10 crazy setup
  2. some old computer...why? you 'll got same 24/24fps both of them in fast computer ;P

And then?

i'm lazy enough to rewrite all that, i think that should be better if we can compare speed with old as3 3d engine and new core drawTriangles function right? so i pick ND3D engine in this case cause it's nice and simple enough for integrate to Flash Player 10 (only need 1 night to integrate), ...tadaaa

Flash10 nulldesign AdditiveCubes 

Link?

  1. F9 : http://sleepydesign.com/labs/as3/ND3D/AdditiveCubes.html
  2. F10 : http://sleepydesign.com/labs/as3/ND3D/AdditiveCubes_F10.html

Result?

far as i test with my old computer i got Flash Player 10 with drawTriangles is slower than old style lineTo/moveTo for 2-3 fps, and plz don't trust/argue me yet, better follow link here :  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=675&threadid=1387302&enterthread=y

So?

don't ask me! ask adobe! lol ;)