Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Inventor API > SoOffscreenRend...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 426 of 501
Post > Topic >>

SoOffscreenRenderer fails to render a texture on a cube

by chandrasekhar_nunna@[EMAIL PROTECTED] Jan 16, 2006 at 12:32 PM

I was trying to render a texture on a cube using SoOffscreenRenderer
class.

Is this class is sup****ted by Open Inventor, when I do compilation, I
get a error warning as " SoOffscreenRenderer not yet ****ted to the
WIN32 platform, using stubs!"

Is there any known reason for the failure of offscreen rendering ?

I am trying the offscreen rendering in the following way.

SbView****tRegion aView****t( 512, 512 );
SoOffscreenRenderer* offscRender = new SoOffscreenRenderer(aView****t);
offscRender->setComponents( SoOffscreenRenderer::LUMINANCE );
SoSeparator* root = new SoSeparator;
root->ref();

SoPerspectiveCamera* camera = new SoPerspectiveCamera;
camera->position.setValue( -0.2, -0.2, 2.0 );
camera->viewAll(root,aView****t );

root->addChild( camera );
root->addChild( new SoDirectionalLight );

SoTexture2* texture = new SoTexture2;
texture->image.setValue(SbVec2s( 3, 2 ), 1, image);
root->addChild ( texture );
root->addChild ( new SoCube );
if( !offscRender->render( root ))    // It fails in this step.
 




 1 Posts in Topic:
SoOffscreenRenderer fails to render a texture on a cube
chandrasekhar_nunna@[EMAI  2006-01-16 12:32:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 5:51:07 CDT 2008.