Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (854)
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] 3
  ignore  |  Print  
  FPS Engine  (Read 56100 times)
0 Members and 1 Guest are viewing this topic.
Offline EgonOlsen
« Reply #30 - Posted 2016-04-26 18:42:28 »

It works on my AMD 290x, albeit it still logs some error message (I think you can ignore the REX prefix thing at the end...I'm getting this too in my stuff...no idea where it actually comes from, but it doesn't seem to hurt):

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Error occured: An OpenGL error was already present when the new LightingEngine object was created.: Invalid enum
Detected ATI card, enabling depth-stencil workaround.
Vendor: ati technologies inc.
Renderer: amd radeon r9 200 series
....... Initializing resources ........
........ Setting up Game Logic ........
OpenAL initialized.
[0x7FFEABEB4450] ANOMALY: meaningless REX prefix used
Done!

Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #31 - Posted 2016-04-26 23:42:37 »

I am not sure what is causing the enum error. It only happens on some GPUs and only some OS's; there's no correlation. It's probably both a driver thing, and something illegal that I am doing. It doesn't seem to be affecting anything at the moment, but I will keep looking for it Smiley

I posted this on the reddit gamedev section, and got some good feedback there. There was a problem with my timestep, and both the physics simulation and player movement were not consistent with framerates. I spent the day fixing that Smiley

I also added some animations/sounds to the gun for fun ^^

First Recon. A java made online first person shooter!
Offline Coldstream24

JGO Ninja


Medals: 82
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #32 - Posted 2016-04-27 01:28:56 »

It's really, really nice. In terms of frame rate it was flawless even in a scene with lots of boxes, barrels and lights. Looked great with FXAA and SSAO enabled. But I did notice that after a while of spawning lots of things in, the movement became especially jerky, but the FPS did not suffer.

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #33 - Posted 2016-04-29 23:50:39 »

I released an update just now.
A lot of little things have been tweaked internally. There's also some more commands in the console and a new map Smiley
Also, when you first launch the game, a file called "RenderSettings.cfg" is created. This is a list of all the rendering variables and their values. If you change these values they will be loaded in at next launch!

To load a map, type:
map path/filename.ext

To load the new map:
map map2/world.mm3d

First Recon. A java made online first person shooter!
Offline Oxen

Junior Devvie


Medals: 5
Exp: 6 years



« Reply #34 - Posted 2016-04-30 00:06:59 »

Works fine for me Smiley 144 FPS, 200 TPS. Only thing i would say is that when i clicked of the screen the player continues to rotate in the game even when the mouse has left the aplication
Offline VaTTeRGeR
« Reply #35 - Posted 2016-04-30 08:36:53 »

I still can't open the ingame console ... what about putting it on the F10/11/12 key or something Grin

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Detected NVIDIA card.
Vendor: nvidia corporation
Renderer: geforce gtx 960/pcie/sse2
....... Initializing resources ........
........ Setting up Game Logic ........
OpenAL initialized.
WARNING: class java.io.IOException when attempting to read image: res/models/bar
rel/RedBarrel_D.png
WARNING: class java.io.IOException when attempting to read image: res/models/ump
/NULL
Done!


You might need some code to seperate stuck phys-objects:

They are making sweet sweet love with that wall.

The tps is low because i spawned some barrels and boxes already.
It would make the game much smoother if you split physics and movement update-rate completely,
there are some jerks now and then, making the movement/looking feel awkward.

Awesome work! Animations, Sound and Graphics work nicely!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #36 - Posted 2016-05-03 22:16:09 »

~/Downloads/TestFPS: java -jar ./client.jar
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Error occured: An OpenGL error was already present when the new LightingEngine object was created.: Invalid enum
Detected Intel card.
Vendor: intel open source technology center
Renderer: mesa dri intel(r) haswell mobile
WARNING: class java.io.IOException when attempting to read image: res/textures/skybox.png
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #37 - Posted 2016-05-03 22:46:50 »

Hi helioscat! Thanks for trying the engine! Smiley
Are you on linux? I've noticed a few linux people are having that same issue when running the game. I've made a "fallback" if it cannot load the images properly, so please redownload and let me know if it works!

I've updated a few things in the past few days...
  • The image loading fallback (listed above)
  • Console can be opened with ~ or F12
  • I added a decal system
  • I added a particle system
  • The gun now shoots properly. It create bullet holes and interacts with rigid bodies in the scene Smiley
  • I created a new test level to test multiple material sounds

Click to Play



[EDIT]
I released a small update again today. I changed the skybox so that it could support bright textures ( I.E. a sun ).

First Recon. A java made online first person shooter!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #38 - Posted 2016-05-04 16:17:51 »

