Hi,

  i'm not completely sure, but i think that

shot->allocateImage(width, height, 24, GL_RGB, GL_UNSIGNED_BYTE)

must be

shot->allocateImage(width, height, 1, GL_RGB, GL_UNSIGNED_BYTE)... i.e.
Changing the 24 by the 1. The third component is the 3rd dimension of the
image.

Also, you need not to call allocateImage at all, i think it is done by OSG,
and will set the correct format and size.

The initialization of the camera seems ok, perhaps your error is setting the
view or projection matrix? I would first test that focusing the camera to a
known place instead of calculating
the node position.


Hope this helps.
Himar.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to