SLI Zone
NVIDIA.com Developer Home

Last Updated: 09 / 20 / 2006

Cg 1.4.1

cg.jpgWelcome to Version 1.4.1 of the NVIDIA Cg Toolkit. In this release you will find everything you need to help you take advantage of Cg, a high-level language for graphics programming.

Quick Links


Introduction

The Cg Toolkit provides a compiler for the Cg language, runtime libraries for use with both leading graphics APIs, runtime libraries for CgFX, example applications, and extensive documentation. Supporting over 20 different OpenGL and DirectX profile targets, Cg will allow you to incorporate stunning interactive effects into your 3D applications. The components include:

  • NVIDIA Cg Compiler Release 1.4.1
  • CgFX Runtime
  • Cg User's Manual
  • Cg Language Specification

We hope that you will enjoy the exciting world of Cg programming.


Latest Cg Toolkit Features

This 1.4.1 release of Cg stabilizes several significant changes and features first introduced by Cg 1.4:

  • Significantly improved code generation in most of the profiles
  • Complete rewrite of CgFX, including an API integrated with the Cg runtime API, support for extensible, cross-platform graphics state management, and support for unsized arrays and interfaces.
  • Substantial improvements in compiling many long shaders, especially those that make heavy use of interfaces.
  • The Cg Runtime is now substantially faster in many cases
  • Cg 1.4.1 now ships with native implementations for Win32, Win64, Linux (32-bit and 64-bit), and MacOS 10.3 (Panther) and 10.4 (Tiger)

Note that some of this new functionality is currently only supported when using the CgGL OpenGL runtime library. The Direct3D-specific Cg runtime libraries currently do not support shared parameters, for example, nor does this release ship with a native D3D state manager for CgFX. This release also does not provided Direct3D profiles for Shader Model 3.0.

With minor exceptions, Cg 1.2 or Cg 1.3 applications should work with Cg 1.4.1 without the need to recompile the program. See “Compatibility Notes,” below, for more information.

Please see the release notes for details, known issues, and more.


Supported Profiles

Vertex Shader Profiles

Description  

Pixel Shader Profiles

Description
vp20, vp30, vp40 OpenGL NV_vertex_program   fp30, fp40 OpenGL NV_fragment_program
arbvp1 OpenGL ARB_vertex_program   fp20 NV_register_combiners and
NV_texture_shader
vs_1_1 DirectX 8 Vertex Shaders 1.1   arbfp1 OpenGL ARB_fragment_program
vs_2_0, vs_2_x DirectX 9 Vertex Shaders 2.0, 2.x   ps_1_1, ps_1_2, ps_1_3 DirectX 8 Pixel Shaders 1.1 - 1.3
      ps_2_0, ps_2_x DirectX 9 Pixel Shaders 2.0, 2.x


Cg_book_Small_Cropped.jpgThe Cg Tutorial Book

The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics takes a tutorial-based approach to teaching Cg and high-level shading, and it comes complete with a standalone application that allows you to try out and modify the book's examples. To learn more about The Cg Tutorial, please visit the book's home page.


Important Installation Notes

Please make sure to uninstall previous versions of the Cg Toolkit prior to installing the latest version.


Downloads


Documentation

[Download] Reference Manual
[Download] Cg Release Notes
[Download] Cg Users Manual
[Download] Cg Users Manual (Japanese)
[Download] Cg Specifications (PDF)

Install Packages
[Download] Windows
[Download] Mac OSX Panther Installer
[Download] Mac OS X Tiger Installer
[Download] Linux X86 (TAR.GZ)
[Download] Linux X86-64 (TAR.GZ)
[Download] Linux X86 (RedHat RPM)
[Download] Linux X86-64 (RedHat RPM)

Cg Redistributable Binaries
A Cg redistributable binaries package contains the libraries and executables for all supported platforms of a Cg release in a single zip file. Go to the "Cg redistributable binaries" page.

Previous Versions
Cg Toolkit 1.2.1
Cg Toolkit 1.1

Driver Note: We recommend that you use the latest ForceWare graphics driver (available from NVIDIA's public driver site).




nvidiadeveloper Twitterfeed
Popular References
Free Books Online