Roof Top Pew We
New member
- Joined
- May 26, 2005
- Messages
- 3
I am trying to get my video to render to texture. The SDK example seems to only draw the scene when the video "creates" a new texture. However, Im going to be using this texture in scenes where other objects are using regular textures, and everything will be running at higher framerates. When I tried to do that, my entire scene started flashing. I reduced the code to see if I could find the piece of code causing the problem, and got down to two lines:
Video video = Video.FromFile("test.avi");
video.RenderToTexture(D3DDevice);
If I comment out the 2nd line, everything works just fine. Adding it in seems to cause a problem. Like I said, the entire scene starts to flash. My guess would be that the video (being on a different thread) calls some event during my render loop and causes some kind of problem. . perhaps exiting out of the loop. Has anyone had this problem before, and if so, how has it been solved?
--Vic--
Video video = Video.FromFile("test.avi");
video.RenderToTexture(D3DDevice);
If I comment out the 2nd line, everything works just fine. Adding it in seems to cause a problem. Like I said, the entire scene starts to flash. My guess would be that the video (being on a different thread) calls some event during my render loop and causes some kind of problem. . perhaps exiting out of the loop. Has anyone had this problem before, and if so, how has it been solved?
--Vic--