Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  JGadget - fake 3d rendering in Java  (Read 12012 times)
0 Members and 1 Guest are viewing this topic.
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Posted 2012-07-01 01:14:06 »

Gadget3D, which was originally created for Game Maker (during Game Maker 4 [so I would assume 2004-ish]), was the game engine's first "3d" engine, before they had support for directX. I found an old copy of it on my computer some months ago, and decided to recreate it in java, only adding more abilities to it. Basically, all this engine is, is a bunch of textured rectangles that are drawn at specific points (which are positioned by using simple trig.), and are sorted by depth. Pointing



Controls:
WSAD = move
Space = jump
Ctrl = crouch
1 = pistol
2 = flamethrower
LMB = fire
Q/E = turn
G = change quality
H = change render distance
F = turn off/on fog.

http://gamejolt.com/online/games/other/jgadget-2-0/8323/
or
http://globalanarchy.net84.net/Java/JGadget/


It may be a little slow, not only because I use Java2D, but also because I don't use it efficiently Smiley
(feel free to decompile the source, and give me some pointers on how to make my draw calls more efficient).

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline ReBirth
« Reply #1 - Posted 2012-07-01 03:04:08 »

Unfortunately there's no FPS display. I have no prob in ultra, but I can feel it's little faster when you use low. However, no matter quality you choose, big FPS drop on enabling fog.

Pretty good.

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #2 - Posted 2012-07-01 03:56:48 »

Added a fps counter :3
It's maxed out at 30, the fps.
What are your computers' specs, if you don't mind my asking?

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2012-07-01 10:21:25 »

Hi

The applet cannot get the focus, then I cannot move, it comes from gamejolt. I get between 6 and 22 frames per second which is the expected result for a low resolution display in a small frame; if I could put your game into full screen mode on my machine, I would probably get about 0.5 frames per second. JGadget 2.0 seems nice to display simple scenes in low resolution inside a small frame in an unsigned application or applet (without requiring the permission of the end users to run) but there are already better engines using software rendering like 3DzzD and JPCT. If you used plain JOGL just to draw what you send to your software renderer (the pixels) or if you used GLG2D with JOGL, it would be faster but you would be forced to sign at least the JARs of these libraries.

If you plan to handle bigger scenes, I advise you to use hardware acceleration (and spatial partitioning) but JGadget 2.0 is already fine for your current needs, isn't it?

Edit.: Disabling all extensions do not fix the problem. I use Firefox 10.0.5 under Mageia Linux 1 with OpenJDK 1.6. I see that gamejolt uses some Flash above the "java-applet-game-container" element. Please can you deploy your game somewhere else?

Offline nsigma
« Reply #4 - Posted 2012-07-01 10:26:30 »

Seems to be running at constant 30fps here, but as with gouessej I can't get focus either (and I can already display a still image at more than 30fps!  Wink )

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline BoBear2681

JGO Coder


Medals: 19



« Reply #5 - Posted 2012-07-01 14:29:42 »

Pretty nice, applet was focusable for me (Vista, FF13).  Any plans to actually release the source, or actually make a mini-game out of it?
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #6 - Posted 2012-07-01 14:54:36 »

Quote
Pretty nice, applet was focusable for me (Vista, FF13).  Any plans to actually release the source, or actually make a mini-game out of it?
yes and yes Tongue
Though I doubt the source would be very useful.

Quote
Please can you deploy your game somewhere else?
Sure :3

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline tberthel
« Reply #7 - Posted 2012-07-01 15:06:44 »

You should put it on GitHub or something.

Offline gouessej
« Reply #8 - Posted 2012-07-01 15:25:18 »

Quote
Pretty nice, applet was focusable for me (Vista, FF13).  Any plans to actually release the source, or actually make a mini-game out of it?
yes and yes Tongue
Though I doubt the source would be very useful.
It would be useful, I started my own first person shooter by looking at the source code of something very similar in 2006.

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #9 - Posted 2012-07-01 15:27:39 »

It would be useful, I started my own first person shooter by looking at the source code of something very similar in 2006.
What was the thing similar? If you don't mind my asking Smiley

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #10 - Posted 2012-07-01 17:47:58 »

It would be useful, I started my own first person shooter by looking at the source code of something very similar in 2006.
What was the thing similar? If you don't mind my asking Smiley
The game "Art Attack" created by Vincent Stahl, using d3caster, a 3D engine relying on software rendering and raycasting like Wolfenstein 3D. Vincent used the source code of "Java Maze" created by Jonathan Thomas. As you can see, a source code released in the beginning of the 2000s has been useful for some developers  Wink even though I now use a completely different solution based on hardware acceleration (JOGL 2.0) with another 3D engine (Ardor3D, JMonkeyEngine 2 some years ago, my own engine in 2007) and spatial partitioning (cells and portals).

