Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 366
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-10-20 10:30:12
Once again I find myself using @Roquen's Grab Bag of curiosities in earnest for a project.
A fantastic resource and many thanks again.

I'm using LCG64 to get a reliably random and speedy sequence of numbers needed to generate some terrain for Battledroid. @theagentd and I will reveal all in a few weeks. (Yes, he is once again enslaved).

Cas Smiley
2  Discussions / General Discussions / Re: JGO Twitter List on: 2017-10-19 08:51:29
spam....

Cas Smiley
3  Game Development / Performance Tuning / Re: Optimal 2D rendering. on: 2017-10-18 10:22:48
Well firstly swap the order of traversal of image - memory is laid out horizontally so scan across before going up, not up before across.
Secondly you're going to get O(n^2) performance as you add lights.
Thirdly you appear to be reading from a BufferedImage and then fillRecting graphics of the same size a single pixel at a time! I'm amazed you even got 12fps.

What does the final output look like? I bet what you want to do is much easier than you think.

Cas Smiley
4  Games Center / Showcase / Re: Forest Roguelike on: 2017-10-16 14:37:19
I have literally always wanted to make a roguelike, like, since 1980. One of these days...

Cas Smiley
5  Game Development / Game Play & Game Design / Re: Open-source multiplayer FPS in Java on: 2017-10-14 22:28:38
There was Jake.

Also, Runescape's actual player counts were orders of magntitude smaller than claimed. Bots, y'see.

Cas Smiley
6  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Online 3D modelers on: 2017-10-12 08:41:35
Yes... but... why?

Cas Smiley
7  Discussions / Miscellaneous Topics / Re: Career advice on: 2017-10-10 14:54:00
The startup will be more fun. And it offers loads more money. It's a no-brainer.

Cas Smiley
8  Java Game APIs & Engines / JavaFX / Re: Off screen rendering, drawing images onto themselves and other shenanigans on: 2017-10-02 21:10:09
Reckon I could do a better job of it now Smiley Only taken me 20 years to figure out how, mind...

Cas Smiley
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-26 10:28:35
Interestingly most of the things Java really lacks are present in Ceylon. Which is looking veeeeeeeery interesting.

Cas Smiley
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-26 08:43:01
What do you think is the most useful?

Actually now you actually ask me... this does seem to be a bit of a lame duck of a release features-wise. The module system solved a problem we didn't exactly have as such though especially as OpenJDK can be chopped down as much as we like.

A few of the new static Collections methods will cut out a bit of irritating boilerplate and it paves the way for actual lexical syntax to support them in a future release which would be nice (in the same way as, say, "" quotes and the + are specially handled to cope with the String class, we could get syntax for lists, sets and maps eh?)

I wonder if the new renderer for JavaFX is any faster. API improvements creep onwards but it's still sort of in the early days yet.

Cas Smiley
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-22 09:34:27
A bit of a shame yes, but then again zip is a pretty poor format for speedy access... are modules any better in that regard?

Cas Smiley
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-22 09:21:22
Of all the things in Java 9, the modules thing is probably the least useful to the most people.

Cas Smiley
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-21 20:35:59
Likewise. Intrigued by this release.

Cas Smiley
14  Games Center / WIP games, tools & toy projects / Re: Ashworld on: 2017-09-21 08:41:33
Nice one Smiley Looks like your best yet.

Cas Smiley
15  Java Game APIs & Engines / JavaFX / Re: Off screen rendering, drawing images onto themselves and other shenanigans on: 2017-09-19 11:11:08
Yes, JavaFX appears to have basically been designed in a bubble without any input from people who actually needed a modern UI API.

For starters, the creators of JavaFX have entirely ignored existing OpenGL APIs available - open source! - for Java, f.ex LWJGL and JOGL, and instead, pointlessly, totally rolled their own implementations.

Secondly they have inexplicably decided to entirely hide the underlying rendering APIs from the front-facing APIs. This means that nobody else can easily write a plug-in renderer that, for example, used LWJGL instead of the supplied renderers.

That would have gone a long way towards dealing with a whole lot of issues with JavaFX. Specifically there is no efficient, straightforward way to render JavaFX directly into an OpenGL context, so that means integrating JavaFX UIs with existing games engines is hopelessly inefficient, requiring a raft of hacks to get it to work (some one has managed it but it ain't pretty). And that's just the graphics side of things, never mind user input.

Thirdly they've completely hidden most of the skinning / L&F APIs, and where they've not hidden it they've not documented any of it. There are moves to improve this but don't hold your breath. The upshot is that it is very hard to make your own custom controls completely from scratch, and it's very hard to properly customise the L&F of existing controls if not impossible.

All of this is annoying because it could have been avoided.

Cas Smiley
16  Java Game APIs & Engines / JavaFX / Re: Off screen rendering, drawing images onto themselves and other shenanigans on: 2017-09-19 09:23:28
What you're missing is LWJGL.

Cas Smiley
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-18 15:03:06
You need therapy, at once!

Cas Smiley
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-09-18 12:26:53
What sort of sick puppy says "static public"!?
<edit>Aha, the same sort of sick puppy that names method calls with capital letters!

Cas Smiley
19  Games Center / Featured Games / Re: Demise of Nations for PC, Mac, Linux, Android & iOS on: 2017-09-11 11:44:02
@noblemaster gets interviewed -

https://www.skyematrix.com/independent-september/2017/9/10/demise-of-nations-interview

Cas:)
20  Discussions / General Discussions / Re: Getting ready to release...any suggestions? on: 2017-09-10 21:37:07
Bandwidth is still a not insignificant cost. Always best to get it hosted somewhere good at delivering video IMO.

