|
|
#1 | |
|
Registered User
Join Date: Aug 2006
Posts: 1
|
To whom it may concern,
We are having problem with getting the lastest profile with Cg under Red Hat Linux. Pls. help. The hardware setting is as follow: Workstation model: HP XW5000 CPU: Intel Pentium 4 CPU 2.80GHz RAM: 1G ECC DDR-266 RAM Motherboard Chipset: Intel E7205 Graphic card: Magic-Pro Nvidia GeForce 6600 GT OS: Redhat 9 (kernel version : 2.4.20-28.9) We also have the lastest display driver (1.0-8764) and Cg 1.5 beta 1 installed. The problem is that, when querying the vertex and fragment profiles in our own OpenGL/Cg program, the profiles returned are always 'vp30' and 'fp30' (instead of 'vp40' and 'fp40'). We have tried to upgrade the display driver and version of Cg, where we were using 1.0-7164 with Cg 1.4 before, but the problem still persists. The code used to test the profiles is attached below. We tried to narrow down the problem by using the simplest code. With this piece of code, the correct profiles are returned under a Windows machine, but doesn't give correct result in the machine mentioned above. We are wondering if there is any incorrect settings in the driver or in the operating system. We hope you can give us some guidance on solving this problem. //--------------------- // Code for testing Cg profiles //--------------------- #include <GL/glew.h> #include <Cg/cgGL.h> #include <Cg/cg.h> #include <GL/glut.h> #include <stdio.h> void init(void) { int v_profile = cgGLGetLatestProfile(CG_GL_VERTEX); int f_profile = cgGLGetLatestProfile(CG_GL_FRAGMENT); printf(cgGetProfileString((CGprofile) v_profile)); printf(cgGetProfileString((CGprofile) f_profile)); fflush(stdout); } void display() { glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); } int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(250, 250); glutInitWindowPosition(100, 100); glutCreateWindow("simple"); init(); glutDisplayFunc(display); glutMainLoop(); return 0; } |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nvidia: The new Apple MacBook Pro and next-generation MBP boast GeForce GT 650M graph | News | Latest Tech And Game Headlines | 0 | 06-11-12 09:50 PM |
| New GPU from Nvidia Announced Today, the GeForce GTX 670 | News | Latest Tech And Game Headlines | 0 | 05-10-12 01:50 PM |
| Gainward Unleashes the Sexy GeForce GTX 670 Phantom Graphics Card, Also launches the | News | Latest Tech And Game Headlines | 0 | 05-10-12 09:28 AM |
| NVIDIA Unleashes the GeForce GTX 670 Graphics Card ' Performance Perfected (WCCFTECH) | News | GeForce GTX 670 Reviews | 0 | 05-10-12 08:40 AM |
| NVIDIA GeForce GTX 670 brings Kepler on a $399 budget (SlashGear) | News | GeForce GTX 670 Reviews | 0 | 05-10-12 08:40 AM |