Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (784)
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
1  Games Center / WIP games, tools & toy projects / Re: FFP Software Rendered - GFX/Game Progress on: 2017-02-21 22:29:00
Sounds interesting and I'm excited to build some 3D examples with the FFP Engine! Smiley
2  Games Center / WIP games, tools & toy projects / Re: FFP Software Rendered - GFX/Game Progress on: 2017-02-15 18:18:42
It looks very nice Smiley But can we use this Engine and create Test Programs with it or how we can we use it ? Cheesy
3  Game Development / Newbie & Debugging Questions / Re: How to learn openGL? on: 2017-02-08 22:24:39
I agree to Orange, Thinmatrix make the best Tutorials with the modern Pipeline but you can watch the Flappy Bird Tutorial from TheCherno he explained it also very good Smiley

EDIT: By the way we can also exchange some Information because I'm currently learning LWJGL too and write a Game Engine I could help you a little bit Smiley
4  Game Development / Newbie & Debugging Questions / Re: Load a GMMOD File on: 2017-02-02 17:33:21
Thanks I will try it out Orange451 Smiley
But first I tried out to model it with Game Maker Model Creator export it as .obj then load it with blender and export it as .obj again with the given Settings from ThinMatrix because I use his OBJ Loader.Now I get an Exception Sad

1  
2  
3  
4  
5  
6  
7  
8  
9  
java.lang.NumberFormatException: For input string: ""
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at engine.rendering.OBJLoader.processVertex(OBJLoader.java:90)
   at engine.rendering.OBJLoader.loadObjModel(OBJLoader.java:59)
   at Game.engineTester.init(engineTester.java:50)
   at Game.engineTester.run(engineTester.java:60)
   at java.lang.Thread.run(Unknown Source)


OBJ Loader:

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  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
public class OBJLoader {

   public static VBOModel loadObjModel(String fileName, ModelLoader loader) {
      FileReader fr = null;
      try {
         fr = new FileReader(new File("res/Models/" + fileName + ".obj"));
      } catch (FileNotFoundException e) {
         System.err.println("Couldn't load file!");
         e.printStackTrace();
      }
      BufferedReader reader = new BufferedReader(fr);
      String line;
      List<Vector3f> vertices = new ArrayList<Vector3f>();
      List<Vector2f> textures = new ArrayList<Vector2f>();
      List<Vector3f> normals = new ArrayList<Vector3f>();
      List<Integer> indices = new ArrayList<Integer>();
      float[] verticesArray = null;
      float[] normalsArray = null;
      float[] textureArray = null;
      int[] indicesArray = null;
      try {

         while (true) {
            line = reader.readLine();
            String[] currentLine = line.split(" ");
            if (line.startsWith("v ")) {
               Vector3f vertex = new Vector3f(Float.parseFloat(currentLine[1]), Float.parseFloat(currentLine[2]), Float.parseFloat(currentLine[3]));
               vertices.add(vertex);
            } else if (line.startsWith("vt ")) {
               Vector2f texture = new Vector2f(Float.parseFloat(currentLine[1]), Float.parseFloat(currentLine[2]));
               textures.add(texture);
            } else if (line.startsWith("vn ")) {
               Vector3f normal = new Vector3f(Float.parseFloat(currentLine[1]), Float.parseFloat(currentLine[2]), Float.parseFloat(currentLine[3]));
               normals.add(normal);
            } else if (line.startsWith("f ")) {
               textureArray = new float[vertices.size() * 2];
               normalsArray = new float[vertices.size() * 3];
               break;
            }
         }

         while (line != null) {
            if (!line.startsWith("f ")) {
               line = reader.readLine();
               continue;
            }
            String[] currentLine = line.split(" ");
            String[] vertex1 = currentLine[1].split("/");
            String[] vertex2 = currentLine[2].split("/");
            String[] vertex3 = currentLine[3].split("/");

            processVertex(vertex1, indices, textures, normals, textureArray, normalsArray);
            processVertex(vertex2, indices, textures, normals, textureArray, normalsArray);
            processVertex(vertex3, indices, textures, normals, textureArray, normalsArray);
            line = reader.readLine();
         }
         reader.close();

      } catch (Exception e) {
         e.printStackTrace();
      }

      verticesArray = new float[vertices.size() * 3];
      indicesArray = new int[indices.size()];

      int vertexPointer = 0;
      for (Vector3f vertex : vertices) {
         verticesArray[vertexPointer++] = vertex.x1;
         verticesArray[vertexPointer++] = vertex.x2;
         verticesArray[vertexPointer++] = vertex.x3;
      }

      for (int i = 0; i < indices.size(); i++) {
         indicesArray[i] = indices.get(i);
      }
      return loader.loadToVAO(verticesArray, indicesArray, textureArray);

   }

