.avi texture problems

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.

.avi texture problems // Archive: Tech Forum

1  |  

Post by rakar // Aug 15, 2007, 5:54pm

rakar
Total Posts: 5
I'm trying to insert an .avi video into an animation - something like a tv show on a tv set in my animation. The problem is that when I create the texture and paint a plane (or any other object) with it, the results seem sketchy at best.


Some videos just show black (yes I checked the "ani" box), some show as garbage (huge random pixels), some work perfectly for a couple of dozen frames and then go to garbage, and on occasion they seem to work.


Even the ones that work, only work sometimes. The same project works sometimes and not others.


Additionally, the videos seem to work much more often if they are very short, but I'm working on a music video and for that I need to use a 4+ minute video in excess of 8000 frames.


BTW - I can play all of the videos all of the way through on the same machine I'm using for the project (so I know that I have the right codecs).


Any suggestions? Is anyone else have issues with avi textures?


Thanks,

Rich.

Post by Bobbins // Aug 15, 2007, 10:00pm

Bobbins
Total Posts: 506
I've used AVI as animated textures quite a lot and not seen some of the problems you are describing. Some CODECs do give issues with black or pixellated display which is usually a combination of the resolution and CODEC - resampling the resolution to a standard setting like 320x200, 640x480, 720x576 etc or re-encoding to an alternative CODEC will fix those problems. MOV, DivX and MPEG4 give me the most problems so I avoid those for textures.


I wouldn't say for sure that the length of the AVI file is a problem as I've never run a single animated texture that is 4 mins long. All my projects have been storyboarded with individual segments no more than about 40s long and the animated textures cut to suit.

Post by frank // Aug 16, 2007, 2:55am

frank
Total Posts: 709
pic
Any time I use animated textures, they are rendered to Uncompressed AVI. Also, click the planar UV button and be sure the UV lines up with the plane. If the UV is bigger than the plane, that could explain the blockiness/pixelation you are seeing, as the video would in that case be stretched larger than the plane.


I haven't worked with super-lengthy AVI files in trueSpace, but some of these were 720x480, giving a large file size.


Also, in past tests I found that uncompressed plays back faster in the solid/realtime display than compressed (ie. DivX AVI) files.

Post by rakar // Aug 16, 2007, 3:23am

rakar
Total Posts: 5
Thanks for the suggestions. The avi's I've been using are compressed. I'll have to generate some non-compressed ones and try that. They are size matched to (uv) to the planes that they are painted on and they are standard size (320x240).


Also I'm using one continuous avi for my textures to facilitate audio sync. throughout the video.


The main avi I want to use for this project is live footage. Does anyone know of a good recoding program to convert the compressed avi to uncompressed?


I have another version of this project in Blender with the same avi used as a texture - no issues. I find that I can use the animated texture on many object that drift on and off screen throughout the video but they are all always in perfect sync with the audio, whether I render the entire video or only a piece.


Are there any sync controls in TS (like frames to use and initial offset) that would let me easily audio sync a partial avi?


Thanks,

Rich.

Post by Bobbins // Aug 16, 2007, 4:31am

Bobbins
Total Posts: 506
As mentioned, I tend to come at it from the opposite angle. I have everything storyboarded before I start with a dopesheet giving all the timings and required shots. That way I can crop the avi to be used as a texture in my video editing program and fuse out for use in the tS scene. I always top and tail with an extra 50 frames so that when I come to assemble the rendered AVIs in my vid editing program I have the option of changing the timing of the cuts or using a different transition.


Within tS, I always start the scene animation at frame 0 since I know I will synch it up with the audio in post as per my dopesheet. Both the Model side Scene Editor and the Workspace animation editor allow you to specify the play ranges so you can work at the exact frame or time required if that's easier, though.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn