Advertisement

problem with normals

Started by February 02, 2004 01:57 PM
29 comments, last by ioda100 21 years, 1 month ago
yes it''s what i try to do.

No i don''t have depth_testing enable but when i enable it, i have very strange things that appear.

When i put your 4 functions in my init function, the result is a blank windows. (when i rotate the scene, i see a few pts)

Wwhen i do only glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
i have strange result too : http://membres.lycos.fr/ioda100/3D/dephtenable.JPG


here is another vision of the problem : http://membres.lycos.fr/ioda100/3D/transparency.JPG

it seems to be depht_testing problem, but when i enable it, it doesn''t work
I tried all the case and it''s allways the second face drawn which is shown in priority when they are superposed
Advertisement
forgot to say that in the main function before calling init(), i have :
glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);

nobody know?

what can do that DEPTH_TEST doesn''t work?
If you can post a link to a zip of your code then I''ll have a look.

Enigma
Thanks to you

Here it is : http://membres.lycos.fr/ioda100/3D/prog trie.rar

it''s in Borland c++ builder 4

the important files are :
\prog trie\pointh\init_et_lightinit.h
\prog trie\pointh\dessin3d.h
\prog trie\fichier_principal.cpp

i don''t thing the error is somewhere else.

the rar is uploading now, it will be very soon available
Advertisement
I didn''t know you were using GLUT, or Borland, blah blah blah. I''m on WinXP with VS C++ 6.0 & I won''t change.

Enigma can help you though, he is much better at this stuff than I am anyways. I''m still a newbie to openGL.
Whatsoever you do, do it heartily as to the Lord, and not unto men.
:-)

but the problem is not with borland or glut i think
Unfortunately it looks like you''ve got some Borland IDE specific things going on there. There''s a vcl.h header that my compiler doesn''t have and the source code has a variable called Application that doesn''t seem to be defined anywhere. Without that code I don''t think there''s any way I''ll be able to compile it, which will make tracking the problem down nearly impossible.

Btw. Are you aware you can get a free copy of Borland C++BuilderX from the borland site?

Enigma
i had to change some header files vcl.h, glut.h... to be able to make textures... works under Win XP.

Do you have msn? it would be easier to give you the header files. Me it''s ioda1979@hotmail.com and icq 52922957

This topic is closed to new replies.

Advertisement