   private static void processVertex(String[] vertexData, List<Integer> indices, List<Vector2f> textures, List<Vector3f> normals, float[] textureArray, float[] normalsArray) {
      int currentVertexPointer = Integer.parseInt(vertexData[0]) - 1;
      indices.add(currentVertexPointer);
      Vector2f currentTex = textures.get(Integer.parseInt(vertexData[1]) - 1);
      textureArray[currentVertexPointer * 2] = currentTex.x1;
      textureArray[currentVertexPointer * 2 + 1] = 1 - currentTex.x2;
      Vector3f currentNorm = normals.get(Integer.parseInt(vertexData[2]) - 1);
      normalsArray[currentVertexPointer * 3] = currentNorm.x1;
      normalsArray[currentVertexPointer * 3 + 1] = currentNorm.x2;
      normalsArray[currentVertexPointer * 3 + 2] = currentNorm.x3;
   }
}


EDIT: It worked I just forget to bind the Texture in Blender
5  Game Development / Newbie & Debugging Questions / Re: Load a GMMOD File on: 2017-02-02 16:37:14
I find this format because I searched on the Internet for an alternative because I don't like Blender that much.So I found the Game Maker Model Creator and I like the Design of it because this Program is very easy to use.So I want to implement a GMMOD Support in my 3D Engine Cheesy
I already tried to use the OBJ Export in Game Make Model Creator but always when I try to load a .obj exported from the Model Creator my Program gives an Error.
6  Game Development / Newbie & Debugging Questions / Load a GMMOD File on: 2017-02-02 13:45:22
Hey Guys,
How can I load an GMMOD File with LWJGL and render it the screen ? :/

7  Game Development / Articles & tutorials / Re: LWJGL 3D Game Engine Series [GERMAN] on: 2017-01-24 22:06:24
Oh Okay I will start a 3D LWJGL Tutorial Series in the Future because I also think this would be more effective Smiley

8  Game Development / Articles & tutorials / Re: LWJGL 3D Game Engine Series [GERMAN] on: 2017-01-24 21:56:07
Yeah I know that I want to start a LWJGL 3 Series too but currently there is not much people that view my Videos but I think about that.Are you German too or do you understand it Cheesy ?
9  Game Development / Articles & tutorials / LWJGL 3D Game Engine Series [GERMAN] on: 2017-01-24 21:06:25
Hey Guys,

I've started a new Tutorial Series about how to create a 3D Game Engine in Java with LWJGL on my Youtube Channel but it is in German.I Know in the forum are some german users so if they are interested in learning LWJGL please check it out Smiley

Channel: https://www.youtube.com/channel/UCAPTnrIto4ryQR6tlXcU_cg
First Video: https://www.youtube.com/watch?v=1wQjePxhNVw
10  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2017-01-16 11:58:09
Thank you that solved the Problem Smiley
11  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2017-01-15 18:00:45
Could anyone download it ? Smiley
12  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2017-01-14 21:14:59
I can't test the Game because my PC don't download it.The Download always abort Sad

EDIT: Any Answer from the Author of the Thread ?
13  Games Center / WIP games, tools & toy projects / Re: Ot - 3D voxel engine on: 2017-01-02 11:36:02
Looks cool and I'm interested how it will change in the Future Smiley
14  Games Center / WIP games, tools & toy projects / Re: SterriaLand on: 2016-12-11 17:28:12
Looking really nice & you make a fast Development on it! Smiley
15  Game Development / Game Mechanics / Re: Bullet Shooting 3D LWJGL on: 2016-11-24 13:15:28
Don't work with the Code above :/
16  Game Development / Game Mechanics / Bullet Shooting 3D LWJGL on: 2016-11-22 13:24:57
Hello Guys,

I have some Problems with my Bullet Class because it doesn't shoot in the right Direction.

