Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (746)
Games in Android Showcase (226)
games submitted by our members
Games in WIP (827)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 ... 6 7 [8] 9 10
 on: 2018-01-06 14:25:13 
Started by UnuntuMDJ - Last post by UnuntuMDJ

Regular video report of my neural network result. Added enemies and you can see, that agents starts to avoid them. On the video, agents trained about 40 min and was chosen 8 best for continue training. I was used genetic algorithm combined with neural network. Signals of agent are: 1-agent's health, 2-closer food distance, 3-closer food angle, 4-closer enemy distance, 5-closer enemy angle; Agent can see only on his view field (gray circle).
Agent needs for increment his fitness for reproduction. It's depends on food eaten (fitness increment) or enemy contact (fitness decrements).

P.S. It is continue of the topic "Neural Network and Qlearning. Survival agents."

<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

 on: 2018-01-06 14:11:40 
Started by cybrmynd - Last post by cybrmynd
So I've been spending a few hours a day trying to understand linear interpolation. My understanding of the concept has improved, as I didn't understand the math behind it previously. I decided to get graph paper so I could understand it a better, and Jamie King and bunch of other guys have some hands on demonstration about how it works which was handy.

The demonstration gave me a clue as to how linear interpolation works, so I decided to give it a shot. I wrote a new Vector2f method like so.

   public Vector2f lerpT(Vector2f currentPos, Vector2f newPos, float alpha)
    return currentPos.scale(1f - alpha).add(newPos.scale(alpha));
    //return Vector3f point1 + alpha * (point2 - point1);

And my main class is like so:
public class Main {

