PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

RaptureEngine

Image

I thought I would post a screenshot of the latest RaptureEngine build. This shows the integral editor in action, as well as a new GUI layout for the tech demo. I removed the original header and footer panels as I felt they detracted from the look of the engine. Afterall, the display is only 320x240, so I really want to use as much of that as possible for the world display.

The tool palette images are components of my CSprite manager. In this case, the palette is implemented as a simple container and can be dragged around the screen (along with its children) with only a few lines of code. The rest of the GUI components are controlled through another instance of the CSprite manager.

The ppcstudios logo image is a watermark which will be part of the evaluation version of the engine which I hope to make available sometime next week.

If you would like to read more about the RaptureEngine and see some more screenshots, you can visit the RaptureEngine forum at:

http://ppcstudios.com/phpBB2/viewforum.php?f=9
Excellent news, I've been waiting for this for some time :)
Looks great.
GR: Are you going to allow us to use this engine for Free or with License? Great engine btw ;-)
denthorq wrote:
GR: Are you going to allow us to use this engine for Free or with License? Great engine btw ;-)


Actually, there will be several licensing options, ranging from free to use up to unlimited usage.

a) A free version with watermarking for hobbiests and testing purposes. See if the RaptureEngine fits your needs and then purchase an actual licensed version.

b) Per product licensing at a low cost fee and distributed as a static library. This will probably be in the $100 range.

c) An unlimited usage license including source code, but I'm not sure what the pricing will be for that. It won't be exhorbitant, but the option will only be made available to established developers on a case-by-case basis.

d) For those developers who want to market their game directly through us (ppcstudios branding), the cost of the license will be absorbed by us.

Oh, and thanks for everyones compliments on the engine. I'm actually quite proud of it, and I'm looking forward to finishing it off and actually creating a game using it! :)
That's good. Does your engine sits on top of GapiDraw? Or it's just a stand alone library?
It sits on top of GapiDraw, but could easily support other graphics APIs with only minor changes.
GR, your engine looks promising. Here's my suggestion you might want to consider. Make the engine a standalone library and independent of GapiDraw. That's to avoid double licensing for all the hobbyists or developers. Or to avoid future licensing conflict which means for every upgrade of GD, you need to upgrade your engine too. For sure, we will be affected.

We can create great games with this RaptureEngine. You get my support with this project. Goodluck ;-)
I'm sure I'll be getting tons of suggestions once the alpha is released next week. I tried to base my calling conventions to interface easily with the CMyAppliction framework of GD2.04, but it could probably be made to be much more generic without to much difficulty.

I'll be interested to see how well the engine performs on some of the other devices which I don't have access to, like Smartphones and Symbians.
It's coming along well. Have you dealt with water yet? I found that to be one of the hardest bits (to get realistic) when writing my isometric engine (don't worry, it was in Intel ASM not for PPC).
Conan: Water is already implemented in the engine, although its not animated at present (on my todo list though). Water can only be placed on a single terrain level (level 1) and must have the same terrain level surrounding it for the fringe tiles.
Image

I thought I would post a quick screenshot of the fringe system used in the RaptureEngine. This shows a sandy desert merging with grasslands, and an area of snow covering them both. Fringe tiles are placed dynamically as the terrain is modified, so there is no human interaction necessary.

I've made a number of organizational refinements to the engine, and expect to make a few more today concerning tile graphics arrangement that will allow for even simpler fringe tile decisions. Hopefully a release for developers will be made this weekend.
Image

I figured I would post another screenshot this morning. This time I'm showing the new terrain editor palette and some terrain that was created using it. Each button on the terrain palette corresponds to a different type of terrain - Deep Water, Water, Marshland, Snow, Desert and Grassland. Altering the terrain type is as simple as selecting the type from the palette then tapping on the map location you want to change. Fringe tiles are done automatically.

The grid color can be changed at any time, and can be turned on and off as well. Also, the palettes can be moved around anywhere on the screen to make it easier to edit.
Guest · 04 Dec 2003, 23:57 UTC — Indoor settings?
What s it like for indoor settings? Seems aimed at outdoor stuff with transitions.

My needs are more towards large tilesets, walls, steps and abrupt height changes.

Ta

Sean
That was me, damn thing logged me out.

What about a symbian build?

Ta

Sean
Sean: This is geared more for outdoor settings, but I have a basic axonometric engine for those sorts of games(XCom, Ultima 8, Crusader) that I may port to the ppc later. There are also several axonometric engines in the public domain as well if that is the style you are looking for. My primary reason for creating the RaptureEngine is because there aren't any similar engines available outside of licensing the AoE engine.

I've not tried a build for Symbian yet, but I see no issues in getting it to work painlessly. Obviously the lack of stylus support will make it difficult to use the editor functions, but it certainly should be able to load in a premade map and display everything correctly. Maybe I can talk Johan into compiling the engine and testing it out on one (I don't have access to a Symbian device).

I'm working on the object systems now, and that's really the last thing on my list to get done before putting out the alpha. There will be builds for the PC, ARM/XScale, MIPS and maybe Symbian. I don't have access to a Smartphone device either, so I'll have to see about getting it built for that as well.
ppcstudios:

