What's the easiest way in tS7 to make a material to be a moving video file?

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

What's the easiest way in tS7 to make a material to be a moving video file? // New Users

1  |  

Post by razzaq1 // May 20, 2006, 11:34am

razzaq1
Total Posts: 60
pic
.....so you'd get a movie projected onto a plane or slab.


I know it must be possible


Thanks,


Razzaq1

Post by splinters // May 20, 2006, 11:59am

splinters
Total Posts: 4148
pic
Paint an AVI on to the object as a texture, then animate the scene-the image will be animated....easy really.....:)

Post by Birdnest // May 20, 2006, 1:25pm

Birdnest
Total Posts: 152
pic
Yeah it's a pretty simple task, took me only a few seconds to figure out. :D

Post by razzaq1 // May 21, 2006, 2:24am

razzaq1
Total Posts: 60
pic
.....so i make myself a slab, open my LW materials library (into which I have dragged the .avi, doubleclick the avi to open it, doubleclick the top left filmstrip icon and dag some frames out, then hit the blue triangle to play...and nothing hapens.......either within the Materials Library icon, or the slab I dragged the material onto (which does show a still frame)


Even after I added frames in the KFE nothing happens.


What aren't I doing right?

Post by Bobbins // May 21, 2006, 3:11am

Bobbins
Total Posts: 506
What aren't I doing right?


You're thinking it is much harder than it really is!


Open the Material Editor.

Right click the colour icon and select the "Texture Map" colour shader.

Open the Texture Map color shader properties.

Choose the AVI file you want to apply and check the "Anim" box.

Paint the material onto the object.


There is no need to try and animate the material in the Material Editor or set any keyframes. Simply render the scene to file with enough frames for the AVI to play (if the AVI texture you are applying is 200 frames long, just render 200 frames of the scene to file).

Post by razzaq1 // May 21, 2006, 6:18am

razzaq1
Total Posts: 60
pic
Thanks.

I followed your instructions and got video showing on my slab.


What I was aiming for is having an .rcd truePlay file in which a movie plays on one of a room's walls.


This means having an animated texture, but animated NOT because the scene was rendered to file!


Maybe that's not possible yet.


I imagine that to be able to do that, I'd have to be watching the video play back in the tS7 window as I make the .rcd record


As it stands now, I can make an object with a static image spawn a .wmv file on the web, but I wanted to see if, from within a truePlay window, I could have a short real-time video preview running rather than the static image.

Post by Délé // May 24, 2006, 3:25am

Délé
Total Posts: 1374
pic
I actually did make a script to play video frames as a texture on the Player side a while back. Theoretically it seems that it should be possible. Unfortunately my script lagged far too much and was unusable.


Animated textures in the Player would certainly be fantastic if someone could figure it out. :)

Post by Burnart // May 24, 2006, 6:08pm

Burnart
Total Posts: 839
pic
Once you get an avi working I wonder if its possible to set up something like a sequence of frames (as an avi or image list) such that the displayed frame changed depending on conditions. Eg you click a button on a control panel and the display changes by grabbing another frame from the sequence. I guess I'm thinking something along the lines of what you can do with Flash or Director. The sequence of frames exists as a single character and the buttons or other activators change the displayed frame but don't run it like a film. (The whole scripting and player stuff in ts7 has got me beat - I got know idea how to do anything with it!)
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn