> I am experimenting with video textures on OpenSG 1.6. I use the ffmpeg > library for video decoding and a modified version of > 23videotexturebackground.cpp for testing. As long as I stick to the > tutorial and map the texture on the background all is fine: video > display is very fast, much more than 25fps. But if I put > the video texture on e.g. a simple plane in an otherwise empty scene, > video update gets very slow. CPU usage is only about 50% on my machine. > I coded it in plain OpenGL with the same interface to ffmpeg and it > works well.
Probably your video image get's scaled up to the next power of two, that's cpu intensive. Make sure the texture you use for uploading the video images has "setScale(false)" and that your texture coordinates are set correctly (see the code from in the tutorial you're using). Regards, Toni ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