Stylus support is actually there on all symbian UIQ-devices, such as SonyEricsson p800/p900 and motorola a920 :wink:
re: Licensing will developers have to license 'rapture engine' from you & also license GD?

IF so I guess I will just dig out my source code (I wrote a PC isometric in assembler) when I come to do my isometric game (not this game,not next game but the one after that)
Ruis: Thanks! I had no idea any of the Symbian devices supported a stylus. That's certainly better than mashing the keypad all day! :)

Conan: The RaptureEngine itself uses only a handful of GapiDraw functionality, as does the included SpriteEngine. At some point these calls will be exposed so the developer can plug in their own low level drawing functions and use whatever graphics API they choose too.

The current application wrapper that is supplied as the demo, is written using GapiDraw 2.04 and will probably be updated to 2.10 as soon as it is released as final (to support Symbian).

I don't want to get into a discussion over licensing the RaptureEngine and GapiDraw because I consider it the same situation as with FMOD. The licensing fee for RE is pretty simple, and there are several options that the developer can choose from to fit their needs.
Image

I finally came up with an object subsystem that I'm happy with so I thought I'd post a screenshot of a nice little oasis consisting of several different objects - various palm trees and cactii.

I'm going to spend the next couple of days tuning the rendering loops, putting together some basic developer documentation and making sure everything builds into a library correctly. I'll then package it all up and make it available for evaluation. Obviously not all of the features are implemented yet, but its a solid foundation to build on.
I don't remember the shadows. Were they always there & are the generated based on a sun position? if so does day/night feature?

It's certainly looking the part now & making it harder than ever to consider writing my own. The only thing my PC engine did that this one doesn't is zoom/rotate the landscape & I guess that's easy enought to add on.

As mentioned before when Space Treker III is finished I plan another 3d game based on the same/similar engine & then intend to re-work my iso game from PC to PPC. Of course all those lovely 16 color graphics will need redrawn.
Conan wrote:
I don't remember the shadows. Were they always there & are the generated based on a sun position? if so does day/night feature?


The shadows are part of the sprite. They were there in the previous releases (well, most of them). They are probably more noticeable on the desert tiles. It would be possible to have dynamic shadowing by doing a 2 pass rendering of the sprites - first shadow based on light source position, then the actual object.

Conan wrote:It's certainly looking the part now & making it harder than ever to consider writing my own. The only thing my PC engine did that this one doesn't is zoom/rotate the landscape & I guess that's easy enought to add on.


I'll add zoom and rotate (requested by someone else as well) to the engine. Zoom will be simple, but at a minor cost in rendering speed. Rotation would be on 90 degree increments and is just a matter of rotating the data set.

Thanks for the comments and suggestions. They're very much appreciated. :)
As it will be 3 months or so until my current project will complete would it be sensible to consider using the rapture engine at that time (will it be close to stable)? The reason I ask is that I may choose to postpone my next 3D title if it looks like 3D hardware is coming say in 12 months. There was mention of a possible January 2004 announcement. No point changing from one 3D software renderer to another only to have all new kit making it out of date.
Conan wrote:
As it will be 3 months or so until my current project will complete would it be sensible to consider using the rapture engine at that time (will it be close to stable)?


If by stability you mean crash-proof, its already very stable. I run BoundsChecker on it daily to ensure there are no hidden problems.

If you're referring to API interface stability, the methods that are exposed (and that's almost everything) won't be changing any time soon. There will only be added functionality as the project progresses.

The sprite engine, however, gets enhanced almost daily as I use it in almost all of my work. As it gets enhanced, I drop the latest version into the RaptureEngine and make sure it functions correctly.

Basically, the RaptureEngine currently consists of 3 major components - the game application, the RaptureEngine which controls all of the terrain and object functionality, and the sprite engine which handles all object and gui component drawing and animation.

The RaptureEngine also contains editing functionality, and that becomes more sophisticated in leaps and bounds as I work on it. That said, some portions of the editor are quite slick while others are lacking, but the foundation is quite solid and easy to build on.

Oh, and here's another picture for the holiday season (it may be small, but there's a Christmas tree in there =)
Image
Great engine GR! When can we start using it?
Hopefully in a few days. I just need to tidy up the sprite engine to hide some functionality and make sure the clipper is set based on the viewing rectangle rather than the backbuffer size, create some documentation and package it all up.
I thought I'd post another screenshot showing how easy it is to drop in an animated object. Here's 4 jumping fish animations that took a couple minutes to drop into the demo. The animation is 14 frames in length, with 40ms between frames, and each of the animated objects is started at a different frame to provide some randomness to the scene.

Image

edit: you may notice the drop in framerate - this is only due to the fact that I was pressing the screenshot button repeatedly to get an image showing all the fish, not due to added animations.
very nice. I don't have to think hard to find 40 uses for this. Now add in the fly that the fish is jumping for & I'll be really impressed (only kidding) :)
Image

