John Steinbis wrote: > Toni, > The code you provided looks fairly straightforward. However, having > invested considerable time writing my program in v2.0 I decided to > keep working with that instead of reverting back to v1.8. I found an > example for a HUD and with a few changes made it work as background. > The code can be found below. Does this look like a good method to use? > > There are two problems occurring that I cannot figure out. Any ideas … ? > > (1) When new images are loaded, they are rescaled for some reason. > This adds a noticeable delay, ~250 ms. To update an image I use > "BGTexture->setImage(newImg)". Output looks like "Scaling image 'x' > from (720,480) to (512,512)".
Ok, the scaling occurs automatically. OpenSG scales to the next power of two (should be 1024x512 in your case). You can switch off that behaviour (at least in 1.8) using "imageBackgroundtTex->setScale(false);". However, in that case you have to reconsider texture coordinates. You can take a look at the tutorial "23videotexturebackground" that shows quite well what I mean. > > (2) The background image has some blur added, more than effect of resize. Probably because of scaling. Try without.... Regards, Toni ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
