Wednesday, October 3, 2012

What's up

So got a great job and loving ever minute of it. Extremely busy an endless amount of work to do. But I am still finding a few moments here and there to do some game development.

Don't have as much time as I used to which makes getting stuff done all the more important. So rather than spend time fiddling with a piece of code or trying to make some design changes I have found myself just going with the quickest and easiest approach.

Sometimes the code gets a little messy but for the most part I stick to the principles and style I've found work best. Like knowing when it's a good idea to move code into another function or create an abstraction. But yet with all that it's still hard giving people estimates making schedules and meeting them. Especially when you don't know what is going to cone up and you've only been doing the job for less than a year and of course this us the first time I've been in an environment like this.

I've been working with lwjgl a little bit very similar to other opengl wrappers. Which seem to take the simplest approach to design for an API. That can be good or it can be bad. To many static functions which breaks the use of an object oriented language. But then again I don't have the time to spend on making something better and abstract to manage all the interconnected gl states. One piece of advice I can give for when something isn't working is that you probably need to enable or disable something.

I was recently trying to use textures and draw line segments afterwards and the textures would show but segments wouldn't, if I didn't draw textures the segments showed up. The long and sort of it was I needed to disable texture 2d before drawing the segments and make sure textures were enabled before drawing them again. I'm yeah I either didn't know this or forgot if course I intend on moving away from immediate mode soon.

Alright that is all for now until next time. Btw I love challenges so if you want to challenge me to implement something you can't seem to figure it how to do if I can get it working I'll post how it's done with example code. You know help me to help you we both win I learn you learn.