2008-06-29

Adventure, and more musing and blending

Do you remember Adventure for the Atari 2600 ?

Probably not. However, just off of a random whim, I cracked open my old Blender game engine nonsense to see if I could clone it using the messed up python it has. Of course, it is not designed to be a game creator so much as it is to build walkthroughs of spaces, for example, adding objects and collision handlers is nearly impossible without some seriously advanced scripts, but you can make anything bounce around via the Bullet physics engine. It's quite fun to mess with, but you will find after a few minutes that it has severe limitations to any significant project.

So I said, "I bet I can make this" and have started. It is a purely for fun project, and I'll stick in plenty of goodies for any of you vore fans out there. In fact, check out the neat design lecture about adventure by Warren Robinett. It;s great for any aspiring programmers or computer science students.

Also, update on the Graffiti Kingdom stuff for blender, I developed this quirky algorithm that works like this:

Given a non-intersecting closed polygon (of any concavity or convexity(sp?)),
Calculate all vertex normals (unit vectors that point out of the polygon)
For a starting vertex, pretend you are "rolling" a normal relative to it.
- Start moving left, if the normal does not curve toward the original normal (up to 180 degrees)
- - then set it as the end point.
- Repeat with moving right.
- Close and save the edge, save all points used as a "region" of the polygon.
- Start with the last vertex, and use it as the final point and repeat.
- You will run into cases where the endpoints have no center point. This should be ignored and saved.
Repeat this process recursively for all regions (using the NEW edges as the polygon for the nth iteration), connecting the regions across the edge midpoints as the "height max shell"
Once you have done this, connect all the new regions, and you can process distance to the edge inside each region, which tells you the t parameter for you height basis equations.

... This probably needs 1 picture, and it would make perfect sense. Either way! We'll see if it actually does anything decent soon enough.

Peace out till next weekend!

-ImaginaryZ

No comments: