OpenGL question

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by CodeMeister.

greetings,
I recently purchased and dl'd the 3.50 version of PB. Very cool.
However, when I "compile and run" the OpenGL cube code, the display
window opens but there is no rotating cube to be seen. I've run through
the debugger but as far as I can see, the code appears correct.
Has anyone else encountered this problem? Is the code generated by PB dynamically linked to the opengl dll files in my windows system32 dir?
I have a background in C/C++ so PB is a bit new to me in this regard.
Thanks!

"If stupidity got us into this mess, why can't it get us out?"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

True, the example doesn't work here too. I will take a closer look. Thanks for this !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wrtyler.

Codemeister -

It's a little change you have to make in the code. There is a line that says

Zoomfactor = 0

You need to change that to

Zoomfactor = 1

And everything will work. At Zoomfactor = 0, I believe the camera is inside the cube, so you need to move is back.

regards,
wayne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

You're right, it fixes the stuff. Thanks for pointing this wayne !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by CodeMeister.


Yeah, it help to be 'outside the box'...
thanks guys!

"If stupidity got us into this mess, why can't it get us out?"
Post Reply