Re: [osg-users] How to convert osg::Texture to osg::Image?

2015-05-19 Thread michael kapelko
I want to make sure I got you right. There's no way to convert Texture to Image, I can only get the Image at the time of Camera draw operation. Thus, it would be easier to attach the Image to Camera. Correct? 2015-05-19 20:27 GMT+07:00 Robert Osfield : > Hi Michael, > > A Texture attached to an o

Re: [osg-users] Write to dicom format

2015-05-19 Thread Chris Hanson
Nope. Not implemented. If you need write support, you'll probably have to implement it yourself or contract someone to do so. On Tue, May 19, 2015 at 8:21 PM, wrote: > Hi, > >I am wondering whether osg can save volume image as dicom format. I > tried both osgDB::writeNodeFile or osgDB::writ

[osg-users] Write to dicom format

2015-05-19 Thread Clement.Chu
Hi, I am wondering whether osg can save volume image as dicom format. I tried both osgDB::writeNodeFile or osgDB::writeImageFile not working. I have compiled the osgdb_dicom.lib plugin. I checked the source code, it has read method only. Anyone know how to do it? Thanks. Regards, Clem

[osg-users] [GL ES2] TEXTURE_EXTERNAL_OES?

2015-05-19 Thread Jean Baptiste Poquelin
Hello, Is it possible to make a texture object use the GL_TEXTURE_EXTERNAL_OES target instead of GL_TEXTURE_2D? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63767#63767 ___ osg-users m

[osg-users] How can I attach a video as an osgb file?

2015-05-19 Thread Arthur Bogard
Hi All, We have an application that allows end-users to import osgb, ive, and osgt models into a simulation of the solar system. I'm wondering if it is at all possible for a person to create an osgb file that is simply a video on a flat, curved, or other geometry surface. We have ffmpeg as our ba

Re: [osg-users] How to convert osg::Texture to osg::Image?

2015-05-19 Thread Robert Osfield
Hi Michael, A Texture attached to an osg::Camera for RTT will not have an osg::Image assigned to it, it's assigned to a frame buffer object instead. What you need to do is attach a final draw callback on the RTT Camera that does a osg::Image::readPixels(..) or osg::Image::readImageFromCurrentText

[osg-users] How to convert osg::Texture to osg::Image?

2015-05-19 Thread michael kapelko
Hi. I have osg::Texture that is attached to camera, it contains a rendered scene (deferred rendering). I want to save it to a PNG file. I tried to use osg::Texture::getImage(), but the resulting osg::Image seems to be invalid, because osgDB::writeImageFile() crashes with it. What's the correct way