Re: [osg-users] How to create osg::Texture2D from osg::Vec3Array...?
Hi Kedar, On 28/06/12 19:10 , Kedar Kumbhar wrote: The normal method given in many examples to create a Texture2D, is using a Image file. Code: osg::ref_ptrosg::Texture2D texture = new osg::Texture2D; osg::ref_ptrosg::Image image = osgDB::readImageFile(Images/lz.rgb ); texture-setImage( image.get() ); Instead, I have a osg::Vect4Array in which I have color information (rgba). How can I use this Vec4Array to create Texture2D? Vec4Array is-a std::vector and contains a contiguous block of its base type, such as float. I haven't tested this, but you should be able to just call: osg::Image::setImage( width, height, 1, GL_RGBA8, GL_RGBA, GL_FLOAT, (unsigned char*) vec4Array[0], NO_DELETE); Hope this helps, Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems using shader attributes
- small edit: the correctly rendered scene with straight opengl: http://i.imgur.com/gLLdM.png ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Parallel Rendering Problems using NVidia GPU cards in Windows
On 29. Jun 2012, at 21:03, WangWentao wrote: how about 2 same GPUs? First one is chosen. Stefan. -- http://www.eyescale.ch http://www.equalizergraphics.com http://www.linkedin.com/in/eilemann ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Does OSG have INI config file reader?
Poco has a .ini reader: pocoproject.org. -Paul On 6/30/2012 4:47 AM, michael kapelko wrote: Hi. I failed to google any info up. Does anyone know? Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Does OSG have INI config file reader?
Well, I don't want to use POCO just for reading INI. I wonder if OSG has one. If not, I'll have to write one myself, it's not that hard, but would be good if OSG has one already. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Does OSG have INI config file reader?
You could use Boost.PropertyTree http://www.boost.org/doc/libs/1_50_0/doc/html/boost_propertytree/parsers.html#boost_propertytree.parsers.ini_parser Then you can use ini files or chose a better format. On 30 June 2012 17:18, michael kapelko korn...@gmail.com wrote: Well, I don't want to use POCO just for reading INI. I wonder if OSG has one. If not, I'll have to write one myself, it's not that hard, but would be good if OSG has one already. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- http://www.ssTk.co.uk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Does OSG have INI config file reader?
Well, my intention is not bring any additional dependency apart from OSG alone. Speaking of better formats, does OSG has any config file reader? Or it's intentionally left for application to implement? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org