PocketMatrix forums

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

PocketHAL demo (yeti3d port)

I have just finished a very fast port of the yeti3d for pockethal. I think it's a good demo to test this great library on your pocket pc.
The package contains all the yeti code plus the port that you can find on platform/phal (there is also the demo exe).

If someone want to compile it I have to warn you that the release version crash on my ipaq 3950. Only the debug version works actually. Probably a compiler problem?

http://www.shlzero.com/downloads/zmisc/yetiphal.zip

Have fun! :D
Good work Thomas, how long did it take you? I fancy doing the same with PF but working on my game means only a few spare hours here & there.
Thanks Ian. It took one hour, it isn't so hard to port the yeti engine and I have never used phal before so some time was used to understand this new powerful library. There is some other work to do like the textures color conversion (I have used a function that convert on every frame the buffer from rgb555 to rgb565 so the demo can be a lot more fast pre-converting all the textures and sprites). Probably on next version I'll add this and a fps counter so we can test phal vs gapidraw performance :)
Pocket hal would be better than gapidraw in that you can always get a linear framebuffer. I owuld have gone that way but it doesn't work on the pc yet which makes debugging a lot harder (esp when I am in the office).

I modified the sprites and lookup table at start.

Code:

int rgb555_convert(int color, int rmask, int gmask, int bmask)
{
return
(((((color)>> 0)&31) * rmask / 31) & rmask) |
(((((color)>> 5)&31) * gmask / 31) & gmask) |
(((((color)>>10)&31) * bmask / 31) & bmask) ;
}

// IMPORTANT : Used to convert 555 lookup tables and sprites to 565
void Convert555Array(u16* lookup, int count)
{
for(int f= 0; f < count; f++)
{
lookup[f] = rgb555_convert(lookup[f], 0xF800, 0x7E0, 0x001f);
}
}


// IMPORTANT : convert colours to 565 when we start up
HRESULT CMyApplication::InitInstance()
{
Convert555Array(lua[0], 256*64);
Convert555Array(&spr_00[2], 23*31);
Convert555Array(&spr_01[2], 23*31);
Convert555Array(&spr_02[2], 23*31);
Convert555Array(&spr_03[2], 23*31);
Convert555Array(&spr_ball1[2], 128*128);

yeti_init(&yeti, 0, 0, textures, palette, lua);
game_init(&yeti);

return S_OK;
}
i looked at yeti3d site, the license price tag is pretty hefty at $3000. but wow! works very well and fast on even an ipaq 3600.
AlienKinetics · 14 Nov 2003, 04:49 UTC — Yeti3D Development
Hi Guys, Thanks for the PocketPC!

RE: Price. Yea, $3000 sounds like a lot, but considering major phone companies can release the same game across multiple platforms, its worth it. Personally, I think its too cheap. Communication companies pay million dollar saleries to CEO's. Trust me, if I wanted to make money, I wouldn't be spending this much time earning less than I would in the local fish'n'chip store. I'd probable be writing chonky SEO tools to people that think ranking comes by spamming FFA's and search engines.

You can make money from the GPL version, you just have to release your source. Simple! Data files arn't GPL'ed, so yes, it is possible to write a game, and sell the textures/worlds. a-la Quake II. You dont see the Quake II GPL source stopping IdSoftware from selling Quake II.

Note, the latest version is somewhat better than the GPL version, and trust me, getting MD2 models rendering at a high speed on ARM processors is somewhat harder than OpenGL PC development.

Anyway, have fun with the GPL code. Write some free games, and look out for new code.

Kind Regards
Derek Evans
http://www.theteahouse.com.au/gba/
AlienKinetics · 14 Nov 2003, 04:59 UTC — Just a thought.......
On the topic of selling extra worlds. A very popular, and highly profitable sales method is to give FPS shooters away for free, and sell additional worlds.

I remember buying Blood and being shocked that the demo version wasn't all that limited after all!

So, heres a buisness plan for you guys.

Write a FPS game. Give away the demo for free with 2 episodes (plus source code ofcourse). Thats about 2x6 = 12 worlds. Sell the full version (ie: 5 episodes). And, pay nothing at all for the engine!

Yep, Some people call me crazy.

