Tag Archives: utility

A better Math.Sin()

Sine waves are great and all, but for us non-mathematicians they are difficult to visualize and tweak. So, lets dissect and analyze this ultra-common trig function. Scalpel, please A sine wave calculation has one core parameter, an angle. In AS3 this angle needs to be in radians. But we can expand this into five parameters [...]
Posted in Actionscript | Also tagged , | 1 Comment

Resizing BitmapData without scaling

Have you ever wanted to resize a BitmapData object without scaling it? Normally you would perform a matrix transformation on it by calling the draw() method, but that also scales it.  So how do you acheive non-scaling resize?  Hopefully this can help explain it: // create something that has BitmapData for me to resize this.bmp [...]
Posted in Actionscript | Also tagged , , , | 8 Comments

PV3DDebug now with Google Code action!

With the great reviews from [draw.logic], the dudes at the Papervison3D dev blog and just the response from the community I figured it was time to set this thing in stone, metaphorically speaking.  I went ahead and revised it (adding a camera is a little different now), included all the libraries (SWCs) you need and [...]
Posted in Papervision | Also tagged , , , , | 4 Comments