Is there any example of how to setup lights with Away3d V.2 since Light3D seems not to work any more in V2 (or maybe I’m just stupid *g*)?
I haven’t found one neither in the lessons nor in the examples or the tutorials section…
[...] conjuntion with the new LIVEDOCS, Pete has done a great job and introduced an EXAMPLES page to allow anyone to post any useful Away3D snippets or complete solutions that others would [...]
I’m going to put this here, though its not the best place. (I couldn’t find the place to upload examples.) Here’s an easy, fast and beautiful motion blur effect.
/*
You need:
TweenLite at least, or some tweening engine that fires functions onComplete.
0. Put these functions in your Away3DBase file or wherever you fire your update function.
1. Set the RenderSession of your Scene to Bitmap.
2. Set view.visible to false (tweak this to your settings of course, but I find it easier to hide the real view to prevent visual glitches) 3.Do a timelagScene in your update function after the view render, more time is more blurry (think Drunk).
*/
function timelagScene(timeLag):void{
//This bad boy adds a motion blur without any processor degradation. I love it.
frames[view.viewTimer] = duplicateBitmapData(view);
TweenLite.to(frames[view.viewTimer], timeLag, {alpha:0, onComplete:removeChild, onCompleteParams:[frames[view.viewTimer]]});
}
private function duplicateBitmapData(duplicateTarget):Bitmap {
var bmd = BitmapRenderSession(view.session).getBitmapData(view).clone();
var b = new Bitmap(bmd);
b.scaleX = b.scaleY = 1.5; // Set to scale of BitmapRenderSession
b.alpha = 1;
addChildAt(b,1);
Salut
Bravo je trouve votre produit super!
Comment by pottier
— March 22, 2008 @ 9:44 am
Is there any example of how to setup lights with Away3d V.2 since Light3D seems not to work any more in V2 (or maybe I’m just stupid *g*)?
I haven’t found one neither in the lessons nor in the examples or the tutorials section…
Comment by sven
— April 23, 2008 @ 2:01 am
Willkommen im Web3.0 – Namastey
Comment by Snark
— May 13, 2008 @ 7:44 pm
I can’t see the examples.
Comment by roc
— July 15, 2008 @ 7:43 pm
[...] conjuntion with the new LIVEDOCS, Pete has done a great job and introduced an EXAMPLES page to allow anyone to post any useful Away3D snippets or complete solutions that others would [...]
Pingback by flash as » Away3D Livedocs, Examples and Wiki
— August 27, 2008 @ 11:26 am
is not a opensource engine?
Comment by kevin.ma
— January 7, 2009 @ 4:00 am
Good idea, but note that examples are unchecked and may be completely out of order.
I noticed for a Sandy example the suggestion
object1.lookAt(object2);
Although this would be nice, it doesn’t work that way.
So check out the documentation to see if the code *should* work or if it is only built on guesses :)
Cheers!
/Petit
Comment by Petit
— February 6, 2009 @ 1:52 pm
I’m going to put this here, though its not the best place. (I couldn’t find the place to upload examples.) Here’s an easy, fast and beautiful motion blur effect.
/*
You need:
TweenLite at least, or some tweening engine that fires functions onComplete.
0. Put these functions in your Away3DBase file or wherever you fire your update function.
1. Set the RenderSession of your Scene to Bitmap.
2. Set view.visible to false (tweak this to your settings of course, but I find it easier to hide the real view to prevent visual glitches) 3.Do a timelagScene in your update function after the view render, more time is more blurry (think Drunk).
*/
function timelagScene(timeLag):void{
//This bad boy adds a motion blur without any processor degradation. I love it.
frames[view.viewTimer] = duplicateBitmapData(view);
TweenLite.to(frames[view.viewTimer], timeLag, {alpha:0, onComplete:removeChild, onCompleteParams:[frames[view.viewTimer]]});
}
private function duplicateBitmapData(duplicateTarget):Bitmap {
var bmd = BitmapRenderSession(view.session).getBitmapData(view).clone();
var b = new Bitmap(bmd);
b.scaleX = b.scaleY = 1.5; // Set to scale of BitmapRenderSession
b.alpha = 1;
addChildAt(b,1);
return b;
}
Comment by Matt Pelham — June 10, 2009 @ 12:33 pm
[...] support or if you have questions, please register on our our dev group or read our documentation/example section on the main Away3D [...]
Pingback by trace(myBitmapdata); » Blog Archive » Away3D: Loading & exporting data
— October 13, 2009 @ 6:33 am