cg
Running CG graphics on BProlog?
i recently installed B-prolog and tried CG graphics examples from here http://www.probp.com/ According to their manual, i\'ve installed B prolog in C:/ drive and its compiling propoerly but not execu[详细]
2023-04-10 12:38 分类:问答CG Shader Semantics with OpenGL 3.x?
I used to have CG shaders working with vertex arrays in OpenGL 2.x, but I\'ve updated to use VBOs and VAOs in OpenGL 3.x and now the semantics don\'t seem to be working, except for POSITION.CG doesn\'[详细]
2023-04-01 22:43 分类:问答How to construct a mesh from given edge points?
I have some points on the edge(left image), and I want to construct a mesh(right), Is there any good algorithm to achieve it? many thanks!开发者_C百科[详细]
2023-03-29 03:16 分类:问答Is ModelViewProjection the same as WorldViewProjection?
I am converting some code from HSLSL and XNA to CG and OpenGL. The code is for rendering volume data. But volume data is not also sampled using the same distance in each dimension, for example (0.9f,[详细]
2023-03-27 08:57 分类:问答OpenGL-ES and Cg
Can I use Cg开发者_JS百科 shader language with OpenGL ES 2.0? I know that I can use GLSL with OpenGL ES 2.0 and Cg with OpenGL, but I wonder if there is Cg support for OpenGL ES.I\'m sure you\'ve fig[详细]
2023-03-26 06:29 分类:问答How to choose the encoding based on the current language using CGContextSelectFont?
Using CGContextSelectFont to draw to a bitmap,开发者_高级运维 but using a certain encoding.When using a different language, this will not work. What is the recommended way of choosing the encoding bas[详细]
2023-03-20 13:05 分类:问答Why is the later version of Cg compiler producing shader using more instructions?
I have a shader that looks like this: void main( infloat2pos: TEXCOORD0, inuniform sampler2Ddata: TEXUNIT0,[详细]
2023-03-20 06:54 分类:问答Downsampling an image without "dancing" pixels
Say I wanted to downsample an image in realtime (1280x720) to a very small scale (16x16) and not suffer from \"dancing\" pixels when the image moves, which technique would I use?[详细]
2023-03-18 02:17 分类:问答How to add a file to a particular branch in git?
I am doing some sample test with git, before i add my actual stuff. Here is what i do: enter code here 1) Create an empty git repository[详细]
2023-03-16 22:18 分类:问答How do I get a Compile error from NVIDIA CG?
How do I get detailed errors from a cg compile? At the moment my code is something like: prog = cgCreateProgramFromFile([详细]
2023-03-13 17:59 分类:问答