Hi Peter. Maybe take a look into osgPPU. It allows you to very simply display textures on the screen, without thinking of ortho2d modes or similar stuff.
As for pure osg use, it is better to derive a class from the osg::Drawable which do render the things like you need. Attach the drawable under some geode and place the geod under an ortho2d transformation node. It hink this is all what you need. Cheers, Art --- JumboVision - Peter De Santis <[EMAIL PROTECTED]> schrieb: > 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 > Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

