DerThomas
08-09-2005, 07:28 PM
Hi,
i've got Problems (I think) with Cg on my Macs. I've just begun working on "The Cg Tutorial" Book. I'm still at the beginning, but i played around a bit with the settings and it seems that my Macs only support the FP20 and (even worse) the ARBVP1 Profiles.
I got an error Profile not supported when using a higher one than the ARBVP1 on vertices, so i made a little if passage to see which profiles are supported and the highest i got are the ones mentioned above.
My Computers are
PM G5 2x2Ghz, Geforce 6800, OSX.4 and Xcode 2.1
PB G4 1.33Ghz, Geforce FX5200, OSX.4 and Xcode 2.0
both showed the same results, normally i should get the xP40 profiles to work with the 6800 and the xP30 with the FX, shouldn't I? I don't need them right now (as im at the beginning of the tutorial) but its quite disappointing, because I only ordered the 6800 because of Shadermodel3 capabilities.
Oh, around the Cg part I use OpenGL with GLUT for the windowmanaging.
It seems that the command line compiler works with the -profile VP40 argument as it prints this output on my little shaderprogramm:
localhost:/ Thomas$ cgc -profile vp40 -entry C2E1v_green C2E1v_green.cg
C2E1v_green.cg
14 lines, 0 errors.
!!ARBvp1.0
OPTION NV_vertex_program3;
# cgc version 1.4.0000, build date Jun 9 2005 12:25:56
# command line args: -profile vp40
# source file: C2E1v_green.cg
#vendor NVIDIA Corporation
#version 1.0.02
#profile vp40
#program C2E1v_green
#var float2 position : $vin.POSITION : POSITION : 0 : 1
#var float4 C2E1v_green.position : $vout.POSITION : HPOS : -1 : 1
#var float4 C2E1v_green.color : $vout.COLOR : COL0 : -1 : 1
#const c[0] = 0 1
PARAM c[1] = { { 0, 1 } };
TEMP CC;
BB1:
MOV result.color, c[0].xyxy;
MOV result.position.xy, vertex.position;
MOV result.position.zw, c[0].xyxy;
END
# 3 instructions, 0 R-regs
So are there any Problems with Cg on Macs, do I have to make special instructions for OpenGL or does OpenGL on Mac not support CG the way it should?
Thanks for your Help, Thomas
i've got Problems (I think) with Cg on my Macs. I've just begun working on "The Cg Tutorial" Book. I'm still at the beginning, but i played around a bit with the settings and it seems that my Macs only support the FP20 and (even worse) the ARBVP1 Profiles.
I got an error Profile not supported when using a higher one than the ARBVP1 on vertices, so i made a little if passage to see which profiles are supported and the highest i got are the ones mentioned above.
My Computers are
PM G5 2x2Ghz, Geforce 6800, OSX.4 and Xcode 2.1
PB G4 1.33Ghz, Geforce FX5200, OSX.4 and Xcode 2.0
both showed the same results, normally i should get the xP40 profiles to work with the 6800 and the xP30 with the FX, shouldn't I? I don't need them right now (as im at the beginning of the tutorial) but its quite disappointing, because I only ordered the 6800 because of Shadermodel3 capabilities.
Oh, around the Cg part I use OpenGL with GLUT for the windowmanaging.
It seems that the command line compiler works with the -profile VP40 argument as it prints this output on my little shaderprogramm:
localhost:/ Thomas$ cgc -profile vp40 -entry C2E1v_green C2E1v_green.cg
C2E1v_green.cg
14 lines, 0 errors.
!!ARBvp1.0
OPTION NV_vertex_program3;
# cgc version 1.4.0000, build date Jun 9 2005 12:25:56
# command line args: -profile vp40
# source file: C2E1v_green.cg
#vendor NVIDIA Corporation
#version 1.0.02
#profile vp40
#program C2E1v_green
#var float2 position : $vin.POSITION : POSITION : 0 : 1
#var float4 C2E1v_green.position : $vout.POSITION : HPOS : -1 : 1
#var float4 C2E1v_green.color : $vout.COLOR : COL0 : -1 : 1
#const c[0] = 0 1
PARAM c[1] = { { 0, 1 } };
TEMP CC;
BB1:
MOV result.color, c[0].xyxy;
MOV result.position.xy, vertex.position;
MOV result.position.zw, c[0].xyxy;
END
# 3 instructions, 0 R-regs
So are there any Problems with Cg on Macs, do I have to make special instructions for OpenGL or does OpenGL on Mac not support CG the way it should?
Thanks for your Help, Thomas
