Nomi Matisic

Your local programmer

  • Blog
  • About
  • Contact
Header1.jpg

It has been a very productive week

March 29, 2021 by Nomi Matisic in BitEngine Update

BitEngine Update:

Hello! and welcome back to this...thing; I’m glad that u could make it! I have been hard at work so there is a lot to talk about so let’s jump right into the update;

So to start with; It is important to comment your code, even when u know it might only be you who is going to read it, comment it; Because when I sat down to read my code and get back into it, let’s just say that I was sitting there for a few hours; But in the end I had a basic understanding on what I was doing and what my code is actually doing;

pic5.PNG

So moving on from getting back into the code; I had a big problem to solve first; It was not rendering anything even tho the code I had was suppose to render the information I gave it; And i’m not going to say “O it was an easy problem and I will just quickly fixed it”; O no I will be completely honest and say I spent at least an hour; But in the end I found that I sent the memory instead of pointers to the memory and after I changed that it was up and running;

And as you can probably see I also spent some time adding texture support, rotation support to quads and a very simple particle system (I ended up removing it but it was a good way to test the batch renderer);

pic6.PNG

Next on my list of things I ended up doing, I added support for SpriteSheets; It did not take as long as I expected and with some magical wizardry I had support for SpriteSheets;

Now i’m no artist; I started to program at an early age and thru out my school years, I was trained in programming so to compensate for my lack of artist skills, I got a nice small spritesheet from kenney.nl; It is a great site for assets with no strings attached, or so they say on there website;

So at this stage of the development I was quite…I don’t know how to say it but I wanted to start with an editor because my current way of getting sprites and other stuff is to just hard code it into a “SandBox“ project I had; But there is a problem with that, currently the renderer is drawing directly to the window and that is fine for like a finished product that u want to distribute but it is not that good if I what to make and editor; So next on my list is getting a Framebuffer working;

And OpenGL doesn’t make it difficult, but for some reason it does it a bit different from what some other API’s do, and if I what support for other API’s in the future ill have to think a bit clever not to make it a hassle for future me;

pic7.PNG

And so I went digging into the documentation of glad and glfw; And now I am happy to present a working Framebuffer, and if I what to talk about some problems with this;

When I first got it working, I had a problem that I would describe as everything was flipped on the horizontal line; This is an affect of my engine rendering {0, 0} at the bottom left of the screen; But Framebuffers {0, 0} is at the top left of the “image“; This is not a difficult problem to fix, I just have to display the image I put the frame on upsidedown;

And I had a few problems with my old code, so I had to spend some time cleaning up my past self mistakes;

The third bug I had was not so much a bug but an effect that I dide’t like; I Could not send any input to the game if the viewport with the framebuffer was undocked and away from the main window and when it was docked and not in focus I could still move around and zoom; A small problem with an easy fix but when I when started to dig in the input code I saw that I had written it really poorly so I went ahead and cleaned it up and made some modifications to it;

But both these problems sort of loop back to one problem I have at the moment; As I said in the beginning of this post, commenting code is more useful then u could think; A lot of my time this week has been on searching for stuff in my code and trying to figure out what it does; And that is time that I don’t have, but because I didn’t comment my code then I have a difficult time relearn my self to always comment my code; so next week I might need to spend some time going thru my code and commenting it;

But back to the main story now; Now that I have an “editor” sort of, I what to implement some sort of ECS (Entity component system); Now I could spend some a week or two to make one; But I think that is a future project; So I went with entt; It is nice and has a lot of features I can work with to make it easier for future me making games; And after some testing and implementing I have some sort of entity class but the ECS is far from done;

And yeah, this is the end of this week; There will be no life update this week because it has been quite a slow week and nothing exciting happened;

And so I am happy that u read thru this and I hope that u will come back next time and have a nice week;

“Comment your code. Or u will suffer in the future!”

-Official404

March 29, 2021 /Nomi Matisic
BitEngine Update
Comment
Skärmklipp.PNG

Im back in buissness

March 22, 2021 by Nomi Matisic in BitEngine Update, General Life Update

So recently I have been absent from…life I guess. I have had my hands full from work and personal stuff so I haven’t really had time to fix my website/blog, nor have I had time to code or write to this blog. So this is going to be a fresh restart for me.

I will try to write to this blog once every other day or once every week to keep some sort of record of what I am doing and not doing.


General Life Update:

So from the top then, I can start with some general life updates on myself. I have now been working for the Swedish army for about 1,5 years in total, I still love it and I whould’t trade it in for any other job;

My social life is currently on the downfall tho; Due to covid I haven’t really had the opportunity to go out and meet up with a lot of friends, family and close once but I hope that I can get the vaccine to change that soon;

More to the other side of life, I am a mess and I need to change my habits of cleaning my apartment for once XD

Some of my new year’s resolutions:

  • Sort out my economy (so that I might be able to buy a house or buy my own apartment)

  • Work hard and code more than last year

  • Get better at cleaning

  • Spend more time with close once

Altho my list is quite small, it is reasonable for my standard; work usually takes up most of my living time and can be quite stressful;

Recently I have been working on my cooking skill; They are far from perfect, but I am working on them;

My spending habits haven’t really changed, altho I don’t have a lot of money from the beginning; As fast as I get some, it usually disappears on rent and basic needs stuff;

received_1396639737200321.jpg

I also now have a plant named Jeffry; He is the best plant and i hope that i can take care of him; But only the future will tell how he survives


BitEngine Update:

So some BitEngine Updates; A general orientation on what BitEngine is, it is suppose to be a small “in house” rendering engine for my use to make some small-time games or other stuff; At the moment it cant really render anything other than standard ImGui stuff; Currently it supports OpenGL rendering if I could call it that; But i’m planning on adding support of other rendering apis like Vulkan;

The current goal for it is to make a story game; I don’t want to go into details about what the game is suppose to be because that would spoil it ;) But that is the general idea on what i’m going to use it directly after I fell like I can use it for something; I will of course still work on it and make it better and keep it updated for future use;

Back to what I currently need to do with it; The first thing I need to do is to figure out what I last did on it, and that might take some time because 26 000+ lines of code are quite a lot for one person to process;

But after that, I need to start working on some sort of better rendering for it; The current way of rendering is just to dump information and render it immediately; Witch takes a lot of resources to do, and there are a lot of better way to render stuff on the screen without doing a million render calls; I’m currently thinking that batch rendering might be a good option;

After that I might need some way of rendering text and/or texture; <- side note, textures might actually be a thing that I have already implemented but because I haven’t checked the codebase in a while i’m not sure;

I know that I have implemented some sort of shader support for it; I don’t know how good it is, but i know that it exists;

So yeah, that is the current plan at least; I have to start small and work my self up, so I don’t get to much work on my shoulders; If you want to know more about what i’m currently working on, I will leave a Trello link here so that you can check on the progress;


So in conclusion, it feels great to be back to the blog life, and I look forward to the future and to be looking back at this to see what I have done and how my life has been; of course, thank you for reading this and leave a comment or two if u have any question; I will try to answer them as fast as possible or if I feel like I need to answer them in more detail I will answer them in the next post;

Have a great future, and be on the lookout for when the next post get out :)

Dont give up, life may be dificult right now but there is always green grass on the other side of the hill. Hold out and stay safe.

March 22, 2021 /Nomi Matisic
BitEngine Update, General Life Update
Comment
  • Newer
  • Older