måndag 7 september 2009

Status

This pretty much shows the current status of the engine.
You have the ability to import meshes and create physical objects via scripts. These are organized as GameObjects and Components. You can also do this in the script console. There is a basic camera management system in place, (for this scene I created a scripted component CCamera to handle the movement). The arena you see is a basic untextured sketch of what the final one might look like.

The blue pyramids inside the transparent body is bone visualizations that will help the development of the IK Animation system that is under construction.

söndag 6 september 2009

Busted for real

I found the real reason for the script bug yesterday. Lua was destroying objects randomly after calling functions from C++ and passing this-pointers to the objects as arguments. I guess I will have to create some adopt-policy or something but for now I store the pointers in a vector in lua so they don't get destroyed. An ugly solution yes, but a working temporary one.

Also, I started working on a Camera component and exported a new mesh for using in IK Animation tests.

måndag 31 augusti 2009

Bug Busters

Hi,
Up until now our project has been spared from any major bugs. At least that I know of. So when I encountered a bug in the script system the night before yesterday I was a bit surprised. Somehow, after a random period of time, a Listener object was corrupted which caused the app to crash. I battled that f*kn bug for almost two days when I stumbled over the solution to the problem. Not the explanation though. I'm still a bit crossed but I'll live. However, I am going to have to find out what caused the crash and if it was an error from my part in the script or in the C++ code. The script bugs are a lot harder to track down but often more obvious. I'll have to create some script bug tracking system. Anyway, that's all for now. The action/event system still works great by the way. Haven't changed it yet.

As for the gaming experience, the opponent is now chasing the ball. In a primitive way, sure, but chasing it still, and returning it. It's quite fun to play actually=)

fredag 28 augusti 2009

I can't believe I am writing about Actions again

...but here goes.
I have spend some time rebuilding the action system for the gazilionth time but now I have ended up with something I can live with for a couple of months. I think. Anyway, it basically works like any UI system you have come across - you have a bunch of actions and you bind keys to it. What I added this time is the ability to bind hotkeys, like CTRL+S. For now I store the modifiers (CTRL, ALT, etc) and their states in an 8-bit int along with the keycode (total of 16 bits). This limits the number of modifiers to 8 and is really meant to be used only with the standard keyboard modifiers. I know I may have to change it in the future to allow other input devices like game pads to have modifiers. For now the modifiers are all hardcoded keyboard ones and that's pretty much unacceptable. For example I know many of you (and I) use Mouse Click + Scroll in some applications. So why build this in the first place? Well, I needed the basic functionality and it's still very easy to expand and/or change.

The major change for this update is really that I have added to types of events, DigitalInputEvent and AnalogInputEvent to remove any bias towards keyboards or mice. Basically to add a new device type (say a wii-mote) you inherit the InputDevice class and specify what goes into the events. The digital ones are meant for buttons and keys. The analog is basically anything else, mostly related to movement I guess.
All for now.

fredag 19 juni 2009

Actions and Events

More on events. I've integrated parts of the event system to work with states so that state changes are passed around as events. Works well. Also I have changed in the action handling a bit. (The part that binds keys to actions). And...as a final bonus I've added a small Lua console to ease testing.

As you can see I have typed "createObject("ball")" and sure enough, a blue ball (top right) comes zooming towards the corshair.

tisdag 16 juni 2009

Extended Script Support

Script support has been extended to enable creation of new component types using lua scripts. This opens for creating new types during run-time. The ScriptComponents are created using LuaBind's lua classes.

söndag 7 juni 2009

Events and Collision

Hi,
I guess I've been keeping it quiet for a while now but I have been programming quite a bit. Mainly stuff concerning collision handling and the events sent to objects and components. I think I have a good ground to stand on now and I created a quick example the other day where a box follows where I'm shooting and returns the ball over the net. Very fun but har to beat.

måndag 13 april 2009

Remodel

Hi, quick update.
I've been doing some modelling work over the break:

As you can see, the heads still need a bit of work (and they need to be attached), but I am quite happy with the bodies this far.

onsdag 17 september 2008

Script Support Extended

So, I have continued to add script support to the engine and by now I can test a lot of gameplay features real quick by scripting them in Lua files and indirectly adding the functions to event-handlers. I have been playing around with the aiming algorithms, e.g. which angle and speed a ball shot from a certain position should have to hit a certain target. For you who remember high school physics this may seem trivial but there are a few things that complicates the calculations.

For instance, if you have drag/wind resistance involved you need to use a numerical step method and even without that, if you want to calculate the initial angle of the velocity you get 4 different results which you have to evaluate to determine which are the correct ones. A bit painful but I guess it has to be done. I haven't made my mind up about drag yet, I have to test the accuracy and speed of some numerical step functions first to see whether the feature is worth having or not. Unfortunately none on my current dependencies have built-in functions for handling this type of differential equation solving so I have to write my own specialized one.