Cas Smiley
21  Game Development / Newbie & Debugging Questions / Re: Deploying a Java game on Steam on: 2017-09-08 22:17:37
Yeah, I've been using OpenJDK for years (at least on Mac and Linux, haven't bothered with Windows yet). I think though that the main issue was there not being a credible implementation of the JDK (well, HotSpot) anywhere else without paying Oracle money. So no useful JVM on consoles, Raspberry Pi, etc.

Cas Smiley
22  Game Development / Newbie & Debugging Questions / Re: Deploying a Java game on Steam on: 2017-09-08 19:12:36
The licensing change is actually hugely significant, because it means chopping up JDKs to make them smaller.
And it means finally a path to PS4 and XB1 if someone can be arsed.

Cas Smiley
23  Game Development / Newbie & Debugging Questions / Re: Deploying a Java game on Steam on: 2017-09-08 12:10:46
I use no special tools as such, I just tar up the entire directory structure, game and all, and gzip.

Cas Smiley
24  Game Development / Newbie & Debugging Questions / Re: Deploying a Java game on Steam on: 2017-09-07 16:23:38
Embed the whole JRE structure in your game. This is actually what Oracle want you to do. They only take umbrage, in theory, if you change anything in the JRE distribution. (In practice they don't give a crap but don't tempt fate).

Cas Smiley
25  Game Development / Newbie & Debugging Questions / Re: No OpenGL context found with new game sessions. on: 2017-09-07 13:01:02
Don't use size() like that, it's "slow" - do this instead, which reads it once, then drains the whole lot to an intermediary list:
1  
2  
3  
4  
5  
6  
   int size = clientSession.getRequests().size();
   if (size > 0) {
      List<String> requests = new ArrayList<>(size);
      clientSession.getRequests().drainTo(requests);
      requests.forEach(request -> clientSession.getRh().parseRequest(request.split(" ")));
   }


Cas Smiley
26  Game Development / Newbie & Debugging Questions / Re: No OpenGL context found with new game sessions. on: 2017-09-07 10:44:03
ArrayList is not synchronized... what you probably want is maybe a LinkedBlockingQueue, where the main OpenGL thread uses queue.drainTo(thingsToDo) to get all the new tasks it needs to do, and the network thread uses queue.add(thingToDo). This will avoid the inevitable curious explosion when both threads try to read and write from the ArrayList at the same time leaving you with an inexplicable, hard-to-reproduce bug at completely random times...

Cas Smiley
27  Discussions / General Discussions / Re: Oracle OpenJDK, every 6 months on: 2017-09-07 10:30:57
About the only thing I care about is whether we're getting value types any time soon tbh. And ongoing JavaFX enhancements.
Though I'm quite pleased the Shenandoah GC will be coming as standard because G1 has been a massive disappointment.

Cas Smiley
28  Java Game APIs & Engines / JInput / Re: Issue detecting input devices on: 2017-09-07 09:14:21
@Endolf of these parts used to maintain it didn't he?

Cas Smiley
29  Discussions / General Discussions / Re: Linux builds on: 2017-09-07 09:13:32
I've always just distributed a tar.gz and left the buggers to sort it out for themselves. The tar.gz always contains a complete OpenJDK VM, and a file with a .sh extension that's executable.

Cas Smiley
30  Game Development / Game Play & Game Design / Re: Graphics Backend Abstraction on: 2017-09-06 12:54:41
Minion! Back to work!

Cas Smiley
Pages: [1] 2 3 ... 366
 
Ecumene (51 views)
2017-09-30 02:57:34

theagentd (76 views)
2017-09-26 18:23:31

cybrmynd (183 views)
2017-08-02 12:28:51

cybrmynd (181 views)
2017-08-02 12:19:43

cybrmynd (188 views)
2017-08-02 12:18:09

Sralse (197 views)
2017-07-25 17:13:48

Archive (747 views)
2017-04-27 17:45:51

buddyBro (880 views)
2017-04-05 03:38:00

CopyableCougar4 (1429 views)
2017-03-24 15:39:42

theagentd (1319 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!