Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 ... 19
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-05-22 16:47:39
Might be time for me to start looking into them again Smiley

Could be fun to make a VR game
2  Discussions / General Discussions / Re: Consecutive post limit on: 2018-05-22 16:45:14
I have the same feeling.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-05-21 23:21:01
How is it? I bought an oculus dev kit 2 back in 2012. It was pretty neat.
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-05-15 01:48:28
Have some more free time on my hands.

Started back on my UI solution for lwjgl3.

Click to Play

Click to Play

Click to Play



I want to make it /similar/ to JavaFX, but be limited to just basic UI functionality.

The goal is to recreate a testing IDE I wrote using JavaFX a few months ago:

I want to create a proper IDE for my rendering engine.


So far the setup is quite minimal:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
public class HelloWorld {
   public static final int WIDTH   = 320;
   public static final int HEIGHT  = 240;

   public static void main(String[] args) throws IOException {
      if ( !glfwInit() )
         throw new IllegalStateException("Unable to initialize GLFW");

      // Create a standard opengl 3.2 window. You can do this yourself.
      long window = LWJGUIUtil.createOpenGLCoreWindow("LWJGUI Window", WIDTH, HEIGHT);
     
      // Initialize lwjgui for this window
      Scene scene = LWJGUI.initialize(window);
     
      // Add some components
      addComponents(scene);
     
      // Game Loop
      while (!GLFW.glfwWindowShouldClose(window)) {
         // Clear screen
         glClearColor(0,0,0,0);
         glClear(GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
         
         // poll events to callbacks
         glfwPollEvents();
         
         // Render GUI
         LWJGUI.render();

         // Draw
         glfwSwapBuffers(window);
      }
     
      glfwDestroyWindow(window);
      glfwTerminate();
   }

   private static void addComponents(Scene scene) {
      // Create a simple pane
      StackPane pane = new StackPane();
     
      // Add the pane to the scene
      scene.getChildren().add(pane);
     
      // Put a label in the pane
      pane.getChildren().add(new Label("Hello World!"));
   }
}

5  Game Development / Newbie & Debugging Questions / Re: SSAO buffer texture wrong on: 2018-05-11 14:23:52
Well, you've assigned your texture to:
1  
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED...)

So, it only has the red channel of color.


--
But if I understand correctly... even if you output something like:
1  
OUT_Color = 0.0f;

It is still red?


--
Are you drawing a fullscreen quad on your screen with that shader bound? Otherwise nothing will change, because there's nothing being sent to the fragment shader.


Also... a lot of this code looks like it was lazily taken from John Chapman's blog...
6  Games Center / WIP games, tools & toy projects / Re: Spoxel - Open Beta! on: 2018-03-19 05:11:12
Looks pretty cool. Managed to get a key from the discord. Will be playing more of it soon! Smiley
7  Discussions / General Discussions / Re: VR motion sickness on: 2018-03-18 04:36:47
I used to play a lot of counterstrike in highschool. When oculus first game out, I spent awhile and got it working with it. Played with it for many hours at a time and never felt motion sick.

Guess it's just in the person using it.

I think that people who get motion sick often wont even be using a VR headset, as they'll just always be motion sick. So I don't think you should have to plan your game around that, if you know your audience is already going to be limited.
8  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL3FX - A sneak peek on: 2018-03-16 17:08:05
This has me quite excited. Keep the post updated! @Spasi
Smiley
9  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Java Multiplayer FPS Engine - SteveTech1 on: 2018-03-10 21:11:33
Looks pretty cool! Smiley
10  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-10 13:37:32
I think threatening moderation action against one of our community members because he has differing politics absolutely reinforces the picture jon gave. Really in poor taste... Not everybody thinks the way you do.
11  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-10 04:28:58
Good luck taking my guns.
12  Game Development / Newbie & Debugging Questions / Re: Java regex pattern for finding text between [[ ]] on: 2018-03-04 16:10:04
it seems \r is your line break in your editor instead of \n, so I guess that is why mine does not work for you.
\R in javas regex is any combination of linebreak characters... I think...?

The other problem will be that it will detect comments within ", so you will also need to work out how to get around that.
It all matters which one I check first. If I check for multiline comments before I check for quotation comments then the multiline will be captured. but even IF it doesn't work, they're the same color... so the user will never know! Smiley

Your fixed version works perfectly, though!
13  Game Development / Newbie & Debugging Questions / Re: Java regex pattern for finding text between [[ ]] on: 2018-03-04 06:08:54
Couldn't seem to get yours to work, phased.

Though from your guys responses, I managed to write this:
1  
"(\\[\\[)(.|\\R)*(\\]\\])"


Which seems to get the job done perfectly... until there's two sets.


The second "]]" causes the entire script to be highlighted, as it regards the second "[[" as part of the inner text from the first "[[".

Hmm...
14  Game Development / Newbie & Debugging Questions / Re: Java regex pattern for finding text between [[ ]] on: 2018-03-04 03:09:05
@KevinWorkman
Tried your idea out, but unfortunately there's no effect


For comparison, here's what I found online for finding a string surrounded by " marks:
1  
"\"([^\"\\\\]|\\\\.)*\""
15  Game Development / Newbie & Debugging Questions / Java regex pattern for finding text between [[ ]] on: 2018-03-03 22:33:33
Hiah.

I'm implementing a lua text editor into my engine, and wanted to create syntax highlighting that'll work with lua. Most of it works so far, but I can't wrap my head around multiline strings.

Unlike java, where multiline strings are done with /* and */, lua has them between these characters: [[ and ]], but I'm not much of a regex expert and was hoping someone could help me out with this issue.

16  Java Game APIs & Engines / Tools Discussion / Re: jBullet3 on: 2018-03-01 16:33:42
To replace from the game engine I wrote last year. For my personal projects Smiley
17  Java Game APIs & Engines / Tools Discussion / Re: jBullet3 on: 2018-02-28 17:50:30
You don't need to use kotlin, but you do need it as dependency

However, whatever you use (Gradle, Maven or the fat jar) you won't even touch it if you don't want to
If there's no touching that needs to be done, then that is fantastic for me to hear. Smiley
This could prove to be quite useful. JBullet2 is a less than ideal solution. Almost makes me want to use ode4j.

Did you even take a look at the example? How about testing the library as a Java developer, in order to support someone who invested a lot of time for us all with some feedback, if (not when) there's something that is not optimal to consume from the Java side of things?
Because that's a deciding factor of whether or not I am going to use the library.
18  Game Development / Newbie & Debugging Questions / Re: Changing individual triangle's color on a mesh on: 2018-02-28 17:48:30
Side-note. I had no idea joml had these intersection tests included in it. Is there are speed test comparisons to other library approaches?
19  Java Game APIs & Engines / Tools Discussion / Re: jBullet3 on: 2018-02-27 18:52:00
If I wanted to use this, do I need kotlin? Undecided
20  Game Development / Newbie & Debugging Questions / Re: JavaFX in lwjgl3? on: 2018-02-19 19:49:00
Unfortunately JFXGL has speed issues.

Creating about 50 node objects (trees, panes, anything really) brings it down to a crawl on a powerful desktop computer. So it's not useful for practical applications.
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-02-09 23:16:28
Wasn't happy with the UI solutions in lwjgl3, so using nanovg I started the process of creating one.
Click to Play
22  Game Development / Newbie & Debugging Questions / Re: Libgdx, Box2D, Box2dLight on: 2018-02-06 14:30:30
newAngle = angle + (float)Math.PI
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-02-04 19:45:39
Made a little IDE looking program in lwjgl3 using JFXGL:

Code editor was from RichTextFX.

Only problem is that richtextfx does something that JFXGL doesn't really like... resulting in the whole application running at a solid 8 fps Sad Running it without lwjgl/jfxgl it runs quite fast.

Guess I still need another GUI solution if I want to keep with lwjgl3 Sad
24  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3.1.6 on: 2018-02-04 19:43:42
So is the yoga issue all fixed then?
25  Games Center / WIP games, tools & toy projects / Re: Apparatus on: 2018-01-24 23:08:49
This is a pretty cool looking art style! Smiley
26  Discussions / General Discussions / Gluon Mobile: Java 9 JRE that works across Desktop, Android, and ios on: 2018-01-22 07:13:08
http://gluonhq.com/products/mobile/

Haven't seen any posts about this. Seems pretty cool.
Might be cool to see lwjgl with this?  Pointing
27  Game Development / Newbie & Debugging Questions / JavaFX in lwjgl3? on: 2018-01-21 18:21:32
Been awhile since I've used lwjgl. I was wondering if there were any improvements to JavaFX within lwjgl3? I remember seeing some stuff from Spasi. After some googling I came across another project called JFXGL. It hasn't been updated in awhile, but it /seems/ like it still works.

Was just wondering if anyone had any information on the topic Smiley
28  Discussions / General Discussions / Re: Jail time for cheat programmers in China on: 2018-01-18 18:24:24
Tried to read memory with java from a game using BattlEye. Couldn't get the memory to even read with that anticheat. Gave up after that.
29  Discussions / General Discussions / Re: would any of you guys be offended if on: 2017-12-01 16:07:57
Ok I'll do it, but no Muhammad.
But why not though? You could pit every religion together, and just like that triple your replay-ability. There's only so many biblical characters that have distinguishable characteristics. Could be quite useful for unlockable characters at a later time, DLC, ect.

Furthermore, the sheer fact of including Muhammad would create so much controversy everyone who heard about it would try it. You're throwing away a great chance to have your game played if you ask me Sad

In the start you'd probably get a ton of negative press. Those "PC police" scour the internet for anything that's on the "offensive list". And will instantly cry into their blogs trying to bury your game. But luckily enough for every one of them, there's also someone that does the opposite on youtube; that'll praise your game, and give you free advertising to hundreds of thousands of people.
30  Discussions / General Discussions / Re: would any of you guys be offended if on: 2017-11-30 16:42:16
Only if muhammad is a character Smiley Game will blow up, guaranteed.
Though maybe not in the way you want.
Pages: [1] 2 3 ... 19
 
DesertCoockie (56 views)
2018-05-13 18:23:11

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

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

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

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

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

Solater (108 views)
2018-03-17 05:04:08

nelsongames (189 views)
2018-03-05 17:56:34

Gornova (430 views)
2018-03-02 22:15:33

buddyBro (1090 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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
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!