Offline EgonOlsen
« Reply #11 - Posted 2012-07-01 19:43:55 »

I like the retro feel of it, but it has some rendering flaws. It seems to lack perspective correction and at some angles, it renders...this...


Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #12 - Posted 2012-07-01 20:43:37 »

I like the retro feel of it, but it has some rendering flaws. It seems to lack perspective correction and at some angles, it renders...this...


Ultra, far, and fog... 30 fps?
Your hardware rocks O:

I'll try to fix that Smiley
The reason it occurs is because of the really cheap trick I used to even allow floors to work Smiley

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Tim Spekler
« Reply #13 - Posted 2012-07-01 20:58:51 »

Runs at 25fps for me with fog and far rendering, sometimes 30fps. The ceiling is weird when you look on the right direction, but that's the only problem I had. Pretty nice work.  Cool
Focus would be nice.
Are you planning on making a game ?
2.5d always bring some retro gaming memories  Cheesy
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #14 - Posted 2012-07-01 21:29:48 »

This is super neat! Runs really smoothly on my computer. I wish I understood how this 3D stuff works Sad

I also found the same visual glitch as EgonOlsen:


And the ground too:

Offline Cero
« Reply #15 - Posted 2012-07-02 00:30:21 »

shift to shoot
my sticky keys are going nuts =D

also writing a 3d shooter in java2D, I dont know if its really cool or really sad Grin

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #16 - Posted 2012-07-02 01:11:33 »

also writing a 3d shooter in java2D, I dont know if its really cool or really sad Grin
Can I see a demo/pic of yours? Cheesy

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Cero
« Reply #17 - Posted 2012-07-02 01:54:00 »

Btw is Prelude Of The Chamber Java2D too ?

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #18 - Posted 2012-07-02 01:58:17 »

Btw is Prelude Of The Chamber Java2D too ?
It is.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Cero
« Reply #19 - Posted 2012-07-02 02:33:55 »

I dont mean any disrespect; the opposite actually.


But it's like painting the mona lisa with a magna doodle thing


Offline ReBirth
« Reply #20 - Posted 2012-07-02 02:52:16 »

Added a fps counter :3
It's maxed out at 30, the fps.
What are your computers' specs, if you don't mind my asking?
AMD Brazos E-450. I got 12-15 fps when either fog on or ultra quality. When both came together, I got 9 fps. I don't know if you just implemented mouse look after my first try, but my previous try was better and no bug like others mentioned.

To produce that "wave" bug, walk while crouching.

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #21 - Posted 2012-07-02 03:58:17 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sun.java2d.opengl" "write")
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.System.setProperty(Unknown Source)
   at engine.WebLauncher.init(WebLauncher.java:43)
   at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #22 - Posted 2012-07-02 04:39:42 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sun.java2d.opengl" "write")
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.System.setProperty(Unknown Source)
   at engine.WebLauncher.init(WebLauncher.java:43)
   at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Should be fixed now (on the gamejolt one)

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #23 - Posted 2012-07-02 05:51:23 »

The game-jolt one indeed launches, and prints 'CLICK TO FOCUS' in screen.

Clicking it doesn't make the game start Sad

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #24 - Posted 2012-07-02 14:28:41 »

The game-jolt one indeed launches, and prints 'CLICK TO FOCUS' in screen.

Clicking it doesn't make the game start Sad
Works perfectly fine for me D:!

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #25 - Posted 2012-07-02 15:28:54 »

Surprisingly works swimmingly on Mac OS X Chrome.

See my work:
OTC Software
Offline Apo
« Reply #26 - Posted 2012-07-02 15:31:36 »

The game-jolt one indeed launches, and prints 'CLICK TO FOCUS' in screen.

Clicking it doesn't make the game start Sad

Same here  Sad

Windows Vista, Java 1.7.0_03

Offline gouessej
« Reply #27 - Posted 2012-07-02 17:00:41 »

The game-jolt one indeed launches, and prints 'CLICK TO FOCUS' in screen.

Clicking it doesn't make the game start Sad

Same here  Sad

Windows Vista, Java 1.7.0_03


Same here Sad

Mageia Linux 1, OpenJDK 1.6

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #28 - Posted 2012-07-02 22:45:55 »

AMD Brazos E-450
AMD Brazos E-450 1.65GHz? That one? The one with 2 cores?
Well that explains your 10 fps Tongue!

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #29 - Posted 2012-07-03 03:16:28 »

update Smiley
I worked on the guns a little bit, giving them better collisions and a simple smoke particle
press 1 for pistol
press 2 for flamethrower

you can also left click to fire guns

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Pages: [1] 2
  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.

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (28 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!