Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Fundamental Concepts of the NVSGSDK

See also:
Important Concepts - Must Read for All Developers

Overview

This section provides an overview of the fundamental concepts involved in using the NVSGSDK. It provides an explanation of many of the basic issues that developers deal with when creating NVSG-based applications.

The NVSGSDK provides tremendous control over almost all aspects of scenegraph programming. While there is a large amount of explanatory information, the material is broken down into smaller sections to make the information more manageable. This section discusses most of the basic issues in simple terms, with hyperlinks to sections in the NVSGSDK that contain more detailed information.

Writing NVSG-Based Applications

Development Tool to Use

The development tool for creating an NVSG-based application is Microsoft Visual C++.

Refer to the Sample Programs

Included with the SDK are sample programs that provide examples of how to write NVSG-based applications. These sample programs are found in the sub-directories of /NVSGSDK/SRC/SAMPLES, and the source code for these sample programs is very instructive.

See Building the Sample Files for information on building and running the sample programs.

Basic Development Process

Using NVSG essentially involves the following processes:

1 - Create an NVSG Project

See Creating a New NVSG Project , which describes a program to use as an example of creating an NVSG project.

2 - Create a Scenegraph

A scenegraph is created and maintained with NVSG objects such as nvsg::Triangles, nvsg::Transform, or nvsg::StateSet. These classes determine the geometries and the visual attributes of the scene, and don't know anything about rendering, storing, etc..
See also:
Working With NVSG Classes

3 - Traverse the Scenegraph

After the scenegraph is created, actions such as rendering, storing, or searching, are performed on the scenegraph by a class called Traverser. These classes know how to traverse a scene and perform actions on the scene objects based on the traverser type. For example, there is an nvtraverser::GLTraverser, that renders the scene using OpenGL. Another traverser is the nvtraverser::SearchTraverser, that traverses a scene and searches for all occurrences of a specified class.
See also:
Traversers
Working with Traversers
Back to

Generated on Tue Mar 1 13:20:36 2005 for NVSGSDK by NVIDIA