Hello orange451 nice to test your lighting FPS. And now the error is
or:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
./run.sh
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Error occured: An OpenGL error was already present when the new LightingEngine object was created.: Invalid enum
Detected Intel card.
Vendor: intel open source technology center
Renderer: mesa dri intel(r) haswell mobile
WARNING: class java.io.IOException when attempting to read image: res/textures/skybox.png
javax.swing.UnsupportedLookAndFeelException: [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
   at javax.swing.UIManager.setLookAndFeel(UIManager.java:526)
   at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
   at engine.error.ErrorFrame.<init>(ErrorFrame.java:17)
   at engine.rendering.RenderingPipeline.error(RenderingPipeline.java:261)
   at engine.rendering.RenderingPipeline.initialize_lighting_engine(RenderingPipeline.java:252)
   at engine.rendering.RenderingPipeline.initialize(RenderingPipeline.java:205)
   at engine.rendering.RenderingPipeline.initialize(RenderingPipeline.java:144)
   at tests.fps.TestFPS.main(TestFPS.java:150)



"Script" for just in case
1  
 ~/Downloads/TestFPS: cat ./run.sh


1  
2  
#!/bin/sh
java -jar ./client.jar

Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #39 - Posted 2016-05-04 17:28:21 »

Hello orange451 nice to test your lighting FPS.
That error is the same as before Sad! It's just I made it so it creates a dialogue letting you know the lighting engine failed to initialize; the UIManager error (javax.swing.UnsupportedLookAndFeelException) is unrelated.

However, it is still unable to load the skybox...
In your res folder, there is a skybox.png correct?

Is it skybox.png or skybox.PNG? This is super weird... I am using the built-in ImageIcon class that's part of Java to load the image :x


[EDIT]
I have reworked the fallback code. I fear it may have not been running! Please redownload  Pointing

On a side note, I put in the latest nightly build of LWJGL 2 (2.9.4). It seems as though Spasi has fixed the mouse stuttering issues! ^^

First Recon. A java made online first person shooter!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline helioscat

Senior Newbie


Medals: 1



« Reply #40 - Posted 2016-05-04 18:55:22 »

I have reloaded TestFPS.
Then after unpacking I renamed res/textures/skybox.PNG to  res/textures/skybox.png because of error.
Then game blackscreen stays longer, but...
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
~/Downloads/TestFPS: java -jar ./client.jar 
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Error occured: An OpenGL error was already present when the new LightingEngine object was created.: Invalid enum
Detected Intel card.
Vendor: intel open source technology center
Renderer: mesa dri intel(r) haswell mobile
ARB_base_instance supported, using for decal rendering.
....... Initializing resources ........
........ Setting up Game Logic ........
OpenAL initialized.
WARNING: class java.io.IOException when attempting to read image: res/models/barrel/RedBarrel_D.png
Done!

ASSERT: Scalar FS validation failed!
load_payload(8) vgrf13:UD, (null):UD(null):UD(null):UD, vgrf5:F
../../../../../../../src/mesa/drivers/dri/i965/brw_fs_validate.cpp:53: inst->src[i].reg_offset + inst->regs_read(i) <= (int)alloc.sizes[inst->src[i].nr]
Aborted


Also two files were created:
RenderSettings.cfg
(
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
r_supersampling 1.0
r_shadowresolution 512
r_shadowfiltering 1
r_shadowfilterradius 1
r_width 1280
r_height 720
r_fullscreen 0
post_ssao 0
post_ssaoresmult 1
post_bloom 1
post_fxaa 0


)
and font.png.

Thus, noticeable progress Smiley anyway.

UPDATED:
I resaved res/models/barrel/RedBarrel_D.jpg as  res/models/barrel/RedBarrel_D.png


and still have:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
 java -jar ./client.jar 
.......................................
... Initializing Rendering Pipeline ...
.......................................
.......... Creating Shaders ...........
......... Setting Up Camera ...........
..... Setting Up Lighting Engine ......
Error occured: An OpenGL error was already present when the new LightingEngine object was created.: Invalid enum
Detected Intel card.
Vendor: intel open source technology center
Renderer: mesa dri intel(r) haswell mobile
ARB_base_instance supported, using for decal rendering.
....... Initializing resources ........
........ Setting up Game Logic ........
OpenAL initialized.
Done!

ASSERT: Scalar FS validation failed!
load_payload(8) vgrf13:UD, (null):UD(null):UD(null):UD, vgrf5:F
../../../../../../../src/mesa/drivers/dri/i965/brw_fs_validate.cpp:53: inst->src[i].reg_offset + inst->regs_read(i) <= (int)alloc.sizes[inst->src[i].nr]
Aborted
Offline trollwarrior1
« Reply #41 - Posted 2016-05-04 19:04:53 »

Cool demo.

Though I have a few bitchy complaints. Being a CS player (1.5k hours) the sensitivity feels way to high and having no spray pattern feels awkward. The first time I started spraying, I started to correct for UMP spray pattern until I realized that there is no spray pattern. I guess that's a compliment to how good the gun model looks.
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #42 - Posted 2016-05-04 19:35:35 »

1  
2  
3  
4  
ASSERT: Scalar FS validation failed!
load_payload(8) vgrf13:UD, (null):UD(null):UD(null):UD, vgrf5:F
../../../../../../../src/mesa/drivers/dri/i965/brw_fs_validate.cpp:53: inst->src[i].reg_offset + inst->regs_read(i) <= (int)alloc.sizes[inst->src[i].nr]
Aborted

What is that? It's not java...
Is the JVM crashing?

If so, the only other thing I can suggest right now is to update your graphics drivers.
I will try to install a virtual linux onto my machine to test this!



Cool demo.

Though I have a few bitchy complaints. Being a CS player (1.5k hours) the sensitivity feels way to high and having no spray pattern feels awkward. The first time I started spraying, I started to correct for UMP spray pattern until I realized that there is no spray pattern. I guess that's a compliment to how good the gun model looks.
Don't worry I completely feel you Smiley
I'm a cs player as well, been playing for years. The sensitivity is high just for testing. With my cs sensitivity, I have to move my mouse across the width of my mousepad twice for a full 360 degree turn Tongue

When I make this into a game, you wont be left out ^^

First Recon. A java made online first person shooter!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #43 - Posted 2016-05-04 19:41:12 »

Ok I'll play around this issue,

BTW I am using openJDK:
1  
2  
3  
4  
java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)


