Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (762)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (847)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 153 154 [155] 156 157 ... 202
  ignore  |  Print  
  What I did today  (Read 2714942 times)
0 Members and 6 Guests are viewing this topic.
Offline VaTTeRGeR
« Reply #4620 - Posted 2016-08-22 18:53:18 »

@SHC
And it wouldn't be Microsoft if the loading bar wasn't at 20% while the dl-size is at 104% and the downspeed isn't even shown  Grin
Offline orange451

JGO Kernel


Medals: 419
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #4621 - Posted 2016-08-22 20:55:47 »

Yeah your first mistake was going to Southern instead of Tech. Are you hoping to transfer over?
Was thinking about it, but it's far cheaper here.

First Recon. A java made online first person shooter!
Offline lcass
« Reply #4622 - Posted 2016-08-22 21:31:18 »

Started rewriting my entire graphics engine , to be perfectly honest the previous one was pretty shoddy now looking at it. For the things I wanted to do it had too much overhead and required lots of micromanagement by the above programs. I have designed my new one to be much simpler to use with the core graphics handler class dealing directly with the openGL side of things and the renderer class dealing with with the graphics handler , interactions between world objects and the conversion of world coordinates to screen coordinates all with minimal input from the higher level classes. It has limitations in that it will only render squares ( tile based game so it doesn't make too much difference to the total function ) , the renderer can handle a maximum number of objects before it just starts declining them however this will always be precalculated by the world so that if it does happen something has probably gone wrong. All of the graphics handler is extendable up to the limit of the system though so it should work just fine for that , it's also made so that all my previous code will not require too much modification and if anything should become a lot simpler than previous especially in terms of memory efficiency which was my previous issue.

The graphics handler is the only class that will deal with floatbuffers and because of this memory leaks will hopefully be non existant , this class also directly deal with all of the vbo's and because of this no other classes are required to have a cleanup method.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slyth2727
« Reply #4623 - Posted 2016-08-23 02:40:30 »

Learning raymarching again as when I first messed with it I didn't bother to go through and understand the math - it's really fun. I like math. I managed to implement hard shadows and reflections by myself (although they're both a little off and not exactly correct). It looks decent at least imo. But I doubt the lighting is anywhere near accurate.

https://www.shadertoy.com/view/llcGDB

And I've got to share this, I think my therapist and I found good meds for me and I'm feeling really really great, haven't felt this happy in years. Life is going really well now. I feel happy and good about things, being really optimistic which was becoming too irregular. Smiley
Offline philfrei
« Reply #4624 - Posted 2016-08-23 21:20:59 »

Started rewriting my entire graphics engine , to be perfectly honest the previous one was pretty shoddy now looking at it...
It is so much better to have tried, and learned from the process, than done nothing at all.

music and music apps: http://adonax.com
Offline lcass
« Reply #4625 - Posted 2016-08-23 21:32:53 »

Started rewriting my entire graphics engine , to be perfectly honest the previous one was pretty shoddy now looking at it...
It is so much better to have tried, and learned from the process, than done nothing at all.
And then try again and fail because you can't write GLSL XD.
Offline Slyth2727
« Reply #4626 - Posted 2016-08-23 22:09:25 »


Ahah I'm not surprised, it's terribly inefficient code! All for the learning
Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #4627 - Posted 2016-08-24 10:45:50 »

To resolve some sound smoothness issues in Vangard I did some analysis of the times logic frames are taking. On average they take 20ms on my laptop with a target of 30fps, so the frame times looked ok. However I then counted the logic frames for each logic frame duration and found that although the vast majority were 16ms or less, 10% of the frames were over 33ms, so the CPU was spending a lot of time at full utilization on all cores.

I don't know how solveable the issue is. some of the spikes are probably due to my code, GC and so on, but sometimes the PC just has to do other stuff and with the CPU almost fully utilized by the game only bad things can happen.

For now i have simply provided a parameter to control world size. My laptop seems happy with 36km2, while I guess my fancy desktop can handle the original 100km2.

Offline theagentd
« Reply #4628 - Posted 2016-08-24 13:29:25 »

Did two major things today.

First I wrote a small Blender plugin for exporting meshes as files for our engine. It's not complete yet, but is fully usable with static (unanimated) meshes so far.

Secondly, I finally, after something like 2 years, managed to get perfect normal mapping working. When I initially researched normal mapping a long time ago, I settled with the algorithm that was the easiest to implement. I found a super convenient algorithm that didn't require tangents or bitangents, so I went with that. However, there were always some subtle problems. For handmade normal maps that were just made to add details/unevenness to the normal it worked well, but for baked normal maps (normal maps generated from a high-poly model applied to a low-poly model) it didn't give good results because those baked normal maps relied on the engine doing the exact same calculations as the generator did. As a test model, I used a simple cube with smoothed normals (as if it was a sphere essentially) which had a normal map applied to it to make the flat areas, well, flat while keeping some smoothing around the edges of the cube. This was one of the worst cast scenarios, as it relied on that the gradients in the normal map exactly cancelled out the smoothed normals. Even an extremely tiny error there was enough to cause a high-specular surface to look wobbly and uneven.

Here's the cube without a normal map:


Here's the cube with a baked normal map using the old tangent-less algorithm:


Here's the cube with the same normal map using the new correct algorithm:



Ehhhh let's just call it a slight improvement, shall we?

Myomyomyo.
Offline Roquen

JGO Kernel


Medals: 517



« Reply #4629 - Posted 2016-08-24 13:32:21 »

Speaking of normals.  http://blog.selfshadow.com/publications/blending-in-detail/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SHC
« Reply #4630 - Posted 2016-08-24 19:05:56 »

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.


Offline KudoDEV

JGO Ninja


Medals: 79
Exp: 6 years


Game Dev Hobbyist


« Reply #4631 - Posted 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.

Offline lcass
« Reply #4632 - Posted 2016-08-24 22:44:05 »

Got my new renderer working and my god it is so much simpler to use , GUI's and stuff are still a *bit* of a challenge requiring a seperate set of buffer storage. It would be great to know how people usually handle modular layering.
Offline philfrei
« Reply #4633 - Posted 2016-08-25 04:51:39 »

I got some good debugging done for something I'm calling an "Allenspace Sound Generator". It makes a continuous, spacey collection of sine waves, with some controls for the generation rate, the envelopes, the number of tones per cluster and basic pitch spread and pan spread. There is also a weird gizmo called a "flibber" which basically intermixes tracks rather than mixing them. This gizmo was an attempt to recreate a faulty version made unintentionally that had some bizarre multi-threading issues and is very glitchy sounding.

At this point the GUI is totally placeholder, making use of a single slider tool that only shows a label and outputs a normal (0..1). AND IT HAS NOT BEEN GIVEN MUCH TESTING and will crash (turn non-functional) if you just hit "Start" without moving ALL the sliders first. If you want to give it a try, I recommend first putting all the sliders near the middle and working from there. Or wait until I figure out a reasonable GUI.
GUI is now more informative if not particularly friendly. Now has reasonable initial settings so can just hit play and get something. One highly intermittent known bug remains, though.

http://www.java-gaming.org/user-generated-content/members/27722/allenspace.jar

I am a bit fried and will give it the GUI more work as a side priority over the next week or two, probably. It potentially could also be run from the jar via an api, if you have a need for some spacey atmospherics.

Sounds pretty cool: get two running at the same time, and have one "flibber" and the other straight. I want to expose some controls over the "flibber" parameters, and investigate adding various forms of lfo modulation to the sines.

*

Did some research on freesound.org, for rain and wind-in-trees, for candidates effects to use in Vangard. I think I have found a couple improvements over the first wind-in-trees attempt. In the next while, I'll be expanding the api to allow ags1 to directly trigger audio events that are part of the sound-scapes. Right now she can only manipulate the volumes, not the trigger events or control the stochastic timing algos. A future api will allow the ability to control the stochastic timings as well. For the first pass (built over the last few weeks), I just wanted to get something that would work, sound decent, and could be a placeholder for a while. (The jar is 1MB and runs solo at about 1% cpu on my PC.)

*

So what I really wanted to get to today was this:

> downloaded LWJGL
> set up a project in Eclipse
> got the red block "HelloWorld" program to run (with some fussing, trying to figure out what they meant when referring to "your natives" and how to specify launch arguments which I hadn't done before)

The hello world program didn't run on my laptop (GLFW_API_UNAVAILABLE error. but it IS running on my desktop. Yay!

Also gathered up locations of documents for study including an example of audio playback via OpenAL. The goal is to be able to output my audio over OpenAL, via LWJGL.

music and music apps: http://adonax.com
Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #4634 - Posted 2016-08-25 17:13:26 »

I've spent the last couple of lunchtimes building up a little village generator:

https://www.jdoodle.com/a/13E

Currently it builds a grid, puts down some random trees and one instance of each building type, and then adds random roads. Next steps are add more organized town planning and then connect up the roads.

Offline SkyAphid
« Reply #4635 - Posted 2016-08-25 21:36:01 »


Are we allowed to talk about modeling shenanigans? I learned to model about three weeks ago, here's my third model for me and theagentd's secret project we'll be unveiling soon (it's almost finished!). I think it came out cool.

I actually made his aforementioned patented TESTCUBEâ„¢ for his normal tests too. Since I learned to model, we've been a lot more robust and faster with our developments.

it just werks
Offline Slyth2727
« Reply #4636 - Posted 2016-08-26 00:11:27 »

I got some good debugging done for something I'm calling an "Allanspace Sound Generator". It makes a continuous, spacey collection of sine waves, with some controls for the generation rate, ...

That sounds really neat, I've been wanting to get into audio for a little while now. I've always wondered, how do you take the audio data you generate and actually use it and output a sound? Is there something in the Java SDK that allows you to create sound from custom data?
Offline philfrei
« Reply #4637 - Posted 2016-08-26 03:39:47 »

I got some good debugging done for something I'm calling an "Allanspace Sound Generator". It makes a continuous, spacey collection of sine waves, with some controls for the generation rate, ...

That sounds really neat, I've been wanting to get into audio for a little while now. I've always wondered, how do you take the audio data you generate and actually use it and output a sound? Is there something in the Java SDK that allows you to create sound from custom data?

Yes. The standard "java way" is to use javax.sound.sampled.Clip or javax.sound.SourceDataLine for output of .wav files. But with SourceDataLine, you don't have to use a wav as the source, but can feed it your own sound data.

I'm happy to get into specifics or answer questions, but they are probably best put on the Sound/Audio thread. Or feel free to message me.

music and music apps: http://adonax.com
Offline Slyth2727
« Reply #4638 - Posted 2016-08-26 20:51:56 »

Yes. The standard "java way" is to use javax.sound.sampled.Clip or javax.sound.SourceDataLine for output of .wav files. But with SourceDataLine, you don't have to use a wav as the source, but can feed it your own sound data.

I'm happy to get into specifics or answer questions, but they are probably best put on the Sound/Audio thread. Or feel free to message me.

Ah, I thought it would be something like that. I'll do a bit of my own research and maybe start a new little project. Thanks! Smiley
Offline Archive
« Reply #4639 - Posted 2016-08-26 23:20:20 »



Added dithering as an alternative to bilinear texture filtering! Zoom in the picture to see what im talking about Smiley
basil_ introduced me to this by showing me a picture of it in action in Unreal Engine 1 and so I finally got around to implementing it Tongue

Offline orange451

JGO Kernel


Medals: 419
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #4640 - Posted 2016-08-27 18:52:29 »

Trying to fix my weights...





Cant figure out why his fingers are broken Sad

First Recon. A java made online first person shooter!
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #4641 - Posted 2016-08-27 20:03:07 »

matrix-drift ?
Offline orange451

JGO Kernel


Medals: 419
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #4642 - Posted 2016-08-27 21:11:29 »

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

First Recon. A java made online first person shooter!
Offline Wave Propagation
« Reply #4643 - Posted 2016-08-27 21:29:20 »

I implemented a Ray Caster in addition to my Path Tracer in my 3D-engine. They're both realtime.

Ray Caster:


Path Tracer:
Offline orange451

JGO Kernel


Medals: 419
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #4644 - Posted 2016-08-27 21:50:40 »

If it's realtime, post a gif! Smiley

First Recon. A java made online first person shooter!
Offline Wave Propagation
« Reply #4645 - Posted 2016-08-27 21:58:01 »

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: http://www.dayflower.org/
Offline orange451

JGO Kernel


Medals: 419
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #4646 - Posted 2016-08-27 22:03:29 »

Have you tried sharex?
Has a decent gif recorder, and uploads straight to imgur as a gif/gifv
Smiley

First Recon. A java made online first person shooter!
Offline Wave Propagation
« Reply #4647 - Posted 2016-08-27 22:20:45 »

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: https://www.youtube.com/watch?v=EZUn-aJ-ocs&feature=youtu.beMmB9b5njVbA
Offline boxsmith
« Reply #4648 - Posted 2016-08-29 01:21:12 »

Secondly, I finally, after something like 2 years, managed to get perfect normal mapping working.

That looks very good. Is this using a port of Mikkelsen's tangent space generator, or something else?
Offline theagentd
« Reply #4649 - Posted 2016-08-29 06:13:46 »

Secondly, I finally, after something like 2 years, managed to get perfect normal mapping working.

That looks very good. Is this using a port of Mikkelsen's tangent space generator, or something else?
Indeed, but after staring at mikktspace.h for a couple of weeks I just said "f**k it" and wrote a Blender plugin and exported it all from Blender instead (Blender uses it too).

Myomyomyo.
Pages: 1 ... 153 154 [155] 156 157 ... 202
  ignore  |  Print  
 
 

 
EgonOlsen (368 views)
2018-06-10 19:43:48

EgonOlsen (374 views)
2018-06-10 19:43:44

EgonOlsen (305 views)
2018-06-10 19:43:20

DesertCoockie (549 views)
2018-05-13 18:23:11

nelsongames (874 views)
2018-04-24 18:15:36

nelsongames (857 views)
2018-04-24 18:14:32

ivj94 (1318 views)
2018-03-24 14:47:39

ivj94 (437 views)
2018-03-24 14:46:31

ivj94 (1100 views)
2018-03-24 14:43:53

Solater (449 views)
2018-03-17 05:04:08
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
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!