actually i already post this to PV3D's mail archieve for a month
also PV3D team said that "soon" to release woking version
so i decide to leave my dae mod in trash, but many one keep asking me
for a guide, so...this is a quick/mod guide!
anyway if you not understand my MD2 last post yet, plz don't
try this one, noobs warning!
Demo
- it's look old but it's new http://sleepydesign.com/labs/as3/PaperVision3D/GreatWhite/DAEAnimation/
- MD2 it's left and right, DAE in middle, all in one to prove it work fine together
- try click on left/right plane to change animation (full loop/half loop)
- don't expect cleaner version
- learn to integrate MD2 mod -> DAE mod
- early use of DAE Animation
- money? sigh....i just got 0.01$ from google ads from my own click ... opps! sorry google just test :P
- last know good PaperVision3D rev 421
- AS Class in old MD2 guide : Papervision3D GreatWhite : MD2 Animation
- your animated DAE (that's must auto play fine in original package)
- Some mod/add below
1. add 2 SleepyController this in org\papervision3d\objects\parsers\DAE.as
//public lazy hack
public var SleepyController1
public var SleepyController2
private function buildAnimationController( joint:Node3D, keys:Array,
matrices:Array ):void
{
var mats:Array = new Array(matrices.length);
var ctl:SimpleController = new SimpleController(joint,
SimpleController.TRANSFORM);
if(!SleepyController1){
SleepyController1 = ctl
}else {
SleepyController2 = ctl
}
2. line #100 at \org\papervision3d\core\animation\controllers\SimpleController.as to fix weird animation (just over frame)
var endFrame:AnimationFrame = this.frames[ currentFrame ];
//proof it work
trace(firstFrame,currentFrame,nextFrame,lastFrame)
3. add controller after "controller complete" not just model complete in your "main.as"
dae.SleepyController1.gotoAndLoop(10, 20)
dae.SleepyController2.gotoAndLoop(10, 20)
4. mix up with MD2? let's see
if(mouse3D.x>0){
ctrl.gotoAndLoop(0, 16)
dae.SleepyController1.gotoAndLoop(10, 20)
dae.SleepyController2.gotoAndLoop(10, 20)
md2.setMaterial(new BitmapFileMaterial("pg.png"));
}else {
ctrl.gotoAndLoop(18, 31)
dae.SleepyController1.gotoAndLoop(0, 40)
dae.SleepyController2.gotoAndLoop(0, 40)
md2.setMaterial(new BitmapFileMaterial("pg_angry.png"));
}
Next?
- if you not mod addict or really need early use of DAE animation plz skip this ;)
- dig something else and wait for official release
- sigh.... ;P
5 comments:
Hi,may i have the sources of the above flash? Since I tried hard but can't figure out how to make it work. Thanx a lot. chikiuso@gmail.com
my sample already out of date, plz do try follow this thread instead
http://osflash.org/pipermail/papervision3d_osflash.org/2008-May/021662.html
hth :D
Thanx a lot, I just tried following the thread at osflash, but it doesn't seem to be good for a beginner at all ... without the whole picture ...
I have a class to control DAE animations, i'm working in the final version but there is the current version available to download.
look here: http://pablobandin.wordpress.com/2008/12/06/control-dae-animation/
Hi! Where exactly in the DAE.as is the code suppose to be placed?
I receive lot of errors from my flashbuilder...
Post a Comment