nVIDIA shadow volume demo

Started by
2 comments, last by wyrzy 16 years, 5 months ago
I try to compile the shadow volume demo of nVIDIA as below website: http://developer.nvidia.com/object/fast_shadow_volumes.html But I have some problem. I used the VC++6.0 to compile the demo source code with "G3D 6.00 beta 7" and "SDL 1.2.5". But it appears one error as below: Cannot open include file: 'xmmintrin.h': No such file or directory Shoould I must download the SDK as below? GLUT (included with G3D) OpenGL 1.4 (included with G3D) NVIDIA SDK extensions (included with G3D) [Edited by - akira32 on November 28, 2007 6:01:46 AM]
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
Advertisement
I believe that's the SSE intrinsics functions header. You can probably find it at Intel or AMD. Perhaps you can comment it out and it will compile without it?
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
I hardly believe it will. Intrinsics however are not going to work on VC6 as far as I remember.

Previously "Krohm"

You could probably download the latest VC++ Express version, which is completely free. That should have xmmintrin.h in it and support intrinsics I would think.

http://www.microsoft.com/express/vc/Default.aspx

This topic is closed to new replies.

Advertisement