Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Software renderer 1.1 Applet  (Read 4262 times)
0 Members and 1 Guest are viewing this topic.
Offline Absolution

Senior Newbie

Java games rock!

« Posted 2002-12-10 20:50:01 »

I thought I would post the latest build of the software renderer I'm writing for use in 1.1 applets.  I created the requesite spinning cube test of course, but I'm on to greater things now.  I created this little 'flying' applet to tune my texture mapper and clipper:

Controls are set up like a typical no-clip/flying fps camera.  Drag your mouse to change your view and use the arrow keys to strafe and move forward/backward.  

Let me know what you think.  I'm maintaining 20+ fps all the time on my P3-800.  It's only a 256x256 demo right now, but i'd like to try for double that.  :/
Offline EgonOlsen
« Reply #1 - Posted 2002-12-10 22:31:30 »

The framerate seems to be limited to a max of 20, is this correct? I would like to see it running at full framerate to see if i should start to worry... Grin
Anyway, i'm a big fan of anything software rendered and especially in JAVA. Keep on working on it and give it its own webpage with some additional information.

Offline Absolution

Senior Newbie

Java games rock!

« Reply #2 - Posted 2002-12-10 23:22:30 »

I have the framerate limited to 50, but I'm using System.currentTimeMillis() and that is highly innaccurate and OS dependent as I'm sure you know.  On Win2K it only measures in 10s.  Sad  I'll just remove the limiter for now.  Timing in Java is, well, less than ideal.  I'll look into that timer hack posted in the shared code.  
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline retrosoft

Senior Newbie

oh, just work....,

« Reply #3 - Posted 2002-12-11 12:51:25 »

Do you start upside down? Cos when you go right it goes left,  hehe

Btw its looking good

public void myGame extends
Offline Absolution

Senior Newbie

Java games rock!

« Reply #4 - Posted 2002-12-11 14:30:46 »

Yes you're right, I had it in a flight mode.  I just updated it so it has the standard fps feel.  I also fixed the timing issue so it displays a more accurate fps in the corner.  Oh, and you can press 'f' to enable bilinear filtering, however it roughly halves the framerate right now on my machine.  Looks nice though.  Tongue
Offline wiederke

Junior Devvie

Thx to James Gosling.

« Reply #5 - Posted 2002-12-12 08:55:59 »


I have a about 26 FPS (1 GHz, 512MB, Mobile3). Is this a raycaster?

Offline Absolution

Senior Newbie

Java games rock!

« Reply #6 - Posted 2002-12-12 11:05:09 »

No, it's true 3D.  It's just an uninteresting world based on an ASCII map.  I'll load in a more complicated level later.  I already have a MD2 loader, but I'm going to write a 3DS loader as well so I can import from Studio Max.
Offline kpouer

Innocent Bystander

Java games rock!

« Reply #7 - Posted 2002-12-12 12:55:03 »

I got 35 to 40 fps with a P4 1.6Ghz, it's fun
Offline cknoll

Junior Devvie

Flame On!

« Reply #8 - Posted 2002-12-12 13:50:49 »

Uh, I'm not sure I'm looking at the same demo as everyone else is...

Is this an attempt to emulate that Excel 97 easteregg?  the one with the maze that you can walk around in?


Offline EgonOlsen
« Reply #9 - Posted 2002-12-12 21:06:54 »

I just noticed that the applet is a quite lot slower when run under Java 1.4 (at least on my machine (Athlon XP 2000+ running Win2K)). Using the MS-VM, i'm getting around 70 fps and using the 1.4 Java-plugin, i only get around 53 fps.
BTW.: How about adding some backface culling?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Absolution

Senior Newbie

Java games rock!

« Reply #10 - Posted 2002-12-12 23:46:30 »

I turned off backface culling for this demo because you can fly anywhere around the level.  I'm not sure about the 1.4 thing.  Maybe because I've optimized this for 1.1.  I use a 1.3 applet viewer and get the same framerates as in the browser (about 35fps on my 800Mhz P3 or around 18 with filtering).  Haha, maybe I'll have to put a "Best viewed under 1.3 or less" disclaimer on the site.  

Also, I tested some scanline division for perspective texture mapping, but I really didn't much of an increase.  The divisions aren't that bad any more.  The type conversions are what's really killing me, but I am having trouble converting the texture mapping routines to fixed point while maintaining sufficient accuracy.
Offline Absolution

Senior Newbie

Java games rock!

« Reply #11 - Posted 2002-12-20 19:11:41 »

I finally solved the problems I was having and got some real speed increases.  I posted a new version that is double the size.  
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (32 views)
2015-08-01 03:58:20

Jesse (22 views)
2015-07-29 04:35:27

Riven (42 views)
2015-07-27 16:38:00

Riven (23 views)
2015-07-27 15:35:20

Riven (26 views)
2015-07-27 12:26:13

Riven (17 views)
2015-07-27 12:23:39

BurntPizza (38 views)
2015-07-25 00:14:37

BurntPizza (47 views)
2015-07-24 22:06:39

BurntPizza (32 views)
2015-07-24 06:06:53

NoxInc (38 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!