J2ME Ray Caster

Design, hosting, server-side scripting, software programming
Bookmark and Share

J2ME Ray Caster

Postby [DRuG]Slick on Sun Jul 05, 2009 3:25 pm

Here's a little project I've been wanting to port to Java for a while, it's a ray casting engine I've made. For those who don't know, it's the type of 3D engine used in games like Wolfenstein 3D, Blake Stone and those of the same era. Doom was a more advanced engine with BSP trees and sectors, but still the same principal.

I was under the impression a real-time ray caster with texture mapped walls, floors and ceilings was almost impossible on the majority of Java enabled phones, which is why I kept putting it off for so long :P But I decided to give it a crack and it runs at 15fps on my mum's shitty old ZTE phone!!! Woo

Most developers now are using J2ME's (Java 2 Mobile Edition) in-built 3D support for games but I believe a completely optimized and well structured ray caster can produce a better looking game, until Java phones become fast enough to render about as many polygons as say Quake 2.

I've got the basics layed out so far, currently I'm re-coding the map and wall finding system, then I plan to add sprites. After that it's optimze, optimize, optimze.



Sorry for the shitty video quality, I'll release more geeky info once I get some more done :)
User avatar

[DRuG]Slick
[DRuG] member
[DRuG] member
[alr] member
[AGS] member
 
Posts: 42
Joined: Sat Jul 28, 2007 6:50 pm
Location: Queensland


Re: J2ME Ray Caster

Postby [DRuG]Shane0 on Sun Jul 05, 2009 10:00 pm

Top work slick. :geek:
User avatar

[DRuG]Shane0
[DRuG] member
[DRuG] member
[TDS] member
[CJS] member
]DR[ member
 
Posts: 126
Joined: Sat Oct 27, 2007 11:44 pm


Re: J2ME Ray Caster

Postby Capsinurass on Sun Jul 05, 2009 10:11 pm

Yeah nice work, be fun to play some Doom on my crappy phone lol
User avatar

Capsinurass
[DRuG] member
[DRuG] member
[alr] member
 
Posts: 148
Joined: Tue Jan 15, 2008 10:40 pm


Re: J2ME Ray Caster

Postby [DRuG]NikT on Mon Jul 06, 2009 4:36 am

Nice work dude.


"But my head's all messed up, so you better driive brother"
User avatar

[DRuG]NikT
[DRuG] cofounder & your host

Status:
Check out the downloads and members areas on drugcrew.com

[DRuG] cofounder & your host
[DRuG] coleader
[DRuG] member
DRuG server admin
[AGS] member
]DR[ member
 
Posts: 2532
Joined: Sat Jul 28, 2007 10:39 am
Location: Melbourne, Victoria, Australia


Re: J2ME Ray Caster

Postby [DRuG]Slick on Fri Oct 16, 2009 2:01 pm

It's been a while, have slowly been working on this on and off, the 3D renderer is just about complete. I only have things like collision detection and animated objects left before I can add sound support and tune the controls system (I have some neat ideas up my sleeve yet)

But I need some help before I continue guys :P I have uploaded a test alpha I would like anyone who feels like it to test and respond with some info for me. This demo is not the game! The map and graphics is ripped from id's old catacombs game and there is no collisions, controls are not friendly nor is there much at all to do or see.

I just need people to test what I have so far and let me know what phone you have, what FPS you get on average/when right up close to an object and any general feedback would be great..

PLEASE NOTE There is a memory leak I am aware of and may cause the game to freeze and require termination. This varies with different phones, some only last a couple of minutes and others may not freeze at all, or at least not for a long time.



Click on the pic to access a directory with different versions for different screen sizes. You will have to lookup your phone specs to find out if you don't already know. If your phone has a different screen size let me know and I'll upload a version for that resolution.

TIA :D
User avatar

[DRuG]Slick
[DRuG] member
[DRuG] member
[alr] member
[AGS] member
 
Posts: 42
Joined: Sat Jul 28, 2007 6:50 pm
Location: Queensland


Re: J2ME Ray Caster

Postby [DRuG]NikT on Fri Oct 16, 2009 4:30 pm

Awesome work dude.. I'll have a go at installing this on my Blackberry 8100 series this weekend.. they're bloated sacks of shit so it should make for a good test.


"But my head's all messed up, so you better driive brother"
User avatar

[DRuG]NikT
[DRuG] cofounder & your host

Status:
Check out the downloads and members areas on drugcrew.com

[DRuG] cofounder & your host
[DRuG] coleader
[DRuG] member
DRuG server admin
[AGS] member
]DR[ member
 
Posts: 2532
Joined: Sat Jul 28, 2007 10:39 am
Location: Melbourne, Victoria, Australia


Re: J2ME Ray Caster

Postby [LE]Android on Tue Dec 29, 2009 12:00 am

Well I got the 176x220 version and installed it on my ZTE T6 Phone.

When near an object it's an average of 15fps while when just cruising/standing in the room it's an average of 20fps.

http://www.youtube.com/watch?v=CZtY54qj_7A - Testing it out on my phone

I say a good job on making this Slick, purdy good project. I look forward to this being finished [mrgreen]
User avatar

[LE]Android
[LE] member
[LE] member
 
Posts: 2
Joined: Mon Dec 28, 2009 11:03 pm


Re: J2ME Ray Caster

Postby Comatose on Fri Jan 01, 2010 11:06 am

:(

Tim 3D.jad > Install > Java error. Invalid format

Samsung C3110
User avatar

Comatose
[CBK] member

Status:
Haha, only just figured out how to update my status

[CBK] member
[DRuG] member
[M4D] member
 
Posts: 28
Joined: Mon Nov 16, 2009 12:48 pm
Location: Nowra, Australia


Re: J2ME Ray Caster

Postby [DRuG]Slick on Tue Jan 12, 2010 10:39 pm

Oh nice Android, I'll have to upload a newer version soon, I've completely rewritten the renderer (much better performance and support for walls other than 90 degrees) to let you guys test out ;)
User avatar

[DRuG]Slick
[DRuG] member
[DRuG] member
[alr] member
[AGS] member
 
Posts: 42
Joined: Sat Jul 28, 2007 6:50 pm
Location: Queensland


Re: J2ME Ray Caster

Postby [DRuG]Ryant on Thu Feb 04, 2010 7:53 pm

Slick showed the(what i think) new version, its gets better :)

@Comatose: try .jar. and download it from the net on your phone. for some reason ya can't install apps on samsung phones normally.
User avatar

[DRuG]Ryant
[SNIP] member

Status:
Don't feel so dirty

[SNIP] member
[AGS] member
[DRuG] member
 
Posts: 57
Joined: Thu Dec 03, 2009 9:23 pm
Location: Queensland, Australia



Return to Web Design / Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron