video texture mapping
Hi,
I'm trying to map a video texture on a surface using texmat. it's a basic mapping that works when the texture is an image, but doesn't when it's a video. why? is this a limitation on purpose, or is it a bug? and is there a way to circumvent it? Thanks, Andrei |
here's a tiny test code based on some example. just replace the brick texture with a video one and you'll notce the difference.
Code:
import viz |
Do you get an error or does it look incorrect? Using an image or video included with Vizard its mapped the same:
Code:
#bricks = viz.addTexture('lake3.jpg') |
it works but looks incorrectly. the problem is appears when texmat is used. the moment i set this, the video is not displayed anymore. i mean something is displayed, but not the video as expected. even applying [1, 1, 1] breaks the display.
|
I'm not sure what the issue you're seeing is. Can you reproduce this and show the issue with two quads side by side using vizard's included resources (lake3.jpg and mona.mpg)?
|
Hi Jeff,
the behavior is as expected when using mona.mpg and then it worked with other videos too. But with the video that I was using when I detected the problem, the strange behavior is still there: the video plays, but it's not mapped according to the ST coordinates. I don't know what's wrong with that video(loads and plays without errors), but I can use other videos instead. Until further issues I would consider the issue solved/closed. Thank you, Andrei |
All times are GMT -7. The time now is 07:49 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC