The One Man MMO Project
Getting my Christmas list ready this year was sort of disappointing. In years past, I would ask for all the hottest new PC games and I had a lot to look forward to on Christmas morning. This year there were few big releases, and I already had Mass Effect 3. The only 2012 game on my list this year? Guild Wars 2.
I like big, complicated, 100 hour story driven games. I love Command and Conquer (haven't played a good one of those in years), Mass Effect (although I can't get into the final chapter) Bioware or Bethesda RPG's. I love to explore the worlds of MMO's. I really miss the space shooter genre - Freespace was so much fun, and getting Wing Commander 4 for Christmas so many years ago was the highlight of the day.
I think the fragmentation of the games market is getting me down. I don't have an iPad, or a Android phone, or an iPhone (I often feel like I'm the only one) I don't use Facebook, so all the effort that has gone into development of games for those platforms is wasted on me. And frankly, one session of Angry Birds was really enough.
Read 1161 more bytes... (0 comments)
I'm not a great artist. I did some drawing classes a few years ago which I quite enjoyed, but I didn't produce too many masterpieces -- although I liked this one:
I am decent with a camera -- I was working the macro lens a couple weekends ago shooting some kitchen items to try as textures. Sugar looks like diamonds, and icing sugar looks like weird rock formations. Shortly afterwards I found cgtextures.com which is an amazing resource for textures.
You may be able to tell, I've been having a whole lot of fun the last few weeks. As a programmer I was surprised at how wonderful and satisfying it is to put art into a game engine. It's not something I really got to do working on game engines at EA. With the new art in place, a couple weeks ago I took the first screenshot where I excitedly thought "I could show this to people and they wouldn't laugh!"
Read 3641 more bytes... (1 comments)
If you haven't already, check out Part I.
Things have been quiet on the blog the last couple of weeks but there has been lots of exciting progress behind the scenes. I purchased World Machine and modified my terrain import tool to read the beautiful World Machine height maps as well as its flow, deposition and wear maps.
I've increased the terrain heightmap resolution from 10 metres to 2.5 metres, and the improvement is startling. There is now lots of fine detail on the heightmap which makes it much more realistic and interesting. The rolling hills are officially retired.
Read 4007 more bytes... (0 comments)
I'm working on optimizing my terrain processing program a bit. I figure with the current process it goes through it will take a whopping 9 days full-tilt to process my terrain data. So I got out AMD CodeAnalyst to see what was taking the time. I was shocked that CodeAnalyst reported that my app was spending 91% of its time waiting on spinlocks.
I didn't believe it. But that didn't mean I wasn't going to check.
Read 4964 more bytes... (0 comments)
I was debugging a texture settings bug when I got this cool looking result:
Read more... (0 comments)
It's a milestone. I'm working on my final rendering feature! With gamma correct Ambient/Diffuse/Specular throughout the world, hardware particles for effects (got those working a couple weeks ago) and some lovely shadows, I have but one big rendering issue left to address: Terrain 2.0.
My current terrain is a 300x300km USGS heightmap with 10m between samples and wang-tiled splatted textures, and it makes for beautiful rolling hills. But that isn't super-interesting as a play-space.
I took a couple days for hard thinking -- the hard thinking primarily due to the one big requirement I refuse to give up: a 300x300km terrain. It is amazing how many features go from simple to unwieldy when you scale them up.
Read 4514 more bytes... (0 comments)
Despite the hype, there's no doubt that Windows 8 Metro is just a regular Windows Desktop application. I was playing around the Windows 8 Consumer Preview and I tried Aurora Suite 2005, which is an accessibility program for Windows, when this happened:
Made me laugh seeing a standard Windows Desktop app running on top of Metro. I can click on the icons, and bring up the Aurora Suite menus, but as soon as I open a dialog, it switches back to the desktop. Aurora Suite uses Windows' HWND_TOPMOST feature.
Read more... (1 comments)
I've known for a while that my graphics renderer wasn't gamma correct. Up until a couple years ago, this wasn't an issue, then somebody noticed that we've all been doing lighting calculations wrong for the last 20 years. You've probably heard of gamma. In effect it is a brightness adjustment. Without gamma correctness everything renders a little too dark.
Textures typically are in a color space called sRGB with a gamma of 2.2, lighting is done in linear space (gamma of 1.0) and the screen most likely has a gamma of 2.2. The idea with gamma correctness is to make sure that the input textures and colors are converted to linear space before they are processed with the lighting in the shader, and that the result is converted back to gamma 2.2 when it is sent to the display.
Thursday evening I discovered this excellent OpenGL tutorial which explains most of what is needed to implement this in OpenGL. There were some details missing, so I'll fill those in here.
Read 11233 more bytes... (0 comments)
The software particle system is running. Here's a screenshot of the oil fire effect I've been using to debug the particle system. It looks quite good when it is moving although there are still a few things I want to add to it. Particles at the bottom go from yellow to red to gray so if you cover the bottom quarter inch so you can't see the particles appearing (which will be done in the game,) it looks like a pretty convincing fire. It was fun finding reference video on the internet. Looked at a lot of oil well fires.
I can't believe how many adjustments are needed to make a particle effect. I would get one thing looking good, then something else would look bad. First there was popping when particles hit the end of life, so I added a fadeout. Then it didn't look very realistic with just one particle texture, so I added animation. Then there was visual popping as the particle textures transitioned between animation frames so I added fading between animation frames. Then I noticed that particle creation was sort of "clumpy" where there would be a lot of particles created and then a pause, which made the bottom of the fire look like fireworks, so I had to distribute that more evenly. And on and on.
Soft particles are working, I implemented a simple depth check linear fade, not the fancier function from the NVidia paper, but they don't come into play in this screenshot.
Shadows are working, however it looks odd when particles disappear since there's no alpha in shadow mapping so where a particle fades out, it simply pops out in the shadow. I should be able to mitigate that with higher numbers of smaller particles so the popping isn't as obvious.
I haven't done any lighting on the particles yet but I'm going to tackle the hardware accelerated version of this next.
Read more... (0 comments)
Today there was a bug. A bad one. I was trying to use a 4-byte RGBA color value as a vertex attribute to tint the particles in my new particle system. It worked if I set the value manually, I tried a bunch of different colors: red, green, blue, black, white. Those colors worked perfectly. The real color values were supposed to lerp from one keyframe to the next. That totally did not work. If I didn't set the color, the particles were magenta, or sometimes cyan. I checked the lerp calculation, that was good. I checked the conversion from 64-bit color to 32-bit, that had a bug so I fixed that. I looked at the vertex and pixel shaders. They were super-simple so nothing there to be messed up. I checked the color data in the game versus the data in the VBO on the video card with GDebugger and Windows Calculator. The data was identical. I was at a loss.
Read 2887 more bytes... (0 comments)
Three Normal Mapping Techniques Explained For the Mathematically Uninclined - 2015-03-01 11:28:33 (8 comments)
Just figured out that the normal maps I generated with GIMP's normalmap plugin were wrong. I needed to check Wrap and Invert Y.
I noticed this by looking at this:
Stick-outy stuff should look like its sticking out. Thanks Ben!
Grab Bag - 2014-12-11 00:21:13 (2 comments)
I knew that quadtree template would work better than Facebook ads! I never played Warzone, but I am taking a lot of inspiration from Red Alert 2 and the other games in the C&C oeuvre. You're right, The Imperial Realm::Miranda is awesome and I will ...
Grab Bag - 2014-12-10 17:38:02 (2 comments)
I randomly found your site while searching for implementing quad trees :D
Anyway I cant believe the awesomeness of your game, it seems like command and conquer, tiberian sun, yuri's revenge,red alert2 etc online???
Also reminds me of warzone ...
Enabling NVidia GPUs on Optimus Laptops - 2014-12-03 12:18:32 (2 comments)
This seems somewhat heavy-handed given the documentation, but it does work. I had to modify the popup to tell the user to restart The Imperial Realm::Miranda since this doesn't take effect until the next run. Might make this an installer step at ...
Enabling NVidia GPUs on Optimus Laptops - 2014-12-03 02:45:15 (2 comments)
Wow, did some more testing and even successfully loading NVAPI isn't enough to enable the NVidia card with the 334.75 drivers.
Copyright (C)2009-2015 onemanmmo.com. All Rights Reserved