Java-Gaming.org Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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 ... 11
1  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.
2  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();
   }
3  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?

4  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);

5  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.
6  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!
7  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.
8  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
9  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!
10  Games Center / Showcase / Re: Block Shooter on: 2015-11-24 01:29:52
Keep it up. You're getting a lot done so fast.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3.0.0b on: 2015-11-21 03:27:21
Sweetnessss.

EDIT: Was fixed
12  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.
13  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!
14  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
15  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
16  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

17  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
18  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
19  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
20  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;
21  Discussions / Miscellaneous Topics / Re: Battlestation Thread on: 2015-10-29 22:50:08
Need a bigger desk. But my apartment is tiny xP

22  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-26 21:47:14
Finally worked on my particle stuffs:
Click to Play
23  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);
                       
                     }
               }
                 
              }
          }
24  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-22 14:38:09
You're looking at it the wrong way.
25  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-22 13:24:09
I'll give you a hint. That's only part of the problem.

1  
2  
        for (int y = 0; y < 7; y++) {
              for (int x = 0; x < 8; x++) {
26  Games Center / Showcase / Re: VSim - A 3D Vehicle Simulator on: 2015-09-22 04:13:37
This is really fun xD I suck though I only managed to get up to 75mph
27  Game Development / Newbie & Debugging Questions / Re: OpenAL - AL_MAX_DISTANCE on: 2015-09-22 01:35:10
I figured it out and had forgotten about this post.

@SkyAphid I think that was the issue. I don't remember

Thanks guys.
28  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-21 23:57:36
There's an obvious pattern there. You can do it.
29  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-21 19:20:52
Well is that the top of that chunk?

Draw the bounds of the chunks. So that you can visualize better.
30  Game Development / Newbie & Debugging Questions / Re: LibGDX top grass tiles on: 2015-09-21 19:02:53
You're using

1  
chunkBlockList.length


Edit: Oh you fixed it.
Pages: [1] 2 3 ... 11
 
IanParcs (48 views)
2016-04-18 14:18:53

KaiHH (46 views)
2016-04-18 08:35:41

KaiHH (76 views)
2016-04-15 12:43:58

theagentd (79 views)
2016-04-14 02:16:17

theagentd (94 views)
2016-04-14 02:15:43

IanParcs (106 views)
2016-04-12 03:51:16

IanParcs (48 views)
2016-04-12 03:50:03

IanParcs (44 views)
2016-04-12 03:49:54

IanParcs (39 views)
2016-04-12 03:49:52

IanParcs (49 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30
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!