I was doing some code cleanup and thought I would post this after making some changes. This image demonstrates how the various clippers can be arranged to make life easier for the developer. In this case, the main RaptureEngine viewport is clipping both the terrain and all of the object sprites, while each sprite handler has its own clipper (in this case, the main buttons and the tool palettes). This eliminates considerable coding headaches for the developer - only one line of code is required to setup each viewport. Do it once and forget about it.
How do you make all the nice graphics? (Terrain, trees, etc.)
There are terrain templates included in the demo which can be modified to suit the developers needs. They could be altered to fit whatever type of world they wanted - lava flows, alien worlds, etc.

The static objects are just simple one frame sprites that can be of any size (obviously the smaller the better) and can be created with any art program. The animated objects can be any number of frames in length. Animated sprites are no more costly than static ones, so you could have swaying trees if you wanted to and it won't affect the framerate. One of the nice features of the SpriteEngine is that you can set the starting frame of each sprite to give the world some randomness.

I actually started this project way back in 2001 but shelved it because I had no time to work on it. I spent many long hours trying to recreate the terrain artwork used in Age of Empires I & II and this is as close as my meager artwork skills could get. The terrain was all created by hand in Paint Shop Pro. If I had only known there were graphics rippers for AoE it would have saved me alot of time and headaches, but then I couldn't honestly say I did the terrain.

The objects in the demo are just placeholders and examples of what could be done. I created a couple of the trees, found some others on the internet and cobbled together the rest. None of the artwork is intended to be used in a game, just as examples. Actually, there are only 4 different trees in the demo - this shows how nice you can make it look with a limited amount of artwork.
Will this engine run on a PC as well as a pocket pc? Does it (will it) support all the platforms gapidraw supports?

Isometric is one of the features I wanted to put into Pocket War 2.0 and I started reworking the engine, but yours is just to nice to pass up (as long as the license terms are ok.)
RaptureEngine has been tested on both the Pocket PC and desktop (about 250 fps on my pitiful P3-550). I'll be doing a Smartphone build in the next release that hopefully someone can try out (I don't have a Smartphone device to test it on), then a Symbian build when GD 2.10 is released. GapiDraw is the only determining factor in what platforms the engine will run on.
Is it possible to use a smaller tileset in this engine?
If you mean a smaller terrain tile dimension, yes, you can do that with the current state of the engine. If you mean have a smaller number of terrain types, I can add that to the list of things to do and implement it within a couple of revisions.

I presume you're thinking Smartphone and Symbian? Keep in mind the current tileset (terrain, fringe and pick) total only 50KB, so storage and memory usage isn't too much of an issue.
Sorry, I haven't had time to go dig into your sample source yet, so one more question. You can layer tiles I saw your post about that earlier, can you also tell where the user has clicked (something that translates a tap to an X,Y tile loc) and can you get back the cursor loc as an X,Y tile loc.

Can you get to the underlying gapi surface in order to overlay your own images, etc.

Also, is the menu code you have there part of the engine?

Hopefully over Christmas I will have time to play with the sample source. Also, I would like to talk to you about a source license. Email me at tedson at metalshard.com

Oh, and Merry Christmas everyone.
tedson wrote:
Sorry, I haven't had time to go dig into your sample source yet, so one more question. You can layer tiles I saw your post about that earlier, can you also tell where the user has clicked (something that translates a tap to an X,Y tile loc) and can you get back the cursor loc as an X,Y tile loc.


Yes, there is a 'pick' function that tells you what tile has been selected, and it is pixel perfect. From that information, you can easily drill deeper to know exactly where within that tile it has been selected.

tedson wrote:Can you get to the underlying gapi surface in order to overlay your own images, etc.


This is covered with the Object handler code. You simply supply the object surfaces at startup, then tell the engine where to place the object in the world. You have full control over the characteristics of the object, and all drawing is handled internally.

tedson wrote:Also, is the menu code you have there part of the engine?


The menu code is within the demo, and is very easy to implement. Its all handled through the SpriteEngine, which will be getting some added functionality in the next release to make it even more robust.

tedson wrote:Hopefully over Christmas I will have time to play with the sample source. Also, I would like to talk to you about a source license. Email me at tedson at metalshard.com


I'll send you an email later today.

tedson wrote:Oh, and Merry Christmas everyone.


Happy Holidays to you as well!
Nice work GR! I haven't yet tried rapture but just looking at those shots surely gave me a cool impression. If you need help testing your engine on a smartphone, let me know, I can run a few builds for you.

Happy holidays!
egarayblas wrote:
Nice work GR! I haven't yet tried rapture but just looking at those shots surely gave me a cool impression. If you need help testing your engine on a smartphone, let me know, I can run a few builds for you.

Happy holidays!


I might take you up on that offer Erick. I'm planning on ordering a Smartphone dev kit from Microsoft, but not for a few months.

Tully: I haven't forgotten about you. I've been away for a few days and will get you that email I promised. -- GR
We've updated the RaptureEngine home page this morning to provide a better overview of the API features. You can find it here : http://ppcstudios.com/raptureengineprod.htm