Catch Ya
Derek Evans
Mr X · 16 Nov 2003, 02:37 UTC — Yeti v2 port
I have ported my yeti port from gapidraw to pockethal. the net result is a gain in frame rate from 17-30 to 25-40 fps (ipaq 2200). Quite a substantial gain.

This is the latest version of the yeti code, and include colored lighting and md2 model support.

YOu can download the arm binary from http://www.picsprint.com/download/yeti.zip .

Note that as this code is non gpl, I can't provide the source

Yeti is at http://www.theteahouse.com.au/gba/index.html

Please let me know about any compatiblity issues, and what framerates are achieved.
izeman · 16 Nov 2003, 13:10 UTC — Yeti3D Development
AlienKinetics wrote:
its worth it. Personally, I think its too cheap


yup, its worth it considering it would work on most mobile platforms. its probably not even half what you'd pay Id for their engines. but its just something i still couldn't afford :cry:

but the gpl version really rocks. gersen's port is the only demo that has stayed in my device for a long time
i just realized AlienKinetics is that author of yeti3d. and i forgot to say great work!!
wayne · 18 Nov 2003, 17:56 UTC — Just a thought.......
AlienKinetics wrote:
On the topic of selling extra worlds. A very popular, and highly profitable sales method is to give FPS shooters away for free, and sell additional worlds.


You must have read my mind, thats what I was thinking a week ago.


AlienKinetics wrote:
Yep, Some people call me crazy.

Catch Ya
Derek Evans


Maybe too generouse, but I get where you are coming from, if it means that versions for phones are required to buy a license.

Wayne.
Kak · 06 Dec 2003, 15:31 UTC — Yeti3D Development
AlienKinetics wrote:
You can make money from the GPL version, you just have to release your source. Simple! Data files arn't GPL'ed, so yes, it is possible to write a game, and sell the textures/worlds. a-la Quake II. You dont see the Quake II GPL source stopping IdSoftware from selling Quake II.


just wondering, is there any way to protect software (or level data, in this case) against piracy using this aproach?
AlienKinetics · 07 Dec 2003, 12:52 UTC — Encrypting datafiles
Whats stopping people from stealing Quake worlds? Nothing. It general, most software thieves are too lame to host large amounts of data, so just having megabytes of textures/sounds/models will keep most illegal data off the net. After all, game code is the smallest component of most games.

If you are worried about releasing a serial based decryption algorithm, then a simple external exe that decrypts/decompresses a pak file will do the task & wouldn't be effected by the GPL license. DLL's are a grey area.

But see there is a little catch too all this :-)

If you dont own the content, then there is nothing stopping people from hacking it out, rebuilding some new worlds and releasing the game with your AI code.

So, there is a lot of work to be done for this system to be successful. Hence why GPL works so well.

After all, you cant really expect to compile a bunch of GPL/Free content into a EXE and make money.

Thats called ripping people off. I dont make much money from all this either. Some people have made comments regarding my strong copyright notices on my site.

Well, at the end of the day. Copyright is the only protection programmers have.

Derek Evans
AlienKinetics · 07 Dec 2003, 13:14 UTC — Free Content Collection
Actually, on the topic of compilations of free content. There is a little legal issue that I dont fully understand, but it relates to the copyright ownership of a collection of free content.

Say, it takes you a year to search the web for free game content which you then compiled into a pak file.

Do you have ownership of the collection? But, surely, your collection is based on other collections based on other collections.

ie: You might search free texture databases, or free poly model sites. What about Google!

Google has idexed most free content. If you found your content via Google, does it mean Google actually owns your work?

This might seem all very odd, but yes, I did work for internet companies that based there entire income on the compilation of free web data. You paid for the _database_! Not the _program_! Infact, you paid a monthly fee to update the _database_ of the program you originally purchased. The database was often made obsolete in 2-3 months, making your investment worthless.

But, other companies started to steal the database, which means we all danced off to court.

So, who owns what?

Id say this is the most important issue theses days relating to programming, GPL and the HUGE mass of free content on the web.

Hence why encryption is used. Not because you are protecting what you own, but because you dont want other people to have what you have got.

So the digital question is...
Does GPL = Karma

Derek Evans