04-02-2023, 09:48 PM
(04-02-2023, 06:36 PM)Petr Wrote: So here we have something interesting.
3D world using OpenGL. Since QB64PE already has _MouseMovement features fixed, it was really easy to add mouse movement.
:
:
The program has no collision detection, so you can walk through walls. I would probably solve the collision detection with an additional field where, when loading the triangle vertices in 2D, I would write down where the wall leads to, so that it really works, it is then necessary to shoot this 2D map in the same way as the image is shot during movement.
It can also be controlled from the keyboard with arrows and the Q and A buttons, or arrows + mouse, with the B button you can turn transparency on or off
Cool program, but there are a couple of things.
It would be nice to save the source code file along with the ZIP. Someone is going to become grated at having to copy source code from this site to paste into the QB64 IDE or a text editor because he/she thinks it should have been packed with the image files. It doesn't bother me, although I found it odd the ZIP contained no source code.
To Linux users: make sure the filenames on disk are in all lowercase letters or none of the wallpapers will load!
Otherwise if you use Linux you will have to edit the "world.txt" to match the letter-case of each filename. So decide what you want to do with that.
When using the mouse (touchpad in my case) for anything the screen warps briefly and then the program crashes into the Linux terminal with an "xcb" error. The keyboard could be used safely to pan around.