Advertisement

Help

Started by September 22, 2000 05:12 AM
1 comment, last by Agh_ha_ha 24 years, 2 months ago
First, at the mo i am using VC6 when i try and draw a shape i get nothing except a blank background what is wrong. second i would like to write a opengl program in vb how do i do this? thanks
You might want to translate along the z-axis, it''s possible you''re drawing the square too close... It could also be a double buffered thing where you forgot to swap buffers...

Second, look at the VB tut ports.

S.
Advertisement
Was a little rushed this morning because the librarian was kicking me off on of the computers so a class could have the lab...

Anywho, like I was saying, first... Your square IS most likely too close to you and therefor won''t show up, try adding this line... maybe you''ll see the box now...

glRotated(0, 0, -20);

Usually works for anything you''ve drawn too close... Could also be that you''re drawing in the same colour as your background... check for this if the translation doesn''t work... Finally, it might be a missed SwapBuffers(hDC); command that you don''t have in your DrawGLScene function...

As far as learning ogl for vb, you should look at the bottom of NeHe''s tuts, there will be a link to the ported version of each of the tuts telling you how to do the same stuff as we do in vc++.

Have fun!

S.

This topic is closed to new replies.

Advertisement