Saturday, April 15, 2017
Papervision3D GreatWhite DAE Animation
Papervision3D GreatWhite DAE Animation
Happy Chinese New Year, look like i always come up when new year eh? :P
actually i already post this to PV3Ds 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 dont
try this one, noobs warning!
Demo
- its look old but its new http://sleepydesign.com/labs/as3/PaperVision3D/GreatWhite/DAEAnimation/
- MD2 its 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)
- dont 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 (thats must auto play fine in original package)
- Some mod/add below
1. add 2 SleepyController this in orgpapervision3dobjectsparsersDAE.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 orgpapervision3dcoreanimationcontrollersSimpleController.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? lets 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
Go to link Download
Labels:
animation,
dae,
greatwhite,
papervision3d