Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (690)
Games in Android Showcase (201)
games submitted by our members
Games in WIP (764)
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 ... 12
1  Games Center / Showcase / Re: Proxy - A game about programming on: 2016-09-07 18:05:25
Very interesting!

What's that outlining technique called? I've being planning on implementing something like that, eventually. Yours looks like what I am going for.
2  Game Development / Newbie & Debugging Questions / Re: JOML - quatf.addScaledVector(vec3, float) on: 2016-08-26 00:12:10
What you're looking for is an FMA which also converts your vector from Euler angles to a quaternion and then rotates the quaternion in the direction of that quaternion based on the value you pass in...? Doesn't sound that difficult to work around.

Well working around is easy. I was just wondering if it's already in JOML and I missed it.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-08-24 20:16:29
Got a 3D low-poly character with an armature! Built it in 20 minutes initially, but it took 3 days for the weights to be properly applied.

If you're using Blender you should check out rigify for humanoid models.

As for what I did today: I finally got around to implementing a entity system and it works with my physics engine!

Also, I changed from my own math lib to JOML. This took FOREVER, and I'm still not completely done.
4  Game Development / Newbie & Debugging Questions / Re: JOML - quatf.addScaledVector(vec3, float) on: 2016-08-24 20:12:03
Assuming quatf to be a quaternion in floats, how will you add a vector to it? I think quaternions are only used for rotations and not translations or scalings.

Typically in physics engines you have a vec3 for angular velocity. This gets scaled by the step delta and added to the rotation quatf.
5  Game Development / Newbie & Debugging Questions / JOML - quatf.addScaledVector(vec3, float) on: 2016-08-22 13:38:25
Hello all. It's been awhile.

I started using JOML and finally decided to start the dreaded task converting my physics engine to use JOML.
Right now I'm looking for the JOML equivalent of quatf.addScaledVector(vec3, float), but I cannot find it. Is it just not there?

Also, what does the 'fma' in vec3.fma(float, vec3) stand for? It took me forever to find the function when I needed it!
6  Java Game APIs & Engines / OpenGL Development / Re: Skeletal animation problem(s) on: 2016-07-16 13:32:50
You should take a look at http://sauerbraten.org/iqm/
It's the successor of MD5. And the demo is super easy to port to Java.
 I would give you mine but it's some where in my pile and I made weird changes to it.
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-11 13:12:51
...
Now I have 2 weeks to f**k around and do some programming during office hours Smiley
Bahaha I do the same thing.
8  Game Development / Newbie & Debugging Questions / Re: 3D AABB Collision on: 2016-01-20 22:14:51
The blocks in minecraft would be best represented by AABBs. But the player is probably represented by a swept sphere. Super easy/fast collision detection between the two.
9  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 ups & fps counter goes crazy on: 2016-01-18 18:08:35
Your updates are independent of the frames the way you have it. There should be 1 update in a standard game-loop.

try something like this:
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  
public static void run() {
      long lastTime = System.nanoTime();
      long now;
      long timer = System.currentTimeMillis();
      double delta = 0;
      int frames = 0;
      while (running) {
         if (Window.shouldClose() == true) {
            stop();
         }

         now = System.nanoTime();
         delta = (now - lastTime) / (1000000000f / targetFps);
         lastTime = now;

         update(delta); //interpolate using the delta
         render();

         frames++;
         if (System.currentTimeMillis() - timer > 1000) {
            timer += 1000;
            System.out.println(frames + " fps");
            frames = 0;
         }
      }
      dispose();
   }
10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 ups & fps counter goes crazy on: 2016-01-18 17:48:12
It runs at 60 ups, 45157442 fps until I move it and then it goes to 63 ups, 3 fps. So the ups get higher and the fps get lower.

Well that's expected. If you don't want this to happen when you drag/resize then you have to cap your delta.

What is this loop technique called?

11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 ups & fps counter goes crazy on: 2016-01-18 17:30:27
I do this in my loop instead:
1  
2  
3  
4  
   
delta = (now - lastTime) / Final.NS;
lastTime = now;
update(delta);

12  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 ups & fps counter goes crazy on: 2016-01-18 17:15:15
When you drag or resize the window the program pauses. So when you stop dragging/resizing the elapsed time is greater.

Try capping the delta.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-12-29 14:06:38
p.s And I watched my old Source code (open source) - it looks horrible XD
In memory, he was much better,
I feel very sorry for it, but he was the best that I could write in past

Yeah you're truly never the best you can be. You can always get better. A year from now you will look at your current code and say the same thing!
14  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Java Blend, Blender DNA fully implemented in Java with R/W file access (beta) on: 2015-12-29 03:22:03
Man you must've had to read a ton to get this up and running. Good stuff!

