If you just need to create a high resoultion rendering from of a single
frame, you can modify the camera's projection matrix to capture many
smaller segments, something like this:
camera->setProjectionMatrix(projMat * osg::Matrix::scale(xSegments,
ySegments, 1.0) *
osg::Matrix::translate((float)(xSegments) - segmentX*2.0f -
1.0, (float)(ySegments) - segmentY*2.0f - 1.0, 0.0));
I got this idea from the osgcamera example. You can then save an image
for each segment with osgDB::writeImageFile and then piece it together
with another image editing program.
On 2010-12-21 11:30, Geoff Rhodes wrote:
Hi,
I am currently working on creating a poster image from several images and the
file size is pretty large. Currently the one I am trying to create is 65250
wide x 22500 pixels in height (Image needs to be large)
Currently I am doing the following:
Code:
posterImage = new osg::Image;
posterImage->allocateImage( (mHeight), (mWidth), 1, GL_RGBA,
GL_UNSIGNED_BYTE );
Right now it is giving me an exception when trying to allocate that image. Is
there a size limit on it, or am I doing something wrong?
...
Thank you!
Cheers,
Geoff
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35036#35036
_______________________________________________
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