SLI Zone
NVIDIA.com Developer Home

Last Updated: 11 / 13 / 2006

Cg 1.5 Beta 2

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 24 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.5 Beta 2
• Unified Cg/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.5 Beta 2 release of Cg introduces several new features:

• New Cg runtime API for procedural effects creation (effect annotations, index state assignments)
• Solaris x86 support
• Mac OS X: Universal or so-called "fat" binaries with both PowerPC and x86 code
• Documentation updates, including Cg Standard Library and standard CgFX states
• New examples: 15 OpenGL-based demos from The Cg Tutorial, 7 Direct3D9-based demos, and 3 advanced OpenGL demos
• Improved DirectX support for state assignments for CgFX files
• Fixes reported Cg 1.4 compatibility problems
• Bug fixes: memory leaks fixed, fixed mis-interaction between array resizing and compiler-generated constants
• Runtime now supports loading pre-compiled objects through runtime API (CG_OBJECT for cgCreateProgram)

The prior Beta 1 introduced the following:

• OpenGL GLSL profiles
• Direct3D9 SM3.0 profiles
• Procedural API for Effect creation (COLLADA support)
• Program combining for inter-program optimization
• Rewrite of major portions of the Cg Runtime for enhanced performance
• Cg 1.5 Beta 1 now ships with native implementations for Win32, Win64, Linux (32-bit and 64-bit), MacOS 10.3 (Panther) and 10.4 (Tiger).
• Cg 1.3 and 1.4 style Effects files supported
• Cg 1.5 Beta 1 should be backward compatible with apps written against Cg 1.4.1.

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

New Profiles

Vertex Shader
Profiles

Description  

Pixel Shader
Profiles

Description
glslv GLSL Vertex Shader    glslf GLSL Fragment Shader
vs_3_0 DX9 Shader Model 3 Vertex Shader   ps_3_0 DX9 Shader Model 3 Pixel Shader
Existing 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.



Downloads

 
Documentation

[Download] Cg Release Notes
[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)
[Download] Solaris X86 (TAR.GZ)

New Examples
[Download] Examples (Zip)
[Download] Examples (.TGZ)

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.5 Beta 1
Cg Toolkit 1.4.1
Cg Toolkit 1.2.1
Cg Toolkit 1.1




    nvidiadeveloper Twitterfeed
    Event Calendar
    Popular References
    Free Books Online