Apart from that, most of the implementations I have done since last time have gone smoothly.

lördag 6 september 2008

Script Support

Hi there,
I'm slow on the update side but a bit faster working...
The last week I have implemented script support via LuaBind so now you can control objects and components via lua-scripts. The engine is still not fully binded and probably won't be, i.e. it will have script support for different parts so you don't have to register luabind functions for everything if you don't want to.

this is the first test script I wrote (for an 3d-aim controlled by the mouse). It works well btw :)

function handleMouseEvent(this, mouseState)
obj = this:getOwner()
cpos = obj:getCPosition()
pos = cpos:getPosition()
relX = mouseState.X.rel
relY = mouseState.Y.rel
x = -relX/50
y = -relY/40
xPos = pos.x
yPos = pos.z

if ((xPos + x) > 7.5) then
x = 7.5 - xPos
end
if ((xPos + x) < -7.5) then
x = -7.5 - xPos
end
if ((yPos + y) > 7.5) then
y = 7.5 - yPos
end
if ((yPos + y) < 0.5) then
y = 0.5 - yPos
end

cpos:translate(x, 0, y)
return
end

fredag 22 augusti 2008

Well..

Hi again. I guess it has been a while since last time. I have been working on a website project so not much has happened. Although, we are currently working on a Demo Game using the engine. This is a concept-teaser-render of the game:

lördag 22 mars 2008

More previews.

This is an early untextured, and not completely modeled Mango.


tisdag 18 mars 2008

Is it spring yet?

We're alive, and this'll become a pair of shorts in a near future.

söndag 10 februari 2008

Busy

I guess you've noticed the lack of new posts here...and I'm sorry to say that it is because nothing has happened since last time really. We've been busy in school and haven't been able to work on the project.

Yesterday I started building the OddEditor which will be capable of building levels as well as GameObjects and handling animation etc. (These features may come in separate editors though.) We're using wxWidgets for the GUI of the editor and everything has turned out great so far. No pictures to show you though, I'll get back as soon as I can.

onsdag 23 januari 2008

New Semester!

Hi there,
This monday, our new semester started so I just thought I'd update you on what has happened during the break.

This is a pic from today with some of the new features:



As you can see on the ground, there is a pile of boxes randomly lying around. They are cloned GameObjects which all have a physics Component. The one flying is one you can control and therefore is a perfect subject for the "selection-box" around it. (The white lines). The man in the middle is the old Mango model which I have used to build the brand new function for showing bones. Mango also has a selection-box around him, just to demonstrate the effect on a non-cubical object. The size of the box is based on his Bounding Box, only slightly bigger and with "half-drawn" sides. As you may have noticed there are also shadows on the ground, this time the result of a shader. They're not at all refined, and I don't take credit for any of the shader code, but theyre implemented at least! Hope to see you soon!

fredag 18 januari 2008

Mango 2.0

Hi there,

I redid the sketch of Mango, the main character a bit... is it better?

The old one: Old Mango

onsdag 16 januari 2008

ChildObjects etc.

Hey,
The last couple of days have been very productive. I have implemented childObjects, e.g GameObjects that relate to other GameObjects via a parent-child hierarchy. It works really well so far. I also updated the clone function to work with physical objects and child objects. And a lot of other things has happened in the phsyics department, like the implementation of an Odd::Body object. I think I have touch every part of the engine the last couple of days and it's great. Not much to show as usual, but lots and lots of improvements.

onsdag 9 januari 2008

Little boxes

Hey,
Today I continued working on the integration of physics in the Object System. It went very well, and it is now possible to attach a Collision Body to an Object, causing it to obey the laws of physics. It's still very primitive but damn, it's great to see som results =)
Ciao

btw, check out the new website at Oddrose Media

måndag 7 januari 2008

Let's get physical!

Sorry for the cheesy title, but I couldn't help myself.
This afternoon I started integrating a physics engine into the new Object System. The design is roughly finished, but it has to be coded as well. For now, (for time-saving purposes), I will integrate the Newton Engine, that we used in our early examples, with Mango jumping into ropes etc. Later a change to the Ageia PhysX Engine (Novodex) is possible, and probable. Time will tell.

lördag 5 januari 2008

Dolly #2

Hi guys,
as of today the Odd Engine has cloned its first GameObject. It feels great to have something to play with that is well implemented into the new Object System. The cloning was not that visually spectacular, the GameObject that was cloned was a controllable box with tetris-like movement. After the cloning, there were to identical boxes that moved in synch. Very nice to see after couple of weeks of working almost only on one thing.