I have several projects I am working on and one thing they all have in common is I need to be able to save clusters of data inside unique structures. On Saturday I started working on a C# class that should be able to do just that.
The strings are mainly there to clean up the other text and for making sure that when I want to change the variables then I will not have to hunt through the code, fairly standard stuff.
The first thing I had to check was to make sure the folder was currently there. I did want to allow the method to take different file names down the road so I pass the full path name to the Directory.Exists. If it does not find the folder then it will create it.
The second part of the method is the Stream writer that creates the text file (in this case) which then will write Testing file.. inside the document. You could easy use binary writer if you don’t want people looking into the document. At least the lazy people out!
After reading online I have come to realize I had programmed the world ineffectively. The blocks are fine while I got the basics down, Though I am going to have to create a mesh generator that will create the mesh based on the arrays I have stored. In retrospect, I feel like I should have seen that coming but I am still amused in what I got done in just an hour.
Given my other commitments I am hoping to get the mesh generator done by the weekend. Regardless it should be fun building it!
I was working on some extra code this afternoon and wanted to work on creating a good system for voxel world. Those that have played games like minecraft would currently be at home with what I currently have created. While creating a procedural world is not by any means new this day in age, I wanted to get my hands dirty again with C# and unity.
While it was fun I did have some flaws into my first few hours into the subject.
The frames per second are a stunning 2-3 when I start pushing the block count up. Regardless though it was fun getting to this point, but I do feel like occlusion culling and mesh generation is going to be on my next to do list.
While I have been away from the website for awhile I always planned to come back to it. Currently my life has changed dramatically and should now be on a less time consuming trajectory. My current plans are to make regular updates based on my interest in addition to setting up video tuts when I have the time. I of course will be displaying my current projects on this website which will be my little corner of the net.