1  
2  
3  
4  
5  
6  
7  
System:   Kernel: 4.4.0-towo.1-siduction-amd64 x86_64 (64 bit) Desktop: pekwm 0.1.17
           Distro: siduction 15.1.0 Paint It Black - lxde - (201601171107)
Machine:   Mobo: navigator model: X500H Bios: American Megatrends v: 4.6.5 date: 09/30/2013
CPU:       Dual core Intel Core i5-4200U (-HT-MCP-) speed/max: 1599/2600 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller
           Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 11.1.3


But some other java apps and games works well

UPDATE:

 In Ubuntu 14.04(with Oracle Jdk/Jre) it works! But unplayable because of need more resources, so strong jerks. Image while moving "rides", not smooth so hard to choose direction and focusing eyes. Other things are pleasant.

Personally for me unusually(hard to get used) after UrbanTerror (I am not CS player) - mine model can not be repelled(can't puh off, jump back) from the walls. And while firing bullets accuracy is not reducing.
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #44 - Posted 2016-05-05 08:10:08 »

Another small update Smiley

I wrote a point tracking system for my animation importer, so I can place a point on a model via model-space, weld it to any bone, and have it follow animations.

I used it to create a muzzle flash for the gun when you shoot ^^

Click to Play

First Recon. A java made online first person shooter!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #45 - Posted 2016-05-05 12:31:04 »

FYI: On Oracle JRE/JDK (not openJDK) in Debian sid game not starting too. So seems installed mesa drivers really are not suitable...
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #46 - Posted 2016-05-06 07:12:11 »

FYI: On Oracle JRE/JDK (not openJDK) in Debian sid game not starting too. So seems installed mesa drivers really are not suitable...
Same error as before?

Also, another small update! Smiley
I used the point-tracking system I wrote and created a point in the iron sights of the gun, and now you can aim down sights using Mouse 2 ^^

In addition, I rewrote how the acceleration of the player works. I went for a similar approach to quake, so you can now bunny hop.

First Recon. A java made online first person shooter!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #47 - Posted 2016-05-06 10:39:57 »

Yes, the same error. It would be interesting for me to run another java opengl 3D game (if found) or application just for checking. This actively maintained project also interesting for me, as I looking for Java alternative of UrbanTerror shooter
Offline VaTTeRGeR
« Reply #48 - Posted 2016-05-06 20:16:04 »

Got another one:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
[...]
GL Debug: 33350 33356 2340 37190 glDrawArraysInstanced parameter <primcount> has
 an invalid value '0': must be greater than or equal to 1 (GL_INVALID_VALUE)
Error occured: An OpenGL error was already present BEFORE endTransparencyPass()
was called.: Invalid value
GL Debug: 33350 33356 2340 37190 glDrawArraysInstanced parameter <primcount> has
 an invalid value '0': must be greater than or equal to 1 (GL_INVALID_VALUE)
Error occured: An OpenGL error was already present BEFORE endTransparencyPass()
was called.: Invalid value
GL Debug: 33350 33356 2340 37190 glDrawArraysInstanced parameter <primcount> has
 an invalid value '0': must be greater than or equal to 1 (GL_INVALID_VALUE)
Error occured: An OpenGL error was already present BEFORE endTransparencyPass()
was called.: Invalid value
]quit
AL lib: (EE) alc_cleanup: 1 device not closed


