WMODE and Color Transfom weirdness…

November 30, 2008 · Posted in General, JavaScript · Comment 

Just the other day, while I was building a Flash site, I noticed that the color transform that I was applying to my menu items did not work in FF (ver 3 in this case, not sure same across versions), but worked fine in IE and standalone Flash player.

I figured it would have to be caused by the embed code, and after playing around and changing params around, I found that it was due to the wmode param. If I set it to either “opaque” or “transparent” the transform failed to show. But worked fine when set to “window”, the default value. It seems strange that all other thing worked except for the transform?! What is it about it that would stop it working in the other wmodes…?

The winning code:

       <script type="text/javascript">
            // <![CDATA[
                var flashVars = {
                };
                var params = {
                      wmode: 'window'
                    , allowscriptaccess: "sameDomain"
                }
                 var attributes = {
                      id: 'flashcontent'
                };
                var expressInstall = false;
                swfobject.embedSWF( "main.swf", "flashcontent", "100%", "100%", "9.0.115", expressInstall, flashVars, params, attributes );
            // ]]>
        </script>

Etienne De Crecy!

November 27, 2008 · Posted in Coolspot · Comment 

Real awesome visiual effects! Wonder how its done…? Projected on to a screen, maybe.

The LED – A movie about the origins of the LED and how to make your own from carborundum!

November 24, 2008 · Posted in General · Comment 


MAKE presents: The LED from make magazine on Vimeo.

Pv3D – Tips and resources for getting started

November 24, 2008 · Posted in 3D, Tutorials · Comment 

These are some of the finding from my initial experience Papervision3D.

Tips:

  • To render both sides of a Plane; MovieMaterrial.oneSide = false or BitmatMaterial.doubleSided = true, depending on the type of material being used.
  • To apply alpha and filters, first you will need to set the primitives’ useOwnContainer property to true. Spent quite a bit of time trying to figure out why my alpha value wasn’t being applied! So if you’re like me and dive in head first before reading the docs, this will save some time.
  • In order to view your 3D objects at their actual ( 100% scale ) size, I found the following values to work:
     camera.zoom  = 10;
     camera.focus  = 200;
     camera.z  = -2000;
  • When using BitmapMaterial, set the smooth property to true to apply smoothing to the loaded bitmap.
  • To make an object interactive, set the object’s material interactive property to true

Resources: