Hi All,
What is the easiest approach to add a motion blur for a 3D Object or its texture using away3d ?
Should I use AGAL or is there a simpler and faster approach ?
Motion blurSoftware: Away3D 4.x |
||
andreahmed, Member
Posted: 04 October 2013 08:21 AM Total Posts: 62 Hi All, What is the easiest approach to add a motion blur for a 3D Object or its texture using away3d ? Should I use AGAL or is there a simpler and faster approach ? |
||
SharpEdge, Member
Posted: 04 October 2013 01:20 PM Total Posts: 94 [ # 1 ] you can look at Nvidia documentation, it’s really complete: developer.nvidia.com |
||
GoroMatsumoto, Sr. Member
Posted: 05 October 2013 01:12 AM Total Posts: 166 [ # 2 ] Away3D already has “MotionBlurFilter3D”. |
||
andreahmed, Member
Posted: 05 October 2013 06:55 AM Total Posts: 62 [ # 3 ] but it is only works for the whole scene. I just one texture or one model to be blurred. |
||
GoroMatsumoto, Sr. Member
Posted: 05 October 2013 07:14 AM Total Posts: 166 [ # 4 ] http://john-chapman-graphics.blogspot.jp/2013/01/per-object-motion-blur.html |
||
andreahmed, Member
Posted: 05 October 2013 07:35 AM Total Posts: 62 [ # 5 ] Thanks goro. What about a simple blur ? Is there a fast way instead of applying gaussian blur,..etc. ? If I have cylinder with multiple textures for example, If I would like to apply blur on that object, how about blur each texture ? is this a good method ? |
||
GoroMatsumoto, Sr. Member
Posted: 05 October 2013 07:59 AM Total Posts: 166 [ # 6 ] I can’t imagine of your situation very well. Anyway, if you want a motion blur on 3d, If you don’t know about 3d graphics very well,
|
||
andreahmed, Member
Posted: 05 October 2013 08:16 AM Total Posts: 62 [ # 7 ] How would that class help me ? Can it be applied to one texture ? 1) Well, the cylinder’s sides are not important, I’m trying to simulate a slot reel machine, so I want to blur the reel (textures) when its spinning. The only part of the cylinder that will be shown to the viewer, is the symbols side only, and those that are needed to be blurred I think… ?
Thanks for your reply and for your help! |
||
GoroMatsumoto, Sr. Member
Posted: 05 October 2013 08:35 AM Total Posts: 166 [ # 8 ] I see. 1) At this moment, Away3d doesn’t have a blur class like you described. 2) Tutorials: and searching on internet for more advanced technics or tuts. |
||
andreahmed, Member
Posted: 05 October 2013 08:44 AM Total Posts: 62 [ # 9 ] I thought about the idea of uploading the textures, after bluring to the GPU. |
||
GoroMatsumoto, Sr. Member
Posted: 05 October 2013 09:04 AM Total Posts: 166 [ # 10 ] You should write the shader as MaterialMethod. |
||
SharpEdge, Member
Posted: 07 October 2013 08:11 AM Total Posts: 94 [ # 11 ] As Matsumoto said if you want to apply a GPU Blur you should follow the link of Matsumoto with the guide to the AGAL code, otherwise, if you choose to blur it with CPU ( for your needs i think it’s the best) you could use some basic AS3 filters on the texture, like this: BlurFilter |
||
GrokDD, Newbie
Posted: 08 October 2013 03:09 AM Total Posts: 28 [ # 12 ] Perhaps, Having two or three textures for each symbol with variance of degree of blur, and hot swap them on the fly, based on the rate of the wheel spinning. if I understand correctly, you want to blur the slot symbols as they spin at high speeds as the user pulls the wheel. So have several predefined reels with photoshoped blured symbols. Based on the speed of rotation, change the texture on the reel mesh to suit your visual tastes. Or…. Better approach, have three separate reels in the scene with three different levels of pre-blured symbols. Then as the reels speed up or slow down, the alpha of the reels increase or decrease to expose the blury-er or less blured reel as needed. I think this would be less noticeable transition then my first idea. Good luck!
|
||
|
||
GoroMatsumoto, Sr. Member
Posted: 08 October 2013 04:37 AM Total Posts: 166 [ # 14 ] @SharpEdge @GrokDD @andreahmed Cheers. |
||
andreahmed, Member
Posted: 09 October 2013 09:53 AM Total Posts: 62 [ # 15 ] Thanks Goro I have two options 2. Just copy the fragmenet shader class and integrate it in away3d, but I really do not know how complex is that, because the filter classes in away3d is not really clear. |