OpenGL cube demo

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 neuro.


The openGL cube demo provided with the full version of Purebasic can not be compiled under v3.40. I tried with v3.30 and there was no problem. Is there anybody else having the same problem??? Or Any way to solve it?

config: AMD AthlonXP 1800+, GeForce 2 MX 400, 256Mb Ram, Windows 98 2nd edition.

Neuro
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 TheBeck.

It compiles ok here with 3.4, but all I get is a black window when I run it.

config: Athlon 1Ghz, GeForce 2 GTS 32MB w/3082 drivers, 512MB RAM, Windows XP PRO.
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 fweil.

...,

Black screen too with my W2K.

Rgrds

Francois Weil
14, rue Douer
F64100 Bayonne
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 Sweenie.

Try fiddling with the translate command at the init-section of the
code.
The example has a very limited drawdistance, why I don't know.
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 fweil.

I checked the source code and finally found that you should change this line :

ZoomFactor = 0 ; Distance of the camera. Negative value = zoom back

to ZoomFactor = 1 for example.

It works with this update.

KRgrds

Francois Weil
14, rue Douer
F64100 Bayonne
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 neuro.

Thanks, It works fine.

Neuro
Post Reply