Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 ... 10
 on: 2016-08-28 09:23:05 
Started by Exonto - Last post by theagentd
Depending on how your map looks, hierarchical pathfinding may have problems. Consider a chunk where the a river crosses it horizontally. In this case, the chunk is "enterable" from all four sides, but it's not possible to go from the top to the bottom and vice versa, and if you enter on the top right you can only exit at the top and top left. The chunk is essentially two completely separated areas in this case. Another funny case is if you have a chunk which only the corners are walkable. Again, all 4 directions are technically enterable, but you can't really go anywhere from there. Handling cases like that is the most complex part of implementing hierarchical pathfinding.

 on: 2016-08-28 08:53:35 
Started by Exonto - Last post by VaTTeRGeR
Search for hierarchical pathfinding.
You basically create graph(s) with different levels of detail so that you only need to use full pathfinding for the nearest tiles.

chunks work well with this, you can build a graph from these chunks:
-every connected walkable area in chunk is a distinct node
-if node B can be reached (with A*) from node A => connect nodes with an edge
-do this only for chunks that are touching on the edge/corner to limit graph complexity

this graph should be much faster to navigate in, just do it in real-time
You can do this simplification multiple times for even more granularity.

 on: 2016-08-28 06:30:18 
Started by Exonto - Last post by Exonto
I have a situation where I am using the A* pathfinding method to move a creature across a tile based world.
This particular world can be extremely large and has many obstacles obstructing a creature's path (trees in this case).
When calculating paths over semi-short distances there is not a problem. However, there are huge freezes which take
place when I try to calculate a path over three hundred tiles away (or so). And yes this is because I haven't multi threaded
pathfinding yet, but I feel it would still be too slow even after threading it.

Anyways, here's a picture to give you a sense of the scale.

That isn't even the whole world, the minimap only shows 200 x 200 tiles whereas the full world may be infinite in size depending on the world generation rules.

I have heard that certain games, such as dwarf fortress I think? Split up their worlds into regions and somehow use those regions to improve the performance
of the pathfinding. Conveniently, I already have every world split up into 16 x 16 chunks which are currently acting as a method to define biomes, but I'm thinking
I can also use them for the purpose of quicker pathfinding.

I am not sure how this mechanically works. I am thinking the way this functions is that a path from the center of each region to all adjacent regions is calculated
and then cached, but I'm not sure. Not to mention that would significantly decrease shortest path accuracy.

So how can I use world regions to help improve long distance pathfinding? Or if there's a better way in general, please let me know Smiley.

I now realize this probably belongs in the artificial intelligence section.

 on: 2016-08-28 00:10:05 
Started by DayTripperID - Last post by gouessej

Maybe my schema and my short explanation can help you:

I use the Fettle API, it's used in Candy Crush too.

 on: 2016-08-27 22:20:45 
Started by BurntPizza - Last post by Wave Propagation
Thanks for that tip! I did install it and have to learn it. But then I can do it. It looks great though. Smiley

Edit: I've now uploaded a video to YouTube:

 on: 2016-08-27 22:03:29 
Started by BurntPizza - Last post by orange451
Have you tried sharex?
Has a decent gif recorder, and uploads straight to imgur as a gif/gifv

 on: 2016-08-27 21:58:01 
Started by BurntPizza - Last post by Wave Propagation
I have tried to find a program to record it, but none of them have worked for me. But I can tell you the Path Tracer isn't fast. Some scenes, but not the one shown here, do have an FPS of around 100 or so, although the image will still be grainy and converge over time. The image of the Path Tracer took quite a long time to render (maybe an hour, I'm not sure).

Edit: More images can be found at:

 on: 2016-08-27 21:50:40 
Started by BurntPizza - Last post by orange451
If it's realtime, post a gif! Smiley

 on: 2016-08-27 21:29:20 
Started by BurntPizza - Last post by Wave Propagation
I implemented a Ray Caster in addition to my Path Tracer in my 3D-engine. They're both realtime.

Ray Caster:

Path Tracer:

 on: 2016-08-27 21:11:29 
Started by BurntPizza - Last post by orange451
matrix-drift ?
Did a quick search. From what I can see that's because of rotation and scale being stored in the same components of a 4x4 matrix?

However, I don't have any scaling in my vertex skinning Sad

Pages: [1] 2 3 ... 10
roseslayer (488 views)
2016-08-06 11:43:29

roseslayer (446 views)
2016-08-06 09:43:11

xTheGamerCodes (520 views)
2016-08-04 15:40:59

xTheGamerCodes (513 views)
2016-08-04 15:40:24

orrenravid (861 views)
2016-07-16 03:57:23

theagentd (940 views)
2016-07-11 14:28:54

Hydroque (1034 views)
2016-07-06 05:56:57

Hydroque (1022 views)
2016-07-03 08:52:54

GrandCastle (838 views)
2016-07-01 09:13:47

GrandCastle (640 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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‑
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!