Ask a Question related to Macromedia Director 3D, Design and Development.
-
placebo #1
AVI as a texture?
I'm following the tutorial on the Adobe Developer Center regarding
inserting Streaming Video into Shockwave 3D
([url]http://www.adobe.com/devnet/director/articles/streaming_video_03.html[/url])
and it works great. However, I want to be able to pass a filename of an
AVI file so that users can load different files. I know I can do this
by using externalParamName, but how do I get the video into the code?
The code is as follows:
property pWorld
property pTexture, pImage
property pVideoSprite
on beginSprite me
pWorld = sprite(me.spriteNum).member
-- create new 256*256 texture from an image object
pImage = image(256,256,32)
pTexture = pWorld.newTexture("Streaming Texture",
#fromImageObject,pImage)
-- use out texture for the screen
-- in this example, SCREEN IMAGE is already applied to our object
tShader = pWorld.shader("SCREEN IMAGE")
tShader.texture = pTexture
-- the sprite of our flash member
pVideoSprite = sprite(2)
end beginSprite
on endSprite me
-- remove the texture we created
pWorld.deleteTexture("Streaming Texture")
end endSprite
on prepareFrame me
pImage.copyPixels((the stage).image,pImage.rect, pVideoSprite.rect)
pTexture.image = pImage
end prepareFrame
placebo Guest
-
Help texture
Spanish translate to the English with google. Good morning not to add to textures or (*.avi, *.mov) to an object 3d from director(lingo), help me... -
use a avi as texture
Hy! Can i use an avi as a texture, how? What can i do to make a texture from a movie and then aply it to a 3d model? -
ANN: MB Texture Pack4 is available
Just a quick note to let you know that MB Texture Pack4 is now available on the Macromedia Fireworks Exchange. Enjoy! Sincerely, Matthew Brown... -
Need Help w/ Stone Texture
I really don't have much skill with Photoshop. I tried following a web tutorial to make a stone pattern and I came up with this. I followed... -
Texture help
Is it possible to get a texture from a 3Dobject, and save it to the cast? ? If it is, how? Valle



Reply With Quote

