Hi Patrick,

thanks a lot. Meanwhile I already found out about the speed decrease due 
to the non power of two osg::Image I used. Turning of Mipmap generation 
increased speed even more.

bye,

thomas

Patrick Dähne schrieb:
> Hello Thomas,
> 
> Am 16.11.2006 um 18:30 schrieb Thomas Kulessa:
> 
> 
>>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.
>>Does anybody has an idea why this happens?
> 
> 
> Yes.
> 
> 1. Switch off mipmap generation, i.e. set the "minFilter" field of  
> the TextureChunk to "GL_NEAREST" or "GL_LINEAR".
> 
> 2. Switch off autoscaling, i.e. set the "scale" field of the  
> TextureChunk to "false". The problem here is that the results differ  
> depending on what kind of graphics hardware OpenSG is running on.  
> When your graphics board supports the  
> "GL_ARB_texture_non_power_of_two" extension, everything is ok. When  
> not, you have to manually adjust your texture coordinates (or use a  
> TextureTransformChunk).
> 
> Bye,
> 
> Patrick
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> 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
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users


-------------------------------------------------------------------------
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
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to