Bullet Class:
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  
private boolean hasHit = false;

   /** The owner of this Bullet. */
   private Entity owner;
   private double damage;

   private int time = 0;

   protected int ticksInGround;

   float speed = 0.012f;

   float gravity = 0.00027f;

   int textureID;
   
   public Bullet(Level level, Entity entity, float x, float y, float z, float hangle, float vangle, float downfall) {
      super(level);
      this.owner = entity;
      setSize(0.3F, 0.5F);
      this.damage = 3;

      this.motionX = ((float) Math.sin(Math.toRadians(hangle)) * speed);
      this.motionY = ((float) -Math.cos(Math.toRadians(hangle)) * speed);
      this.motionZ = -((float) Math.tan(Math.toRadians(vangle)) * speed);
     
      setPos(x, y, z);
   }
17  Discussions / General Discussions / Re: Next Job in IT Section ? on: 2016-05-30 20:05:09
Ah Okay many Thanks for answering the Question  Grin
18  Discussions / General Discussions / Next Job in IT Section ? on: 2016-05-30 19:36:11
Hello Guys,

Does anybody know if I could a next Job in the IT Section to get some Money or is this impossible with 17 Years ? Smiley

Regards, TGStudiosDE
19  Games Center / WIP games, tools & toy projects / Re: SterriaLand on: 2016-04-11 15:06:25
Hi the latest Screenshot looks amazing! Look at Skype then we could exchange Information, because I added you Smiley
20  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-04-11 15:04:52
Hi Guys was now on Vacation in Italy for one Week and working again on my Game.Currently Implementing some basic Multiplayer Test, Potions, something like User Verification, Inventory and more Mobs.Hope the next Release gets good.Ah and a new Website for the Game goes Online today or tomorrow, hope you will like it Smiley
21  Games Center / WIP games, tools & toy projects / Re: Heroes of Loot 2 on: 2016-04-01 16:49:23
Thank you for sharing the Link, it was interesting to watch how you create the Graphics Smiley
22  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-31 00:05:27
Yeah I changed it back.Because I don't know how I could handle that, if you can exit the level without killing an Enemy you could miss something but if you must to kill all Enemies to entry the next Level that would be annoying Smiley
23  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-30 21:26:48
Yeah try to replace them in the next days and adding new Game Content :-)
24  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-29 16:39:41
Only Placeholders sorry I will replace them later if its okay Smiley
25  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-28 22:53:02
Thank you for your Feedback Smiley
When the Ammo is empty, you just press E and then the Shop appears where you can trade Coins for Ammo.
That is not a Bullet, it is a Flamethrower but there spawns a Bullet and not move so there is the "Bug".
And the Player movement is always weird, I try to fix it tomorrow.
Soon there comes a lot of game Content, this is just a beginning Smiley

EDIT: And Yes I'm only 17 Years old Cheesy
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-03-28 21:55:33
Today I Worked on my Dungeon Game and Release the first Alpha.It would be nice of anyone would Download it and give Feedback because it was hard work Smiley
27  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-28 21:53:19
Any Feedback ? Smiley
28  Games Center / WIP games, tools & toy projects / Re: 2D Roguelike Dungeon Game Alpha on: 2016-03-28 18:13:34
Hi Guys I coded the whole Day and implement some new Features, which are listed down Smiley

Alpha 1 Release
- Better Dungeon Generation, now with Walls
- Controls Menu
- Better HUD
- Little Introducing Story
- Small and Big Chests Content
- New Designed Menus
* Could Exit Level although when you haven't kill all Enemies

Controls:
Move: W, A, S, D
Shoot: SPACE
Shop: E

Screenshots:

Controls Menu:


Introduction Story:


Game:


Shop Menu:


Download Link: Download Dungeon Game

Guys Please Download the Game, Test it and then give it Feedback, it would be nice!
29  Games Center / WIP games, tools & toy projects / Re: SterriaLand on: 2016-03-28 14:23:08
Yes that would be great! Smiley
30  Games Center / WIP games, tools & toy projects / Re: SterriaLand on: 2016-03-28 09:13:59
Is there any possibility to test it right now something like close Beta or Alpha Testers ? I would do it Smiley
Pages: [1] 2 3
 
numerical (96 views)
2017-02-21 07:32:16

numerical (96 views)
2017-02-21 07:31:46

theagentd (199 views)
2017-02-18 13:42:33

theagentd (204 views)
2017-02-18 13:35:16

h.pernpeintner (1365 views)
2017-01-24 22:39:11

h.pernpeintner (1353 views)
2017-01-24 22:38:32

Galdo (1915 views)
2017-01-12 13:44:09

Archive (1990 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2527 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2314 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
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!