Just another WordPress.com site

Archive for February, 2012

Chromomancy Update #3 – J for Jarring

I learned some C.  And then I decided to use JNI to connect some java code to c, just to make the code even faster (2700 fps wasn’t enough).  But after fighting a long uphill battle for 4 hours, I have decided that running the c through java is currently unreachable.  This is a brief summary of the battle:

 

Me: Run! Run! Why won’t you run?!? Why won’t you run…

Program: Beneath this code, there is more than C.  Beneath this code there is a bug, Mr. IO, and bugs are tamperproof!

 

It is good to know when to stop, when to give up, when to ask for help.  Pride is good to have, but only when you know what you’re doing.  When it comes to C, I certainly don’t.

But moving away from failures, some triangular equations are in development (I am fed up with seeing squares).  The computations are foreseeably way more cpu-consuming, meaning the frame-rate may take an arrow to the heel and fall down to 1000.  Or even 500.  Which is why it is imperative to port the math to C.  500 fps just will not do.

So more colorful pictures will make their way over here soon.  A source control system was also set up, but you don’t care about that.

Oh, there is also ongoing work on music.  Maybe in a month, there will be a video with music.

Advertisements

Just Chromomancy

Okay, so this is going to be a rant.

I’ve made three posts titled with Chromomancy, expecting by now if Chromomancy were searched on google, it would lead to here.  But no.  Well, I need to get to the top of that list.  So I’m going to use the word Chromomancy as many times as I can here, and tag this with different word forms.  Chromomancy is using color as a source of power.  It works because of how color is linked to psychology.

If you want to piss someone off, put them in a room with walls of a color they dislike.  Want to invigorate something?  Use red.  Evolution taught us fight or flight, and when we see something that is the same color as our blood, we get hyped.  That is Chromomancy.  Blue is the sky.  And a lake.  It is soothing.  Imagine drinking a nice glass of yellow water.   Ick.  But you wouldn’t complain if the water is blue.  Because blue is a calming color.  That is Chromomancy.  Green is the color of grass.  Grass is where groups of stuff convene, because in an open field, all is visible and predators can’t sneak up.  Green is a social color.  That is Chromomancy.

Imagine, for a moment, a world without Chromomancy.  Imagine a world without color, nor the emotions linked to them.  Imagine if that color printer you have, suddenly broke down and you could only print gray scale.  Imagine all your cones in your fovea suddenly disappeared.  That would suck.  To master Chromomancy is to know what it is truly like, living without color, then passing the message to others to appreciate that they have functional cones.  To be a Chromomancer is to say no to gray.  Say no to smoke.  Say no to pollution.  They take away the Earth’s color.

Join the order of Chromomancy.  Add some color to your life.

I’ll add the word Chromomancy 5 more times just for good measure.  Chromomancy.  Chromomancy.  Chromomancy.  Chromomancy.  Chromomancy.

Chromomancy Update #2

After adding about 5 lines of code, the frame rate (per second) went up from 7 to 2700.  This is a little bit too fast, but at least now there exists processing time for complicated shading algorithms.  So I made a few different shading algorithms.  I think I should stick with the original one (from Chromomancy Update #1) for now.

Weight assigned to each of  the 4 vertexes based on taxicab distance.  At least the shapes are easily visible here….

The first weighting algorithm I used in this project.  It’s not working any better.  Weights are assigned to each vertex based on the “real” distance (not taxicab) to the 4 square vertexes.

My favorite one.  You can actually see part of the jetstream here (the darkblue thing poointing right, inside of the aquamarine colored part).

The problem here is that the slopes at the corners for the shading approach infinity, so discontinuities are abound.  So I decided to try two different interpolation methods, to make the derivative a smaller value, say 0.

Utter failure.  I feel like I did something wrong coding this, but I’d rather put the blame on quadratic interpolation.  It’s not even the right color.  I have no idea where all the yellow came from.  And the top left corner just looks ugly.

Another failure.  Squares are easy to see.  Logistic interpolation failed.  The growth functions learned in calculus are not useful.  Better than the Quadratic one though.  And at least the jetstream is visible (the darkblue hook thingy).

So today’s progress…. well all that was really done was increasing the frame rate over 300-fold.

Chromomancy Update #1

The display algorithm for the plasma engine was revamped to make it look nicer. Unfortunately, the framerate caplutted from 27 to 7 per second. All the same, I think it looks nice. You can still see squares, but they are much less obvious.

I really need to relearn some math before I can actually get this to both be fast and good looking. Getting rid of the squares would also be nice.

Chromomancy Introduction

Okay, this just changed form being a writing blog to being a game development blog. It will follow the toils of two aspiring insignificant java programmers in their quest to create an amazing game. Java being java, the odds are stacked heavily against them, but hey, that didn’t stop JageX and Minecraft from being awesome, so there remains an iota of hope.

So, this being the first blog post, let’s start with an introduction and/or overview of what this project will be (you know, I really should have used a website that gave a little more support towards these things. I still haven’t figured out my way around wordpress.) So I looked at a number of games and subjectively decided that 2 of them were totally amazing and deserved to have their mechanics combined. Bubble Tanks, and Plasma Pong. I mean, think about it. Bubbles are the cutest things ever, and Plasma is the most colorful thing ever. Bubble Tanks is also a pretty much boundless game that allows for the never-ending fun of bursting other bubbles and collecting them to burst more bubbles. So let’s combine them. Along with a Sierpinski Triangle because those things look pretty too. And you have Chromomancy.

Now I should probably have made this introduction before starting the project itself, but whats done is done, so what’s been done so far is a top-down shooter with spacey physics, bad graphics, monotony, terrible GUI, etc., and a plasma engine with bad math and bad graphics (but it’s amazing if you’re looking for something to compliment a dose of magic mushrooms). But hopefully over the course of 4 months, this will turn into a functional game. Hopefully. No guarantees.

And you know what, this will also stay as a writing blog. Because there will also be a story based on this game, called Seven Sirens and a Silver Tear. I feel like I said something about this earlier, but I can’t see older posts from the QuickPress interface. The main character is a dot named Craven Hart, there’s a goddess named Reena Bowe yaddayaddayadda.

Now enough with the text, here’s 2 screen-shots.

In this one, you can see a tilation of squares with colors inside them.  The fact that you can see the squares means this is bad.  Very bad.  Also, I have doubt as to the validity of the fluid dynamics equations being used here.

 

In this picture, you can see a bland heath bar, and a dark dot shooting dark bullets.  It is aiming at the red dots, trying to neutralize them.  On neutralization, the red dots drop blue dots which may be collected.  You can’t see how many blue dots you collected.  But you can press a number key to sacrifice a blue to gain a point back on the health bar.  I can’t even begin the explain the sheer amount of things wrong here.

 

So there you have it.  This is Chromomancy Version 12.2.6.  It definitely has room for improvement.  Oh yeah, 20 times as much time was spent making the latter screenshot desipte it looking nowhere near as trippy as the first.  Just thought I’d mention that.

Tag Cloud