Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Jun 26, 2023 7:10:45 GMT
Minecraft Clone It displays one chunk, but you can modify it. Same controls as in minecraft: W - Forward S - Back A - Strafe Left D - Strafe Right Mouse to control camera direction
Uses Simplex Noise You are free to use it in your own way. MinecraftClone.zip (5.71 KB) Copied and modified the 3D Maptriangle drawing function from: Mycraft by Galleon
|
|
|
Post by bplus on Jun 26, 2023 12:07:56 GMT
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 18, 2024 8:25:23 GMT
MasterGy's work is far beyond from what I can achieve in this small time period. I really appreciate his work, and it taught me a lot about optimizations in qb64. I have been working lately on a Minecraft clone which uses OpenGL, and the results are much better than what I thought: QB_Blocks_v0.1_18022024.zip (10.7 KB) Same Controls, with added Zoom function with the key 'C' Change the constants and recompile I changed the name to QB Blocks just to spread that qb64 has the capability to create something whatever we can think of, even if it uses a different approach.
|
|
|
Post by bplus on Feb 18, 2024 11:29:34 GMT
@aaditya Parashar I am getting an error message from trying to download that file "virus detected" by my Windows protector. Do you have an .exe in that zip file? it's allot bigger than your first one that downloads fine.
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 18, 2024 11:47:38 GMT
I have removed the exe file from the zip file, i didn't thought it may be recognised as a virus.
|
|
|
Post by bplus on Feb 18, 2024 13:06:34 GMT
Pretty cool! Hills and trees are added as I move and look into scene...
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 22, 2024 7:41:30 GMT
New Version 0.1.2 New features: added 2 biomes, improved chunk loading, updated noise function QB_Blocks_v0.1.2_22022024.zip (15.91 KB) Someone please help me out for the frustum, its in the code currently and it does nothing. It would be good if someone helps me in that, thanks.
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 22, 2024 7:45:34 GMT
Also, if someone can add a block selecting system using raycasting, please let me know I tried it but it was inaccurate. Thanks.
|
|
|
Post by bplus on Feb 22, 2024 15:09:40 GMT
frustrum? block selecting system using raycasting?
AP are you hacking some code you found or following somebodies coding system for 3D Blocks?
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 22, 2024 16:13:19 GMT
I am not hacking, I dont even know. The thing is, I started making minecraft by understanding the maptriangle 3d command and referring to the MyCraft by Galleon. Then I just experimented with many things, trying to learn by other people's code, and designing by own. But the problem with all that was, MapTriangle, IT'S SO SLOW So, I wanted to switch to opengl, and reached out to chatgpt one day for the camera systems, and it didn't work as intended but I managed somehow. And now, I am currently adding new features and optimizations which I have learnt from the past mistakes, and browsing the internet, especially Microsoft Learn OpenGL. Just got some solutions, but cannot implement them due to messy code.
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 24, 2024 7:17:36 GMT
New Version 0.1.5 New features: added water (with zero physics, u can walk on it), added modified perlin noise, better collision system, dynamic memory management (reduces memory usage) QB_Blocks_v0.1.5_24022024.zip (16.46 KB)
|
|
|
Post by bplus on Feb 25, 2024 16:04:03 GMT
Wow this stuff way beyond me, did you find a solution to _MapTriangle efficiencies, ie no longer "way too slow"?
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 25, 2024 16:50:28 GMT
I cannot explain it in english, but here's the pseudo-code
'For _MapTraingle Do for every triangle: LoadTexture 'takes a long time, and is repeated, becoming slow Draw Triangle Loop 'With OpenGL LoadTexture 'takes a long time, but is not repeated in the loop, i.e. just called once Do for every triangle: Draw Triangle Loop So, unfortunately _MapTriangle cannot become more efficient.
|
|
|
Post by bplus on Feb 25, 2024 17:56:50 GMT
OK can you show subs for Draw (Triangle_var) and LoadTexture, looks like LoadTexture might be the slowing factor?
There may be a memory or hardware image improvement, this is also out of my field of experience but I can ask around. (with a little help from my friends...)
|
|
Aaditya Parashar
Full Member
Just somebody with an abnormal coding routine.
Posts: 127
|
Post by Aaditya Parashar on Feb 26, 2024 11:53:49 GMT
Those Subroutines are not in QBasic I guess, they are just inbuilt in the code in c++ and I don't know how to find it. This was just a mere representation of what these algorithms do.
|
|