Advertisement

Problem with 3rd NeHe Tutorial...

Started by October 26, 2000 09:41 AM
6 comments, last by DJNattyP 24 years ago
Hey everyone... I''m a bit of a newbie in the VC++ area (Not C/C++... but I''ve just used the Gnu compiler in university classes...), and I''m also just starting to mess around with DirectX and OpenGL. NeHe has some great OpenGL tutorials out there, but I''m having a little problem with tutorial 3 (the color one)... my triangle shows up only as the last color defined for a point, not with colors on each point as the screenshot shows... I also downloaded the completed project and it exhibits the same behavior... I am using a Windows NT machine with an ATI Rage Pro 3D card using VC++ 4.0 (I know it''s old... but it''s the only one I can get my hands on at work... since I''m not using VC++ *directly* in my project )... I think that the age of the OpenGL files in VC++ 4.0 may be the problem, but I am not sure... anyone noticed this same problem... or know if VC++ 4.0 is the real culprit... Thanks, -Nate
DOH!

I figured out what was wrong myself... and it was in my code... I must of just typed it in wrong... I swear I overlooked that thing like 50 times... >

Oh, well... Thanks again to NeHe for making these excellant tutorials!

-Nate
Advertisement
hm.. try this

in InitGL()
{
...
glEnable(GL_COLOR_MATERIAL);
}

btw, have you enabled smooth shading? (should be, when you use his source, just a question)

i dont know much bout winNT, but I KNOW ATI. at aticards, you have to program very carefully..)

we wanna play, not watch the pictures

If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

Wouldn''t that make ATI cards the ideal ones to program for then? I mean, if something works on top of the line cards then hoorah for those people, but it may not work properly on the other people who don''t care that much about having 1000000000 triangles a second. Programming carefully for one card is good because then it is more likely to work on a lot of cards. (Also, I''m just trying to look like a hardcore programming guru. And I own an ATI card. But it can get me tv to my computer. AAAAAAAAAAND ATI is based in Toronto, so I''ve gotta stand up for them. )

S.
He didn''t mean that programming carefully for ATI''s would be better in the long run, he meant that the ATI line sucks basically. The chipset always has major compatibility problems.
Ohwell, just because you live there doesn''t mean you have to suck too!


-----------------------------
What doesn''t kill me today,
will be there tomorrow..
-----------------------------What doesn''t kill me today,will be there tomorrow..
Thanks for your reply Dave...

Now I am having trouble with the sixth tutorial (Texture Mapping) VC++ is saying it doesn''t recognize the "glGenTextures", or "glBindTexture" functions... and sure enough, they are not in the gl.h header file that I have... Hmmm... this is in VC++ 4.0, so maybe I need to upgrade my OpenGL package? Anyone know how I can do this? I have looked at OpenGL.org, but they just seem to have the drivers...

-Nate
Advertisement
Uhm.. look just a little bit closer :-)

http://www.opengl.org/users/downloads/index.html

Now, copy paste of the top of that page, as I see it..

"Windows

OpenGL v1.1 software runtime is included as part of operating system for Win 2000, Windows 98, Windows 95 (OSR2) and Windows NT. So you only need to download this if you think your copy is somehow missing. The OpenGL v1.1 libraries are also available as the self-extracting archive file from the Microsoft Site via HTTP or FTP."

It''s a bit decieving, but the OpenGL95.exe doesn''t just contain Lib files, but the includes and DLLs you''ll need. I''m using Borland Compiler 5 (really.. REALLY old), and I ran into the same problem ;-) .. be sure to link to the newer libraries when it comes time to compile. Good luck!

Vote to unban David Ho!
Vote to unban David Ho!
Thanks Freazer! It works now!

Now back to those tutorials...

-Nate

This topic is closed to new replies.

Advertisement