This content has been marked as final. Show 4 replies
To load an external image in your movie, you can set the .fileName property of a bitmap member. It would help to preload the image file, so that it is available locally before setting the filename. Look up preloadNetThing().
To show an image on a wall in a 3D scene, you need to make the image into a texture, make the texture part of a shader, and use that as the shader of the wall mesh. Here's a movie that does something like that, using images already available in a castLib: http://nonlinear.openspark.com/tips/3D/zoetrope/
Thank you very much for your quick answer.
Just another little question:
In the example you show me, I see that images are already in the cast.
Could I do the same thing, but with external images?
I mean, I could load several external images from the server and then put it in the 3D scene, couldn't I?
Maybe you already answered me, but I had this doubt, since on one hand you talked about external images and on the other hand about 3D scene. I want to be sure that I can do both things: load and put it in a 3D scene.
Thank you again.
You can preload the images to the user's local disk, set the fileName of a bitmap member to each of the images and create the texture for each image on the fly. You can then create use each texture as a shader for a different wall mesh.
Again, thank you very much.
This is a great help for me.