Page 1 of 1

PureBasic 6.00 - Terrain broken?

Posted: Sat Jul 16, 2022 2:53 pm
by Bitshifter
Hi all,

i just tried the new Version 6.00 LTS and checked some examples codes. I noticed that the Terrain demos are not working and showing weird graphics.
It's working fine in all other Versions below 6.00. Other 3D examples are also working fine, i just noticed problems with the Terrain demos.
The Terrain is not visible and it's showing weird gray boxes instead. Can anybody confirm?

Output from 6.00:
https://ibb.co/Mgz9GJB

Output from 5.71:
https://ibb.co/kq2dT56

:?:

// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)

Re: PureBasic 6.00 - Terrain broken?

Posted: Sat Jul 16, 2022 4:12 pm
by Lord
Try DirectX9 or DirectX11 in Compiler Options->Library Subsystem.
Look in Help.

Re: PureBasic 6.00 - Terrain broken?

Posted: Sat Jul 16, 2022 4:45 pm
by Bitshifter
Thanks. Using explicit "DirectX9" as Subsystem solves this issue. But might be still a Bug in OpenGL then?
As is wrote, everything else is working ok, only the Terrain Demos have this issue.

Re: PureBasic 6.00 - Terrain broken?

Posted: Sat Jul 16, 2022 8:05 pm
by pfaber11
I have the same problem will try directx9 and see what happens .

Re: PureBasic 6.00 - Terrain broken?

Posted: Sat Jul 16, 2022 10:26 pm
by pfaber11
Well I have tried the DirectX9 and it does all the 2d stuff but not the 3d and no terrain. I'll just have to be patient and wait for a fix as not much I can do without it . Really glad someone posted this as I was getting really jared off thinking my programming was no good as I could not make some terrain . Still could be that I suppose . But I don't see how. Anybody else experiencing a problem?

Re: PureBasic 6.00 - Terrain broken?

Posted: Sun Jul 17, 2022 12:29 am
by Krix
Terrain (and maybe other stuff) is not yet fully working with OpenGL. Because of this Ogre's directx9 renderer is still available. Check Fred's reply.

https://www.purebasic.fr/english/viewtopic.php?t=79303

Re: PureBasic 6.00 - Terrain broken?

Posted: Sun Jul 17, 2022 8:24 pm
by pfaber11
Right if I run the examples they all work after setting DirectX9 under compiler options. However my own program does not . It is probably just me as new to this . Could some kind person tell me if OpenGL terrain is working in PB 6.00 or is it still being fixed.?

Re: PureBasic 6.00 - Terrain broken?

Posted: Tue Jul 19, 2022 10:03 am
by pfaber11
Hi I now have terrain in my warm up program using DirectX9 . Anyway I can now proceed with what I'm doing which is getting PB into my brain enough to really enjoy it and I don't think I'm too far off that . I will try my code every day or so to see when OpenGL is ready .