    public static void main(String[] args) throws IOException {

public static void init() {

   Vector2f currentPosition = new Vector2f(70f,68f);
   Vector2f newPosition = new Vector2f(57f,80f);

    Vector2f lerpPos = new Vector2f().lerpT(currentPosition, newPosition, 0.5f);

    System.out.println("Testing LERP: " + "5/01/2018" + "\n");

This is what gets printed out into the console.

x: 63.5

I calculated the formula from a graph I made and with a calculator and I get the same values in the x and y's lerpPos vector that is calculated in the code. I also changed it to Vector2f to make it simpler. And instead of LWJGL I decided to make a simple console program in java.

While I understand it a bit more, I'm unsure how I'm supposed to use a velocity vector with the lerp function so I can give something some acceleration(?). I see how the alpha in the formula is important, but I'm unsure how to utilize it.

If anything, I'd like to tryout some easing in and easing out, but the witchcraft needed seems a little bit over my head just at this moment.

Any help or suggestions would be much appreciated.

 on: 2018-01-06 10:19:29 
Started by NuclearPixels - Last post by ral0r2
You should really go with whatever you prefer. It's pretty hard for us to give you any meaningful feedback without seeing it in action, in a video or something.

But it's your game. We're all just going to have random opinions. What do you think?

I completly agree with that. Everyone has a different preference regarding graphics and you wont be able to satisfy everybody.
They are definitely not ugly though (imo) if you like them you should use them. Smiley

 on: 2018-01-06 09:31:17 
Started by CommanderKeith - Last post by CommanderKeith
@nsigma I hadn't heard about the Creatures games, what a great concept!

Yes!  Highly recommend the book he wrote about developing it - Creation: Life and How to Make It.  Just found this post from 2016 too which is interesting, and to quote "But all the computer power in the world is no help unless you know how to build a mind, and despite all the ridiculous hype surrounding AI at the moment, most people really don’t."  That kind of sums up my own feelings on the topic!  Smiley

He sounds like a very interesting person. I'll try to find that book and give it a read. It's funny though, the reviews on Amazon are very extreme on both sides. This one is very negative:

@opiop, nice work being a programming teacher, must be fun. What language do they make the students learn? At my local university they seem to mostly do Java and python.

 on: 2018-01-05 19:35:22 
Started by BurntPizza - Last post by KaiHH
Added another optimization to JOML's matrix classes to accelerate invert() and normal() calls. JOML already has plenty of "intelligent"/conservative tracking of the properties of a matrix stored in a byte bitset as the user calls operations/methods on it. Many operations already benefit from it, most notably whether the matrix is affine (preserved by all operations except perspective() and frustum()). Those optimizations are benefitial in typcal usage scenarios found in most applications. Now, it is tracked whether the matrix still is affine _and_ its upper-left 3x3 submatrix orthogonal (preserved by all operations also preserving affinity except anything that applies scaling), in order to accelerate invert() (and normal() to compute a normal matrix) calls.
Runtimes (measured with JMH) of Matrix4f.invert() based on properties of the matrix:

Arbitrary matrix: 22.42 ns.
Affine matrix:    12.64 ns.
Orthogonal matrix: 4.66 ns.  <-- this is new
Identity matrix:   0.46 ns.

 on: 2018-01-05 18:17:11 
Started by CommanderKeith - Last post by Opiop
Happy new year everyone!

We had a topic for the 2017 new year, here was my response:

2016 was a decent year for me, not as insane as 2015 (thank god), but I feel like I got a lot done. In 2017 I want to;

- Get a raise at work. I found out I'm being significantly underpaid (even for someone in my situation), which sucks because I love my work and the people. I just want to be paid how much I'm worth.

Well, I now teach software development to newbies, so I actually accomplished this goal! Off to a good start Smiley

- Go on (a small) tour with my band and release our first EP

Didn't get either of these done, although we did record the EP. We're just waiting to release it early 2018. But the tour? Lol. Yeah, no that didn't happen.

- Finish a couple of personal projects that I'm interested in. This will be good for my resume and for sharpening my skills

I finished a few projects, but nothing I would put on my resume. I also finished way more non-programming projects.

- Post a new picture to my Instagram account at least every week. This means going out and exploring new places! I've thoroughly explored the closest towns near me, now I want to start branching out and finding new areas

I actually mostly accomplished this! But I don't do a picture a week, I do one a day! I've had large gaps of days where I don't do it but I'm alright with that, because I like photography and I don't want to make myself hate it.

- Actually commit to working out. I move around far less now that I'm a full time software developer and I don't want to pack on fat!

Good news! Still not fat. Bad news, I didn't really commit to working out as much I would have liked to. I still work out occasionally, but not as much as I told myself I would at the beginning of the year.

- Continue to teach new developers at work and hopefully hone that skill. I love teaching, but I need to figure out what works and what doesn't

Well... I teach new developers for a living now so  Grin

- Limit the amount of time I spend zoning out on Reddit, be more productive in general

I actually deleted my Reddit account! So yay  Cheesy

I think mid to late 2017 I started to realize that I don't like "just" being a software developer. I love building software, but I hate the idea of working in another office. Working on projects I don't care about for someone else makes me feel just terrible. I have nightmares about working in another office again. But I love working for myself and trying to start profitable projects. I also really started to understand that I love photography and playing music. So in 2018 I would love to continue to develop my skills as a photographer and musician, and I'd also like to start building out my ideas for businesses so that hopefully in late 2018/2019 I can maybe work for myself!

 on: 2018-01-05 13:10:02 
Started by Ask_Reply - Last post by princec
Sigh... this is why we can't have nice things.

Cas Smiley

 on: 2018-01-05 12:33:41 
Started by Ask_Reply - Last post by Tom43

Thanks for the link

 on: 2018-01-05 12:29:44 
Started by CommanderKeith - Last post by Tom43
Happy new year!!  Grin Wink

 on: 2018-01-04 23:55:14 
Started by mateuszd - Last post by ral0r2
I like it. Good to see you making progress, keep it up! Smiley

Pages: 1 ... 6 7 [8] 9 10
xxMrPHDxx (70 views)
2017-12-31 17:17:51

xxMrPHDxx (35 views)
2017-12-31 17:15:51

xxMrPHDxx (40 views)
2017-12-28 18:11:33

Ecumene (211 views)
2017-09-30 02:57:34

theagentd (310 views)
2017-09-26 18:23:31

cybrmynd (356 views)
2017-08-02 12:28:51

cybrmynd (396 views)
2017-08-02 12:19:43

cybrmynd (365 views)
2017-08-02 12:18:09

Sralse (335 views)
2017-07-25 17:13:48

Archive (1080 views)
2017-04-27 17:45:51
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 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!