POPPUR爱换

 找回密码
 注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

搜索
查看: 4184|回复: 11
打印 上一主题 下一主题

Cg 2.0

[复制链接]
跳转到指定楼层
1#
发表于 2007-12-26 14:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Cg 2.0Quick LinksIntroduction
The Cg Toolkit provides a compiler for the Cg 2.0 language, runtime libraries for use with both leading graphics APIs, runtime libraries for CgFX, example applications, and extensive documentation. Supporting over 25 different OpenGL and DirectX profile targets, Cg 2.0 will allow you to incorporate stunning interactive effects into your 3D applications.
The components include:
  • NVIDIA Cg Compiler Release 2.0
  • Cg/CgFX Runtime libraries for OpenGL and Direct3D
  • Cg User's Manual
  • Documentation for the Cg
  • Language Specification, runtime APIs, Cg standard library, CgFX states, and the Cg profiles.
  • Cg examples
Cg 2.0 supports a broad range of desktop operating systems (Windows 2000, XP, Vista, Mac OS X for Tiger and Leopard, 32-bit and 64-bit x86 Linux, and x86 Solaris) so your shader-enabled applications can use the same shaders no matter your choice of operating system or graphics API.
We hope that you will enjoy the exciting world of Cg programming.
Latest Cg Toolkit Features
The 2.0 release of Cg introduces several new features and improvements:
  • New OpenGL profiles (gp4vp, gp4gp, and gp4fp) for GeForce 8 extensions
  • These expose new DirectX 10-class features including geometry shaders, bindable constant buffers for uniforms, texture arrays, first-class integer support and more
  • Support for Apple's new "Leopard" release of Mac OS X 10.5
  • New DirectX 9 profiles (hlslv and hlslf) to cross-translate Cg to HLSL
  • Documentation updates, including Cg Standard Library and standard CgFX states
  • New examples demonstrating texture-space bump mapping setup via a geometry shaders, shadow volume generation via a geometry shader, bindable constant buffers, and more
  • Improved compiler code generation
  • Runtime performance improvements
  • Compatibility with Cg 1.5

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

New Profiles
Name
Graphics API
Domain
Graphics hardware required
gp4vpOpenGLVertexGeForce 8 series NV_gpu_program4 + NV_vertex_program4
gp4gpOpenGLGeometryGeForce 8 series NV_gpu_program4 + NV_geometry_program4
gp4fpOpenGLFragmentGeForce 8 series NV_gpu_program4 + NV_fragment_program4
hlslvDirectX 9cVertexMulti-vendor DirectX 9c GPUs
hlslfDirectX 9cFragmentMulti-vendor DirectX 9c GPUs


Existing Profiles
Name
Graphics API
Domain
Graphics hardware required
glslvOpenGLVertexMulti-vendor OpenGL 2.0 / GLSL GPUs
glslfOpenGLFragmentMulti-vendor OpenGL 2.0 / GLSL GPUs
arbvp1OpenGLVertexMulti-vendor OpenGL 1.x GPUs ARB_vertex_program
arbfp1OpenGLFragmentMulti-vendor OpenGL 1.x GPUs ARB_fragment_program
vp40OpenGLVertexGeForce 6 and up NV_vertex_program3
fp40OpenGLFragmentGeForce 6 and up NV_fragment_program2
vp30OpenGLVertexGeForce 5 and up NV_vertex_program2
fp30OpenGLFragmentGeForce 5 and up NV_fragment_program
vp20OpenGLVertexGeForce 3, 4 Ti, and up NV_vertex_program
fp20OpenGLFragmentGeForce 3, 4 Ti, and up NV_texture_shader + NV_register_combiners2
vs_1_1DirectX 8 & 9VertexMulti-vendor DirectX 8 & 9 GPUs
ps_1_1DirectX 8 & 9FragmentMulti-vendor DirectX 8 & 9 GPUs
ps_1_2DirectX 8 & 9FragmentMulti-vendor DirectX 8 & 9 GPUs
ps_1_3DirectX 8 & 9FragmentMulti-vendor DirectX 8 & 9 GPUs
vs_2_0DirectX 9VertexMulti-vendor DirectX 9 GPUs
ps_2_0DirectX 9FragmentMulti-vendor DirectX 9 GPUs
vs_2_xDirectX 9VertexMulti-vendor DirectX 9 GPUs
ps_2_xDirectX 9FragmentMulti-vendor DirectX 9 GPUs
vs_3_0DirectX 9cVertexMulti-vendor DirectX 9c GPUs
ps_3_0DirectX 9cFragmentMulti-vendor DirectX 9c GPUs



The 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 2.0 Features
[Download] Cg Reference Manual
[Download] Cg Specifications (PDF)
[Download] Cg Users Manual (English) (old, not updated)
[Download] Cg Users Manual (Japanese)(old, not updated)
[Download] Cg Bumpdemo Tutorial (old, not updated)
[Download] CgFX Bumpdemo Tutorial (old, not updated)


Install Packages
[Download] Windows
[Download] Mac OS X (Leopard and 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)
Previous Versions
Cg Toolkit 2.0 Beta
Cg Toolkit 1.5 Sep. 2007
Cg toolkit Feb. 2007
Cg toolkit Sep. 2006
Cg toolkit 1.5 Beta 2
Cg toolkit 1.5 Beta 1
Cg Toolkit 1.4.1
Cg Toolkit 1.2.1
Cg Toolkit 1.1
2#
发表于 2007-12-26 14:54 | 只看该作者
nice job,cho
回复 支持 反对

使用道具 举报

3#
发表于 2007-12-26 15:31 | 只看该作者
技术类纯英文一看就头大的人路过:huh:
回复 支持 反对

使用道具 举报

4#
发表于 2007-12-26 16:07 | 只看该作者
在HLSL和GLSL的夹击下,Cg继续存在的理由是什么?:huh:
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2007-12-26 16:28 | 只看该作者
原帖由 iiiiuuuu 于 2007-12-26 16:07 发表
在HLSL和GLSL的夹击下,Cg继续存在的理由是什么?:huh:

Cg写出来的东西可以交叉多平台上运行。
回复 支持 反对

使用道具 举报

6#
发表于 2007-12-26 16:47 | 只看该作者
原帖由 Edison 于 2007-12-26 16:28 发表

Cg写出来的东西可以交叉多平台上运行。
哦,谢谢楼主.全英文的,不一定能全看懂.
回复 支持 反对

使用道具 举报

7#
发表于 2007-12-27 14:29 | 只看该作者
留名先:a)
:funk:
回复 支持 反对

使用道具 举报

8#
发表于 2007-12-27 22:16 | 只看该作者
:w00t): :w00t):
回复 支持 反对

使用道具 举报

RacingPHT 该用户已被删除
9#
发表于 2008-1-3 00:58 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

10#
发表于 2008-1-3 01:18 | 只看该作者
原帖由 Edison 于 2007-12-26 16:28 发表

Cg写出来的东西可以交叉多平台上运行。

Cg不跨GPU~~~
回复 支持 反对

使用道具 举报

11#
发表于 2008-1-3 09:09 | 只看该作者
:unsure: nv的opengl能搞出不错的东西就行了。支持cg
回复 支持 反对

使用道具 举报

12#
 楼主| 发表于 2008-1-3 09:53 | 只看该作者
原帖由 Ricepig 于 2008-1-3 01:18 发表
Cg不跨GPU~~~

Cg当然是可以跨GPU使用了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

广告投放或合作|网站地图|处罚通告|

GMT+8, 2025-8-22 12:38

Powered by Discuz! X3.4

© 2001-2017 POPPUR.

快速回复 返回顶部 返回列表