Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: SoOffscreenRenderer Background (Open Inventor)

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2010

    SoOffscreenRenderer Background (Open Inventor)

    Dear all,

    I'm using a python version of open inventor which has not SoGradientBackground or SoImageBackgroundNode it its API. For some incompatibility reasons, I cannot use openGL calls in my program either.

    I have created my own background node, but it had a problem: I did not know where to put it in the sceneGraph. X and Y dimensions have no problem, but the problem is with depth, i.e. I don't know what z to choose! If it is too close, then some parts of the model get invisible when rotated and if it is too far, no background is displayed. I resolved this problem by not adding the background node to the sceneGraph, but rendering it before the sceneGraph. To do this, I override the actualRedraw function of the viewer to first render the background node by calling:
    and then calls the parent (viewer) actualRedraw function to render the sceneGraph.

    It works fine, but I cannot save it as an image using SoOffscreenRenderer, i.e. the background will not get printed. I used the same method for SoOffscreenRenderer by getting its GLRenderAction and applying the background node and then calling the SoOffscreenRenderer.render function to render the sceneGraph, but it does not work!

    Does any one have any idea how to print the background? Do you have any other idea about creation of background node?


  2. #2
    Junior Member Newbie
    Join Date
    Jan 2005
    San Diego, CA

    Re: SoOffscreenRenderer Background (Open Inventor)

    See response posted in Open Inventor Forum here:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts