Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (582)
Games in Android Showcase (163)
games submitted by our members
Games in WIP (633)
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 ... 29
1  Discussions / General Discussions / Re: Programmer jokes on: 2015-05-29 22:35:22
Debugging tools are a godsend sometimes, and I pray to whatever man created them.

Her name is Grace Hopper.

                                                                                                                   
2  Discussions / Miscellaneous Topics / Re: What to really learn for commercial Java ? on: 2015-05-29 18:32:34
In my Enterprise job it's all Java, Groovy, JSON, XSD, and a few languages and APIs we've devised ourselves. I support client devs connecting to us in Java, C#, C++, Python, and so on. You'll never know everything you need for any particular task, just be ready to learn new stuff quick and how not to get stuck by any particular obstacle.
3  Discussions / General Discussions / Re: How many projects do you go through? on: 2015-05-28 20:49:35
I am always worknig on the same projects - I've been working on Fog and it's variations for a couple of years. But I never finish them! To be honest, I barely start them.
4  Discussions / Miscellaneous Topics / Re: What is your opinion about ... on: 2015-05-28 20:47:14
Actually, the IntelliJ debugger saved me hours of frustration at work today.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-28 20:45:40
I realized that I love messing about with graphics code, but the progress is very slow and it stops me getting anywhere. So I have gone into antigraphics mode, and am using good old Java 2D now. I am trying to be as ungraphical as possible for the next 6 months.
6  Discussions / General Discussions / Re: JGO coinage tally on: 2015-05-28 18:07:45
Good news! I did find those "girlfriend" ads rather upsetting.
7  Discussions / Miscellaneous Topics / Re: What is your opinion about ... on: 2015-05-28 16:30:09
I just click Compile-Run until I can't see the bugs any more.
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-28 16:28:05
I discovered there are online sevices to 3D print in stainless steel, so I did some tutorials on modelling for 3D printing. I am going to print the small high -strain parts of my telecope build, rather than relying on my ropey woodworking skills.

On the game front I conceptualized stuff for my mediaeval fantasy simulator.
9  Games Center / Showcase / Re: VERBAL - the fast-paced thinking word game on: 2015-05-28 11:16:10
A quick google shows me that some kind souls have uploaded my APK to their rival app stores:

https://www.google.nl/webhp?sourceid=chrome-instant&rlz=1C1CHFX_enNL510NL510&ion=1&espv=2&ie=UTF-8#q=APK+VERBAL+agnes&safe=active

Not sure if all these sites are trustworthy...?
10  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-05-28 11:09:47
This is a very generous offer and i would be up for a key too! RPC is exactly the sort of thinking mayhem I like.
11  Discussions / Miscellaneous Topics / Re: SourceForge seized GIMP for Windows' account on: 2015-05-27 22:34:26
I have a project on Sourceforge, about 12 years old and long abandoned. Hopefully sf-editor1 will pick up the project and keep it going "for the community".

SF used to be cool. As Marylin Manson says, flies will lay their eggs...
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-27 22:03:02
I finally understand how complex it is to access a SQL server from Java. I've been sitting here for at least an hour now trying to get the damn JDBC driver to work.

Blah.

Only one hour? So it's goiing pretty well then!
13  Discussions / Miscellaneous Topics / Re: What are your current personal projects? on: 2015-05-27 10:37:31
I've been working on optics simulations, which I am using as part of my telescope building project. I created a little blog for my results so far:

http://opticsandalgorithms.blogspot.nl/

But I was playing Dragon Age: Origins this weekend and now my mind is drifting back into a game programming mode. I'll probably never build that telescope...
14  Games Center / Showcase / Re: VERBAL - the fast-paced thinking word game on: 2015-05-11 19:56:07
I will put the APK somewhere accessible...
15  Games Center / Showcase / Re: VERBAL - the fast-paced thinking word game on: 2015-04-26 22:27:42
I don't know... I have never got an android emulator working myself Sad
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-04-11 22:49:40
Blogged. Because I'm sad.

http://opticsandalgorithms.blogspot.nl/
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-04-08 20:23:49
A giftastic post from me... I learned how to make animated GIFs in GIMP and made my first one, showing how my optical simulator builds up a diffraction pattern in a series of iterations (in this case, the pattern is the diffraction pattern formed by a newtonian telescope):

Click to Play
18  Game Development / Shared Code / Re: Curve fitting on: 2015-04-02 10:52:42
I'm really not keen on learning a bunch of fancy maths just to fit a curve. Fourier transforms are more interesting for the more general problem of transforming a telescope aperture to its Fraunhofer diffraction pattern, but ray tracing works fine for now.

Regarding the curve fitting problem that leaves me with... Firstly my curve fitting algo is not a general solution, it glitches severely for samples with a y value close to zero (amplitude errors up to 95%). I solved that problem by taking four samples and picking the pair of consecutive values furthest from zero. Changing from 12 samples per pixel to 4 samples per pixel obviously helps memory and reduces the size of my innermost loop by a factor of 3.

Secondly, the process needs to be quick enough for processing an image plane of 300x300 pixels. I find I can get a max error of ~0.04% in two seconds with just over 200 iterations per pixel. Two seconds is fast enough, given that the ray tracing itself is going to take between five minutes and five hours depending on the aperture being calculated.