It was spamming the console with this; the game ran, but only at 20fps and 200tps.
Hardware: AMD A4-3305M APU, HD 7450M + HD 6480G, 4Gb Ram
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #49 - Posted 2016-05-06 21:34:35 »

It was spamming the console with this; the game ran, but only at 20fps and 200tps.
Hardware: AMD A4-3305M APU, HD 7450M + HD 6480G, 4Gb Ram

Oops! I left the error callback in again! Tongue

The particle system attempts to draw even when there are no particles, hence the error that the callback spits out Tongue

It isn't damaging, but it is improper. Not to mention printing out that much data into the console is probably bringing your FPS down Pointing

I will fix this for the next release Smiley

First Recon. A java made online first person shooter!
Offline EpicGuru

Junior Devvie


Medals: 2
Projects: 3
Exp: 3 years


return "Hope";


« Reply #50 - Posted 2016-05-07 11:45:25 »

Hi,
I downloaded this and had a go at it, and I have to say it is very impressive. Grin Grin
The graphics are very polished for a libGDX game (this is libGDX right?) and the physics are very realistic. I got a solid 144 fps and 200 tps.

My main question is, since this is a 'FPS engine', is this open source? Is there any documentation? I would be very interested in exploring the code and helping document it, if possible.
I think that this has a lot of potential for example, a web-based fps or something like that.



Deep meaningful message here :p
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #51 - Posted 2016-05-07 15:35:45 »

Hi,
I downloaded this and had a go at it, and I have to say it is very impressive. Grin Grin
The graphics are very polished for a libGDX game (this is libGDX right?) and the physics are very realistic. I got a solid 144 fps and 200 tps.
Thanks for trying it! Smiley
It's just plain lwjgl

My main question is, since this is a 'FPS engine', is this open source? Is there any documentation? I would be very interested in exploring the code and helping document it, if possible.
I think that this has a lot of potential for example, a web-based fps or something like that.
Perhaps when the engine is complete

First Recon. A java made online first person shooter!
Offline helioscat

Senior Newbie


Medals: 1



« Reply #52 - Posted 2016-05-07 16:59:23 »

If engine (or even part) will be opensourced - this job would be hard to overestimate.
I foresee the broad support with new people involved, and as a consequence modifications, integrations, maps and so..
Offline zgoethel12
« Reply #53 - Posted 2016-05-14 23:22:26 »

Looks very nice!  Keep up the good work.  Of course, it ran at 20 FPS on my Intel HD graphics, but no fragmentation/graphical glitches.  At first I thought there were no lighting shaders since there was no gradient light going on, but I found some  Grin
Offline orange451

JGO Kernel


Medals: 438
Projects: 7
Exp: 7 years


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


« Reply #54 - Posted 2016-05-15 03:30:25 »

20 fps? Ouch! Tongue
Was it an Intel HD 4000?

First Recon. A java made online first person shooter!
Offline Coldstream24

JGO Ninja


Medals: 82
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #55 - Posted 2016-05-15 08:05:45 »

I'm not sure what changed since the last time I tried it, but firing the engine up now yields about 7fps on the default settings with my GTX 960 under Windows. I don't know why, though.

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline VaTTeRGeR
« Reply #56 - Posted 2016-05-15 14:14:53 »

Also 960 graphics card but still 144 fps / 200 tps
Offline zgoethel12
« Reply #57 - Posted 2016-05-15 14:31:27 »

Quote
Was it an Intel HD 4000?

Yup... on my i7-3537U, 8GB DDR3 laptop
(Samsung ATIV Book 4, poor thing has had so much work done on him, I've replaced his hard drive and various other parts and installed Windows so much and so many different distros of Linux  Grin)
Offline zgoethel12
« Reply #58 - Posted 2016-08-26 03:06:04 »

I was here a while ago, with Intel HD graphics.  I have recently aquired a GTX 550 ti.  I thought you should know, I get 45-ish FPS.  Also, the other one toggles between 45-200 and the physics are very jerky.
Offline Ecumene

JGO Kernel


Medals: 197
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #59 - Posted 2016-08-26 16:04:21 »



The GPU is willing! But the CPU is weak, and battered ;(

Pages: 1 [2] 3
  ignore  |  Print  
 
 

 
EgonOlsen (1256 views)
2018-06-10 19:43:48

EgonOlsen (1125 views)
2018-06-10 19:43:44

EgonOlsen (862 views)
2018-06-10 19:43:20

DesertCoockie (1271 views)
2018-05-13 18:23:11

nelsongames (1104 views)
2018-04-24 18:15:36

nelsongames (1335 views)
2018-04-24 18:14:32

ivj94 (2074 views)
2018-03-24 14:47:39

ivj94 (1227 views)
2018-03-24 14:46:31

ivj94 (2169 views)
2018-03-24 14:43:53

Solater (792 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!