Hi. Flash player beta 11.6 brings good news to us. Now we can use more serious stuff in shaders. Condition operators are among them.
вторник, 11 декабря 2012 г.
понедельник, 10 декабря 2012 г.
Rotations in 3D. Part 2 - Rotation in arbitrary point in space
Hi. Today I'll show you how to rotate 3D object about cardinal axis in arbitrary point in space.
понедельник, 5 ноября 2012 г.
пятница, 7 сентября 2012 г.
Rotations in 3D. Part 1 - Euler Angles.
Hello. Today I want to talk about rotations in 3D. I hope to cover several possibilities to rotate an object, so stay tuned. In first part I'll try to explain what the Euler Angles are.
четверг, 9 августа 2012 г.
Stage3D and premultiplied alpha
Hi everyone. Today I want to tell about problem I met when used transparent image in Stage3D.
четверг, 2 августа 2012 г.
Fast isEven() function
Just a note for myself...
This is a way I used to know if int is even or odd:
Also the best performance gain experienced if above code used inline. Calling a method like this
Upd.: method that you can find in comment below or here - great blog - is even faster. I definetely will use this approach.
This is a way I used to know if int is even or odd:
(i % 2) == 0;And here's a faster way
((i * 0.5) - (i >> 1)) == 0;I was afraid that first part
i * 0.5;can give 1.0000001, for example, due to round error. But it sems that integer numbers divided by 2 without presision lost. If someone have another information, please let me know.
Also the best performance gain experienced if above code used inline. Calling a method like this
private function isEven(i:int):Boolean{
return ((i * 0.5) - (i >> 1)) == 0;
}
is 10 times slower!Upd.: method that you can find in comment below or here - great blog - is even faster. I definetely will use this approach.
пятница, 13 июля 2012 г.
I don't need flash.geom.Matrix3D class anymore
I don't like native math classes for several reasons. For example, I don't have control over it and I can't say exactly is it my error or class implementation error when something going wrong. And according to this post Bugs in Vector3D and Matrix3D there're a lot of bugs. Also every matrix.transformVector() call creates new vector instance. Also in some cases I need 3x3 matrix instead of 4x4 for 3D math.
пятница, 8 июня 2012 г.
понедельник, 4 июня 2012 г.
пятница, 18 мая 2012 г.
среда, 16 мая 2012 г.
пятница, 11 мая 2012 г.
Stage3D DisplacementMapFilter
Hi. Today I want to show how to achieve famous 'displacement map filter effect' using AGAL. This effect can be done as postprocess so there can be infinetely many sources of space distortions. Be careful - there's a huge number of word 'DISPLACEMENT' in the text.
четверг, 3 мая 2012 г.
My Stage3D 2D :)
Hi everyone. I want to show some tests that I made recently. It's simple 2D engine that use the power of Stage3D API from Adobe.
Подписаться на:
Сообщения (Atom)