Also, JMonkey does in fact load .blender files.
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-12-29 03:01:22
I was going to get a CBR650f. But since I will be travelling/commuting I want a more comfortable ride. With that in mind I chose the Vulcan S. It's the first bike I will be hitting the streets with (I used to dirt bike).

PS: I also love the Duke
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-12-28 14:47:20
...

I also ordered my motorcycle helmet! How was everyone else's holiday?

Nice I'm getting my bike soon. I started breaking in my boots!
17  Games Center / Showcase / Re: Block Shooter on: 2015-11-24 01:29:52
Keep it up. You're getting a lot done so fast.
18  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3.0.0b on: 2015-11-21 03:27:21
Sweetnessss.

EDIT: Was fixed
19  Game Development / Newbie & Debugging Questions / Re: jMonkeyEngine -- how much Math do I need to know? on: 2015-11-15 14:49:29
JMonkey will definitely help you with the exciting aspect of development.

It will also allow you to experiment in any way you can imagine. Since it includes a hefty suite of features, and is open source, you will be able to learn a lot very fast.

Whenever I'm in doubt I look at it's source code xP.
20  Game Development / Newbie & Debugging Questions / Re: Inertia tensor of aggregate mass on: 2015-11-14 14:14:54
Ahh yea that's it.
I remember this now from a physics class freshman year.
Thanks!
21  Game Development / Newbie & Debugging Questions / Inertia tensor of aggregate mass on: 2015-11-13 18:00:19
Hey guys. Anyone know how to get the inertia tensor of a bunch of masses in a tree?

Right now I'm just adding all the individual inertia tensors. I can't find any clear explanations
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-12 15:00:31
Some work on constraints:
(Ignore shadow issues, for now)
Click to Play
23  Game Development / Newbie & Debugging Questions / Re: 3D Maths and OpenGL -- how and where do I get started? on: 2015-11-11 18:05:02
I learned a lot from Linear Algebra class at my university. However, I needed more info related to computer graphics.
After searching around I came across this book. It's old but very handy: Mathematics for Computer Graphics Applications (mostly useful for if you get around to working on physics)


Also the best book on OpenGL has to be: Anton's OpenGL Tutorials

24  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-10 05:24:36
Some terrain collisions:
Still trying to fix the jitter issue with many boxes colliding.
Click to Play
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-09 00:18:21
This weekend's progress:
Still needs tweaking.
Click to Play
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-06 23:14:07
Working on a lightweight physics library for personal use. I'll most likely share it out

It's been 2 weeks of pain but I'm finally getting somewhere!

Lots to do and fix x.x

Click to Play
27  Discussions / Miscellaneous Topics / Re: What are your java conventions? on: 2015-11-04 04:30:59
I like to separate static members and put them on top.

1  
2  
3  
4  
private static final int NAME_SPACE = 0;
private static int name_space;

private int nameSpace;
28  Discussions / Miscellaneous Topics / Re: Battlestation Thread on: 2015-10-29 22:50:08
Need a bigger desk. But my apartment is tiny xP

29  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-26 21:47:14
Finally worked on my particle stuffs:
Click to Play
30  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-22 16:05:53
Sigh... try this:

This will solve the problems in the image you showed. But there is another that you probably haven't noticed yet.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
        for (int y = 0; y < 8; y++) {
              for (int x = 0; x < 8; x++) {
                 
               
               if(chunk.chunkBlockList[x][y] != null){
                     if (y == 7 || chunk.chunkBlockList[x][y + 1] != null) {
                         //has block on top
                        chunk.chunkBlockList[x][y].setType(BlockType.DIRT);
                     } else {
                         //is top block    
                        chunk.chunkBlockList[x][y].setType(BlockType.GRASS_TOP);
                       
                     }
               }
                 
              }
          }
Pages: [1] 2 3 ... 12
 
xTheGamerPlayz (76 views)
2016-09-26 21:26:27

Wave Propagation (275 views)
2016-09-20 13:29:55

steveyg90 (388 views)
2016-09-15 20:41:23

steveyg90 (388 views)
2016-09-15 20:13:52

steveyg90 (428 views)
2016-09-14 14:44:42

steveyg90 (452 views)
2016-09-14 14:42:13

theagentd (463 views)
2016-09-12 16:57:14

theagentd (395 views)
2016-09-12 14:18:31

theagentd (302 views)
2016-09-12 14:14:46

Nihilhis (734 views)
2016-09-01 13:36:54
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!