Hi Tristan,
You should be able to use osgDB::readImageFile without argument
parser, and without options be passed in. Perhaps you readImageFile
is returning null, but you are later using it anyway, always check for
the value that it returns.
Also try enabling verbose debug output by setting the env var
OSG_NOTIFY_LEVEL to DEBUG and then run your app, this will give you a
bit more info.
Robert.
On 3/5/07, Tristan McMillan <[EMAIL PROTECTED]> wrote:
Hi OSG-Community
I have tried to remove the argument parsing from the osgMovie example as
I don't want to use the command line. However I keep getting a
segmentation fault when I try to read my .avi file, using the following
line:
osg::Image* image =
osgDB::readImageFile("/home/tmcmillan/Desktop/Africa.avi");
However this seg faults sine I believe the DB does not recognize
the .avi extestion. I thought this would work as this seems to be what
the argument from the command line is passed to the readImageFile class.
But my knowledge regarding argument passing is still nowhere above
novice.
So I did some digging and thought I should used the following method:
sg::Image* readImageFile(const std::string& filename,const
ReaderWriter::Options* options);
However I'm unsure how to link the xine plugin to the 'options'.
Thanks
Tristan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/