home - introduction - screenshots - download - documentation - contact

Main Menu

Links

osgNV Project Pages

SourceForge.net Logo
glyph

Frequently Asked Questions

Questions

  1. Most of examples complain about texture images and shader sources not being found. What's wrong?
     
  2. I can't get state matrices work in osgNVCg. Although I'm correctly setting a LocalParameter with the right StateMatrixParameterValue object, my shader keeps getting the wrong matrix.
     
  3. Why did you include support for GLSL? Wasn't osgGL2 enough?
     

Answers

  1. Most of examples complain about texture images and shader sources not being found. What's wrong?

    Some examples need the data files that are shipped with osgNV and can be found in the ./data directory. You need to modify the OSG_FILE_PATH environment variable in order to include the osgNV data directory in the search path.

  2. I can't get state matrices work in osgNVCg. Although I'm correctly setting a LocalParameter with the right StateMatrixParameterValue object, my shader keeps getting the wrong matrix.

    The Cg runtime grabs state matrices like MODELVIEW and PROJECTION at the time the parameter is uploaded, instead of tracking them when the shader runs. This means that if you apply a state matrix parameter above a subgraph it will upload the state matrix accumulated until that point, discarding all subsequent Transform nodes that could eventually be present in the subgraph.

  3. Why did you include support for GLSL? Wasn't osgGL2 enough?

    osgNVSlang, the module which provides GLSL support in osgNV, is not meant to be a replacement for osgGL2. The latter is a lightweight, simple-to-use piece of software and has certainly the advantage of being integrated into OpenSceneGraph. However, as most of the additional sub-libraries in OSG, it is not meant to be the ultimate solution for developing and running shader-enabled applications. It can satisfy the majority of users, but a lot of them will still prefer to use a dedicated library like osgNV. These are the main advantages that osgNV offers to its users w.r.t. GLSL support: