Ask a Question related to Macromedia Director 3D, Design and Development.
-
eone #1
Flash as interactive texture with alpha channel viacopyPixels
I want to use Flash member as interactive 3D texture.
When I copy Flash sprite image to texture (via copyPixels) a lose the alpha
channel of Flash movie.
theMember = member(1, 1)
pImage = image(380,600,32)
pImage.copyPixels((the stage).image, pImage.rect, sprite(flashsprite).rect)
theTexture2 = theMember.newTexture("flash2",#fromImageObject,pIm age)
theShader = member(1, 1).shader("flash_mat")
theShader.texture = theTexture2
theShader.useDiffuseWithTexture = 0
Help please how to prevent this (losing of flash transparency)?
eone Guest
-
texture blend whit alpha channel
HI, can anyone solve this topic? I want to blend a texture in to another using a gradient alpha channel inside a given shader. If I try wiht... -
Alpha Channel from B&W layer
I know how to create an alpha channel and paint in your mask using black and white. My question is this: How can you take an already black and white... -
What's the scrypt to make IE show the alpha channel as transparent for flash objects?
What's the scrypt to make IE show the alpha channel as transparent for flash objects? Thanks, CB -
DTS, multi-texture & alpha channel
I must use a multi-layer textur with an alpha channel in, but if the DTS is disabled the transparency is not correct. I cannot enable DTS cause I... -
Alpha Channel and CopyPixels
it looks like you are copying into the alpha channel of the destination image. Try creating a temp image to composeand then copy to the destination... -
openspark #2
Re: Flash as interactive texture with alpha channel viacopyPixels
You need to set the #renderFormat property of your texture to a value which
takes into account the alpha channel. You will get the best quality display
with #rgba8888. This comes at the price of greater memory usage and slower
performance:
-- <snipped code>
theTexture2 = theMember.newTexture("flash2",#fromImageObject,pIm age)
theTexture2.renderFormat = #rgba8888
-- <more snipped code>
Other values which activate the alpha channel are:
#rgba5551 -- alpha is opaque or transparent
#rgba4444 -- limited range of colors and transparency
openspark Guest
-
foq #3
Re: Flash as interactive texture with alpha channel viacopyPixels
That didn't work for me. If the Flash Sprite ink is set to background
transparent, the final image will include the part of the stage beneath the
flash sprite.
Should I place the Flash Sprite above a specific place of the stage? or place
something underneath it?
I wish I could use the flash cast member instead of the sprite, but, then the
texture wouldn't be updated, right?
foq Guest
-
necromanthus #4
Re: Flash as interactive texture with alpha channel viacopyPixels
Originally posted by: eone
I want to use Flash member as interactive 3D texture.
When I copy Flash sprite image to texture (via copyPixels) a lose the alpha
channel of Flash movie.
This is not a good idea because the frame rate is going down too much ("SWF +
copyPixels" = a method hungry for resources).
Export each SWF keyframe as bitmap (if not too many ...) and include them in
the W3D file.
cheers
necromanthus Guest
-
foq #5
Re: Flash as interactive texture with alpha channel viacopyPixels
Thank you for replying.
The problem is that the flash is interactive... so it's impossible to export every keyframe, as the images change according to the user's interaction.
foq Guest



Reply With Quote

