Hi all,

 

As a new osg-user, i was playing with osgdem to build some databases
mixing terrain and image data. It took few days to build western europe
in 3D and now i was wondering whether it is possible to extend my
database by adding additional images. Do you have any idea (certainly)
and any pointer to discover the different tools provided by the
VirtualPlanetBuilder project?

 

Christophe


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Bourdier
Sent: 16 April 2008 15:02
To: OpenSceneGraph Users
Subject: Re: [osg-users] warning when creating image


Hi,

image->setImage(width, height, 0,... ) can be a problem... because 0 in
the depth or the image... so if it is a simple 2D image, put 1.

Vincent.



2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: 

        I use osg 2.3.7 on vista in a ref class

         

        the following lines: 

         

        osg::Image * image = new osg::Image;

        image->setImage(width, height, 0, GL_RGBA, GL_RGBA,
GL_UNSIGNED_BYTE, pixels, osg::Image::AllocationMode::USE_NEW_DELETE);

         

         

        causes the warning:

         

        Warning 4 warning C4482: nonstandard extension used: enum
'osg::Image::AllocationMode' used in qualified name ...

         

        isnt this the correct way of creating a image if the pixels have
been created using new?

         

        Erlend


        _______________________________________________
        osg-users mailing list
        [email protected]
        
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
        
        



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to