Re: [osg-users] Convertion to osg::Image from IplImage (OpenCV) for useas texture

2007-09-17 Thread John Steinbis
::notify(osg::NOTICE)osgImage2IplImage: Error, unrecognized image depth.std::endl; } return pImg; } bill -Original Message- From: [EMAIL PROTECTED] on behalf of John Steinbis Sent: Sun 9/16/2007 9:23 PM To: OpenSceneGraph Users Subject: [osg-users] Convertion to osg

[osg-users] Convertion to osg::Image from IplImage (OpenCV) for use as texture

2007-09-16 Thread John Steinbis
Hi, I'm trying to convert an IplImage (OpenCV) type to osg::Image type for use as a texture within OSG. My conversion routine attempts to utilize setImage(...) of image class. It crashes and I havent been able to track down the problem. Does anyone have experience with a conversion like this or

Re: [osg-users] Background image texture rescaling problem

2007-09-15 Thread John Steinbis
instead of Texture2D. If moving to the TextureRectangle you'll need to move you pixel coords rather than normal non dimensions texture coords - see osgtexturerectangle example. Robert. On 9/12/07, John Steinbis [EMAIL PROTECTED] wrote: For an AR project, I need to render a model with video

Re: [osg-users] Background image texture rescaling problem

2007-09-15 Thread John Steinbis
how to set the position of a window. How can I do this? Also, if I try to drag the window to a new location, it freezes. -- js On 9/15/07, Robert Osfield [EMAIL PROTECTED] wrote: Hi John, On 9/15/07, John Steinbis [EMAIL PROTECTED] wrote: Thanks Robert, I have this working now without

[osg-users] Background image texture rescaling problem

2007-09-12 Thread John Steinbis
For an AR project, I need to render a model with video image as background. My program is based around osgViewer using osg v2.0. I found an example for a HUD and with a few changes made it work as background. The code can be found below. The code runs ok but there is a problem occurring that I