Hi, see osghud and osggeometry examples for simple drawing. You could then conceptually draw whatever you want on your 2d image by using a different z-value/layer.
jp JumboVision - Peter De Santis wrote: > Thanks Robert, > > what if i want to draw lines on the ortho2d screen, things like a cross hatch > pattern, and circles and stuff ? > Would i have to drop to using opengl like > > glBegin(GL_LINES); > glColor3f(1.0, 0.0, 0.0); > glVertex2f(10, 10); // first line > glVertex2f(50, 50); > glVertex2f(10,120); // second line > glVertex2f(120,10); > glEnd(); > > > i cant see anything in OSG at a higher level that i could use ? I would > prefer not to use opengl commands if i dont > have to if OSG has any other options at all > > thanks > > Peter > > > -----Original message----- > From: "Robert Osfield" [EMAIL PROTECTED] > Date: Mon, 21 Jan 2008 17:12:56 +0900 > To: "OpenSceneGraph Users" [email protected] > Subject: Re: [osg-users] loading a bitmap and displaying it > >> Hi Peter, >> >> You could use osg::DrawPixels drawable, but... its slow compared to >> using a textured quad as modern hardware is all geared up for making >> textures polygons really fast, glDrawPixels being left long behind. >> So... my recommendation is to stick with the osghud style approach >> using a single fullscreen textured quad. >> >> Robert. >> >> On Jan 21, 2008 7:13 AM, Peter DeSantis <[EMAIL PROTECTED]> wrote: >>> >>> Hello >>> >>> i want to load a bitmap image and display it in osg. >>> >>> I was planing to emulate the osgHUD example and load a bitmap, map it to a >>> quadstrip as a texture and add it as a child to the root node, using a >>> ortho2d matrix for the camera. is this the only way to display a full screen >>> bitmap in OSG ? >>> >>> And is there a way i could draw to the screen instead of loading a bitmap ? >>> >>> >>> Thanks >>> >>> Peter DeSantis >>> [EMAIL PROTECTED] >>> Jumbo Vision International Pty Ltd >>> Unit 2 ,1 Aitken Way >>> Kewdale WA 6105 >>> Australia >>> >>> Tel: 61 8 9353 6200 >>> Fax: 61 8 9353 6211 >>> _______________________________________________ >>> osg-users mailing list >>> [email protected] >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

