Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (534)
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 3842 times)
0 Members and 1 Guest are viewing this topic.
Offline Absolution

Senior Newbie




Java games rock!


« Posted 2002-12-10 21: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:

http://www.freestandingentertainment.com/chance/test1/index.html

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 23: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-11 00: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 13:51:25 »

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

Btw its looking good

public void myGame extends www.retrosoft.co.uk
Offline Absolution

Senior Newbie




Java games rock!


« Reply #4 - Posted 2002-12-11 15: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 Member




Thx to James Gosling.


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

Hi,

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 12: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 13:55:03 »

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

Junior Member




Flame On!


« Reply #8 - Posted 2002-12-12 14: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?

*ducks*

-Chris
Offline EgonOlsen
« Reply #9 - Posted 2002-12-12 22: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-13 00: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 20: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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (35 views)
2014-07-24 01:59:36

Riven (34 views)
2014-07-23 21:16:32

Riven (22 views)
2014-07-23 21:07:15

Riven (25 views)
2014-07-23 20:56:16

ctomni231 (56 views)
2014-07-18 06:55:21

Zero Volt (48 views)
2014-07-17 23:47:54

danieldean (39 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!