I updated the pastebin with the small changes I've made to solve the glitchouts.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
Avg Error by curve fitting        : 0.00116%
Avg Error by rough curve sampling : 1.13904%
Avg Error by fine curve sampling  : 0.28740%

Max Error by curve fitting        : 0.03782%
Max Error by rough curve sampling : 3.40740%
Max Error by fine curve sampling  : 0.85551%

Steps for curve fitting           : 221
Millis taken for ccd              : 1994.1
Millis taken for program          : 2166.0
19  Game Development / Shared Code / Re: Curve fitting on: 2015-03-31 21:56:41
Thanks, I will have a look at these. I would like to understand FT, but I would need to understand it to a level where I knew the equations represent a physical reality. With ray tracing and simple addition of wavefronts, I know what I am doing because I avoid the mathematical sophistication. Whereas with FT, I can google some code and use it, but i can't check my own work yet.

For example, with my program I can compare the Airy disc of my current telescope to a larger one I am thinking of buying:



With the curve fitting however, all I am trying to do is get back to a sine curve from a minimum number of samples with least effort. At the moment, I am just getting amplitude by brute force by calculating lots of samples.
20  Game Development / Shared Code / Re: Curve fitting on: 2015-03-31 21:18:25
Yes, I am exactly emulating a fourier transform. I struggle to understand the FT maths but I do understand the physics, so I am building a simulation instead.
21  Game Development / Shared Code / Curve fitting on: 2015-03-31 11:03:34
I am doing some experiments with optics and ray tracing. This involves calculating the amplitude at various points across the image plane, given a known frequency and an unknown phase and amplitude. Currently I just generate a dozen points on the curve and pick the one with the highest amplitude, but not only is that lazy and inaccurate, it is also very expensive to generate a dozen samples per pixel of the image plane (it involves iterating over hundreds of thousands of samples of the source wavefront).

it would be better to generate two or three samples and then use some kind of curve fitting to get the amplitude. There is probably an algebraic method, but that would involve maths.

So here is my first stab at a curve fitting algorithm. It involves 200 iterations to get a curve match with an error of ~0.01%, although the method occasionally glitches out with an error of 1%.

Original: http://pastebin.java-gaming.org/f023f14592214

Edit: Latest: http://pastebin.java-gaming.org/23f4932542610

When I run it I get output like this:

Error by curve fitting        : 0.00263
Error by rough curve sampling : 1.17135
Error by fine curve sampling  : 0.28717
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-03-28 23:21:40
Carried on playing with Fraunhofer diffraction patterns.

23  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-03-27 10:21:10
I can now calculate the point spread function (Fraunhofer diffraction) for arbitrary telescope apertures using ray tracing.
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-03-08 15:12:49
Remember those little white dots that represented stars yesterday? I turned them into something a little more meaningful.

accidently messed up the generation and made a really huge star (in the real deal you have a better chance of winning the lotto then finding a star this size):

Super super tiny red dwarf:

An upper-sequence-minigiant star, but around as hot as ours irl.

A blue giant:

Note the positions, they are real stars in the real server-side universe (just displayed on the client)

+1 Appreciation for the seeming astronomical accuracy. Are the star type distributions based on galaxy structure (e.g. hot O,b B stars in the spiral arms, in clusters, older stars in the core, etc)?
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-03-07 12:17:17
I wrote a simple simulator for dew heater circuits to optimize my designs for dew heaters for my camera lenses.
26  Discussions / General Discussions / Re: GDC 2015 - various stuff on: 2015-03-05 20:24:53
That kite demo is just wrongg. A kite free of its line would fall to the ground. Smiley
27  Discussions / General Discussions / Re: The Khronos Group announces "Vulkan": the successor to OpenGL on: 2015-03-05 11:51:50
The underdog (AMD) always favors open standards, while the market leader (Nvidia) always prefers push their closed solutions. FreeSynch versus GSynch is another example.
28  Game Development / Newbie & Debugging Questions / Re: Libgdx How to task/thread/wait the start of the screen. on: 2015-03-04 18:11:10
An easy solution would be to throw away the first frame (just render a black screen), and start everything running on the second frame.
29  Discussions / General Discussions / Re: The Khronos Group announces "Vulkan": the successor to OpenGL on: 2015-03-04 15:27:18
Only 3? What about Imagination, ARM... This thing is supposed to run on all platforms, isn't it?
30  Discussions / General Discussions / Re: The Khronos Group announces "Vulkan": the successor to OpenGL on: 2015-03-04 11:22:11
Well done, AMD.
Pages: [1] 2 3 ... 29
 
Ralphanese (20 views)
2015-05-29 13:07:55

Gibbo3771 (17 views)
2015-05-29 06:54:17

Ralphanese (23 views)
2015-05-28 16:52:52

theagentd (31 views)
2015-05-27 22:21:17

theagentd (38 views)
2015-05-27 22:21:08

CopyableCougar4 (27 views)
2015-05-27 19:24:50

MrMapcom (24 views)
2015-05-23 20:26:16

MrMapcom (33 views)
2015-05-23 20:23:34

Waterwolf (39 views)
2015-05-20 15:01:45

chrislo27 (46 views)
2015-05-20 03:42:21
Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02
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!