Forum Replies Created
-
AuthorPosts
-
I spend a whole bunch of hours working on the project. I got the chunk building updating so that it does not really cause screen freezes anymore. It seems to work pretty well even in debug mode on the lower end amd a8 laptop. I also got the memory useage down. I added a check so it does not create unused data in the chunk generator. The memory useage went down from 600 mb to 300 mb.
I also spend time adding block manipulation. I created a block model that I place on the block underneath the cursor. It is a blinking block. While doing this I also needed to create code to handle chunks next to each other. (faces) The v key is used to remove blocks.
The last file I made is called : worldtest_blockmanip.monkey2 (no external files needed)
I need to see what I feel like adding next.
edit: i created a short video.
Attachments:
I noticed a new chunks method being mentioned in the udemy course and had spend some time thinking about how to implement it. I was able to create this(I think I did) It basically now creates a chunk at once instead of cube by cube. The cube by cube method used the addmesh command. Mark mentioned this would cause a lot of copying. The new FastChunk method uses a couple of lists where the vertices etc are put in and these are then used to create one complete chunk mesh.
I had not seen a huge speed increase on the main laptop, but I am still testing(rebuilding on the low end lappy now)
I also was able to implement a texture atlas. Here on the forum I learned that you can texture the cubes with that. They are different textures on one image. I made a couple of mistakes so spend a long time figuring out what went wrong, but I managed to get it working.
There is now a new file in the github folder mining called worldtest fastchunk.
I am planning on creating more textures and some work on the generator for placements of the textured cubes.
Attachments:
Ok. I was just experimenting. I might just as wel just create tile meshes if terrains have those discontinues.
I sometimes use it on a lower end laptop with a amd a8 cpu. It does have 8 gb. It is still pretty fast on this one.
Quick question. If i need to copy one texture on top of another(block damage) would these textures be rendered to every block. Or would i need to create another sheet with these modified textures? Curious how that would be done.
Nice! I think I understand the second method. Not complex at all. I will try to get that working.
I started on my own minecraft like project. I created a folder on my monkey2-3d page on github where I am placing my experiments.
https://github.com/Pakz001/Monkey2-3D/tree/master/Mining
Here my monkey2 project forum thread with more info :
March 25, 2018 at 4:29 pm in reply to: mojo3d:Chunks creation problems (memory access violation) #14132Ok, I dowloaded a zip file from the monkey2 develop branch and unpacked it on my last monkey install. I rebuilt the desktop modules and the error has gone away.
March 25, 2018 at 3:46 pm in reply to: mojo3d:Chunks creation problems (memory access violation) #14131I uploaded a new emscripten version yesterday evening I think after also getting a crash. Maybe that fixed it.
Yes, I am using the current itch.io version.
As for the new monkey version. I think I will need to learn how to update it from the github. Patreon asks for a creditcard so I can not get the 1.09 version that way.
Maybe I can manually download the mojo3d files and rebuild? Wil try that first.
Just compiled it for browser :
https://cromdesi.home.xs4all.nl/emscripten/monkeycraftworld1/Untitled1.html
I only needed to add a little bit of memory in the env.txt.
Monkey should have this set up automatically after install. Are you sure it can not find the compiler and not that the modules have not been rebuild?
I have not done any touch things yet but I noticed you use touchdown. Is there no touchup or release? I would. Look at that.
I got it doing something. I think that DestroyAllEntities also kills the lights and that needs to be recreated,
The shadows look a little bit broken though if I add the command : CastsShadow = True
https://github.com/Pakz001/Monkey2examples
Monkey 2 beginner and more moderate code examples. Various larger examples and project files.
There are a couple of larger projects files on there also. A civilization 1/2 clone, A mining like platformer. Also the last years I have been experimenting and learning how to do better map generators and texture generators. Those things are on there also.
https://github.com/Pakz001/Monkey2-3D
Monkey 2 examples for Monkey 2 – 3D. Not much there at the moment but when mojo3d matures I might start filling it up with a few hundred examples.
Small update.
On https://www.udemy.com/ there is a course that teaches you how to program a minecraft clone. 6 hours of video and unity project files. Catch is: It costs money, it is for unity using c#.
I got a deal at 11 euro that the site sometimes seems to offer.
There is a whole lot of information given that is useable for other languages as well. The quality of the course is pretty good. Triangles to Quads to blocks, Chunks, infitine worlds, caves, blocktypes etc. A proffessor talks you all the way through the programming and theory.
If you can get the same low price deal and would like to learn minecraft yourself then I can really advice this course.
edit :
After getting through the course I am a little bit dissapointed. There is a lot explained but the featured minecraft is not that good. There were some problems getting the project to compile in unity. Not everything works. The course will get a free(?) update in 2018. For the full price I can not say it would be a good buy.
-
AuthorPosts

