Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (798)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 62 63 [64] 65 66 ... 214
  ignore  |  Print  
  What I did today  (Read 3437494 times)
0 Members and 4 Guests are viewing this topic.
Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #1890 - Posted 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)?

Offline KaiHH

JGO Kernel


Medals: 708



« Reply #1891 - Posted 2015-03-08 15:57:07 »

Remember those little white dots that represented stars yesterday? I turned them into something a little more meaningful.
That's cool. Becoming Celestia 2.0? Wink
Offline lcass
« Reply #1892 - Posted 2015-03-08 21:08:02 »

Worked on tile placement today , made it so that each Tile has a specific array of accepted types that can be placed onto it , a wall has only one which is cable holder. For example a SubTile may have the type 3(specific for the cable holder) and you may attempt to place it onto a lattice , lattice accepts type 2 so nothing will be placed.

Plus a cable and supply system has been implemented with power being transferable through the ship by cables. An example.

Looks very cool.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Pauler
« Reply #1893 - Posted 2015-03-08 21:54:21 »

Got jelly from Emmsii and SwordsMiner.





Click to Play
Offline lcass
« Reply #1894 - Posted 2015-03-09 16:10:03 »

Got jelly from Emmsii and SwordsMiner.





Click to Play

Your third system would fall apart very quickly , the outer planet is moving faster than the inner ones , if that is the required orbit velocity at that radius then the other two will fall into the star , if it is moving too quickly it will fly off into space. Still very cool effects , would be great to see where these space projects go.
Offline Longor1996

JGO Wizard


Medals: 116
Projects: 2
Exp: 8 years


The cake is probably a lie.


« Reply #1895 - Posted 2015-03-09 17:17:52 »

I too, made a galaxy. (ignore the generation artifacts)



(this screenshot was made two years ago)

The cake is probably a lie... but it's a delicious lie!
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 486
Exp: 7 years



« Reply #1896 - Posted 2015-03-09 18:29:08 »

Next thing you know you're renting super computer time trying to model the universe...
Nah, it's actually pretty neat:
http://news.discovery.com/space/galaxies/mind-blowing-computer-simulation-recreates-our-universe-140507.htm
Offline lcass
« Reply #1897 - Posted 2015-03-09 18:50:11 »

Just wrote this , thought it looked quite weird, what do you think?
1  
2  
cable = (sub != null);
electric = (sub != null);

I very rarely use the syntax like this usually it's a set of if statements for the readability , any performance enhancements to using this, I can guess a few less processor calls.
Offline Mac70
« Reply #1898 - Posted 2015-03-09 20:35:47 »

Just wrote this , thought it looked quite weird, what do you think?
1  
2  
cable = (sub != null);
electric = (sub != null);

I very rarely use the syntax like this usually it's a set of if statements for the readability , any performance enhancements to using this, I can guess a few less processor calls.

Compiler should take care of duplicate statements and optimize them, but codewise avoiding duplicate statements is (almost always) a good practice.
Offline Olo

JGO Coder


Medals: 15
Projects: 3
Exp: 5 years


Metaphysical solipsism AFFIRMS your existence


« Reply #1899 - Posted 2015-03-09 23:21:41 »

You can make it weirder and do it like this:
1  
cable = electric = (sub != null);

-Can you fix it?
-No, I can't. But I can bypass it with one of these.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ClaasJG

JGO Coder


Medals: 43



« Reply #1900 - Posted 2015-03-10 06:44:13 »

1  
cable = electric = sub != null;

My english has to be tweaked. Please show me my mistakes.
Offline quew8

JGO Knight


Medals: 53



« Reply #1901 - Posted 2015-03-10 08:53:57 »

...
Your third system would fall apart very quickly , the outer planet is moving faster than the inner ones , if that is the required orbit velocity at that radius then the other two will fall into the star , if it is moving too quickly it will fly off into space. Still very cool effects , would be great to see where these space projects go.

I agree. And it can be proven mathematically. If you equate the gravitational force with the centripetal force:

F = G*m*M / (r^2) = m*(v^2) / r

Where G is the gravitational constant, m is the mass of the satellite, M is the mass of the sun, r is the radius of the orbit and v is the tangential velocity of the satellite.

Cancelling 'm's and 'r's.

G*M / r = v^2

Since G and M are constant, the speed is inversely proportional to the square root of the radius. The greater the radius, the smaller the velocity.

You can use v = w*r to find the angular velocity.

G*M / r = (w*r)^2

G*M / (r^3) = w^2

Hence the angular velocity is inversely proportional to the radius to the power 3 / 2.

It seems like you've gone to a lot of effort to make the star types and positions, it'd be a shame if your orbits weren't right.

 
Offline Roquen

JGO Kernel


Medals: 518



« Reply #1902 - Posted 2015-03-10 09:25:32 »

kepler
Offline ClaasJG

JGO Coder


Medals: 43



« Reply #1903 - Posted 2015-03-10 11:46:48 »

I already danced 20mins. There is not even a entry in the log file Sad.
You know what? It was the code I wrote that bugged eclipse out...
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  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
package cjg.fworld.editor.project;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProjectFolder {

   private static final Logger LOGGER = LoggerFactory
         .getLogger(ProjectFolder.class);
   private final Path folder;

   private final List<ProjectFolder> subFolder, subFolderShadow;

   ProjectFolder(final Path folder) {
      this.folder = folder;
      this.subFolder = new ArrayList<>();
      this.subFolderShadow = Collections.unmodifiableList(subFolder);

      try {
         Files.newDirectoryStream(folder).forEach(
               path -> subFolder.add(new ProjectFolder(path)));
      } catch (final IOException e) {
         LOGGER.error("Error loading subfolders.", e);
      }
   }

   public List<ProjectFolder> getSubFolder() {
      return subFolderShadow;
   }
}
This wont compile and throws an error dialog in my face.
But the moment I change the code,
eclipse works fine:
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  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
package cjg.fworld.editor.project;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProjectFolder {

   private static final Logger LOGGER = LoggerFactory
         .getLogger(ProjectFolder.class);
   private final Path folder;

   private final List<ProjectFolder> subFolder, subFolderShadow;

   ProjectFolder(final Path folder) {
      this.folder = folder;
      this.subFolder = new ArrayList<>();
      this.subFolderShadow = Collections.unmodifiableList(subFolder);

//      try {
//         Files.newDirectoryStream(folder).forEach(
//               path -> subFolder.add(new ProjectFolder(path)));
//      } catch (final IOException e) {
//         LOGGER.error("Error loading subfolders.", e);
//      }
   }

   public List<ProjectFolder> getSubFolder() {
      return subFolderShadow;
   }
}
The only message I got:
I can even reproduce the failure.

I uploded a sample project that throws the error for me.
http://www.java-gaming.org/user-generated-content/members/292624/example-zip.jpg.
Simply remove the faked .jpg extension, its a zip.

Are you able to reproduce the error? I run windows 7 64 bit.
This is my eclipse configuration: http://pastebin.com/tS45eez6
I only wrote this post to calm down, so have a nice day Wink

-ClaasJG
(@EDIT: sry for the post layout.)

My english has to be tweaked. Please show me my mistakes.
Offline quew8

JGO Knight


Medals: 53



« Reply #1904 - Posted 2015-03-10 15:16:12 »

kepler

Yes but I wanted to show where it comes from. But also, yes Kepler will give you a more complete view of orbits.
Offline lcass
« Reply #1905 - Posted 2015-03-10 16:45:54 »

I would guess if some of the objects have extremely varying mass such as a small neutron star and then two planets , issue there is you now have an object with a huge gravitational affect that would move the barycentre and most likely just end up eating the other planets.
Offline Olo

JGO Coder


Medals: 15
Projects: 3
Exp: 5 years


Metaphysical solipsism AFFIRMS your existence


« Reply #1906 - Posted 2015-03-10 22:12:56 »

I finished ThinMatrix's OpenGL tutorials and immediately went to convert my rouglelike game to 3d. And then everything started to fall aprat. All my code and tought i put into coming up with a way to make my game seem more 3d can now be thrown away, but without it, the whole structure doesn't make sense. Im currently considering to completley start from scratch and drop LibGDX in favor of LWJGL. It's just so overwhelming, and i want to put out some demo or next version of STS, but i keep coming up with new ideas that require me to restructure the whole code. Im sorry guys, this project wont be updated for another month i think :c But hey, when it finally does come out im sure it will look way better Smiley

EDIT: Will i be able to (in the future) change the title of my project thread?

-Can you fix it?
-No, I can't. But I can bypass it with one of these.
Offline Ecumene

JGO Kernel


Medals: 200
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #1907 - Posted 2015-03-10 23:18:03 »

Next thing you know you're renting super computer time trying to model the universe...
Nah, it's actually pretty neat:
http://news.discovery.com/space/galaxies/mind-blowing-computer-simulation-recreates-our-universe-140507.htm

It's impossible to have a completely accurate representation of our universe today, without using all of the energy currently in it, (http://infidels.org/library/modern/richard_carrier/entropy.html) and then some to compute it. But we can make a much smaller one like that.

I always thought it'd be cool to have sort of a time travel system in a virtual reality that simulated our universe exactly to a point you wanted to go to, therefore you could know anything in the galaxy by entering a 4D vector to anything in space-time and observing it.

Alas, entropy killed my childhood dreams once again... Sad

Offline CopyableCougar4
« Reply #1908 - Posted 2015-03-11 01:21:57 »

I spent 15 minutes or so fiddling around with JavaFX and making a simple web browser. It so far just loads URLs and refreshes pages, but I hope to add favorites and maybe separate tabs


Either wandering the forum or programming. Most likely the latter Smiley

Github: http://github.com/CopyableCougar4
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 486
Exp: 7 years



« Reply #1909 - Posted 2015-03-11 02:14:20 »

Was bored so I added a feature to HeroesGrave's Spade editor:

Click to Play


EDIT: now with spectral view:

Click to Play
Offline Longor1996

JGO Wizard


Medals: 116
Projects: 2
Exp: 8 years


The cake is probably a lie.


« Reply #1910 - Posted 2015-03-11 14:15:05 »

I registered a bplaced.net account. Now I have no idea what to do with it.
So, I uploaded a small design-test: http://longor.bplaced.net/

The cake is probably a lie... but it's a delicious lie!
Offline lcass
« Reply #1911 - Posted 2015-03-11 21:31:45 »

Changed windows 8 to russian , reloaded , couldnt read russian , panicked , desperately used google translate to figure out what english (united kingdom) is , repeteadly spelt things wrong , over used commas , annoying long sequences, fixed computer , posted on java gaming.org.
Offline hwinwuzhere
« Reply #1912 - Posted 2015-03-11 21:35:42 »

Changed windows 8 to russian , reloaded , couldnt read russian , panicked , desperately used google translate to figure out what english (united kingdom) is , repeteadly spelt things wrong , over used commas , annoying long sequences, fixed computer , posted on java gaming.org.

That's probably the most exiting story I've heard today. Shocked

There are two kinds of people in this world: Those who can extrapolate from incomplete data,
Offline Slyth2727
« Reply #1913 - Posted 2015-03-12 00:05:12 »

I finally got a sub 30 second rubik's time.. 26.5 to be precise. I had nobody else to share it with so I thought I'd tell you guys! It's good day Smiley
Edit: Also just fixed THE most irritating, obscure, and stupid bug I've ever encountered. A string was being sent to a method from another method which was called from JNI (in Lua), so I think that inline string I sent was getting destroyed after the Lua stuff was done and made the game not display anything whenever I rendered that string. Wow. By far the most irritating bug I've ever seen in my life.
Offline theagentd
« Reply #1914 - Posted 2015-03-12 16:05:31 »

I did a lot of stuff today and yesterday, but one of the more fun stuff was adding detection for if the driver is overriding the number of multisampling samples. Basically, I create two small multisampled textures with different sample counts. If both those textures end up having the same sample count when queried, it's an indicator that the driver is ignoring the sample count and setting one based on a user setting in the driver. Since many of my shaders loop over the number of samples, it means that if the driver sets 8 samples but the game settings only have 2, the shaders will only process the first 2 samples, ignoring the rest. With the change, the sample count is updated to the driver's reported sample count if it is determined to be overriden.

Myomyomyo.
Offline SHC
« Reply #1915 - Posted 2015-03-12 16:29:16 »

Posting in this thread after a lot of days, but today I worked with my OOP GLFW Wrapper.



This is the new wrapper that is going into SilenceEngine to provide multi window support.

Offline pitbuller
« Reply #1916 - Posted 2015-03-12 21:52:28 »

Implemented proper distance based soft shadows for Hardland. Quite happy that it also fixes light leak bugs with thin objects and cascades.

Algorithm works like this:
Blocker search: First calculate average distance using fixed size grid from pixel to blockers.
Calculate kernel size from average distance using light source size and shadow camera parameters.
Calculate occlusion using kernel size and spiral pattern. 32 samples using hardware pcf so total of 128 shadow comparision.

Comparision screenshot. http://screenshotcomparison.com/comparison/115815
Code ended up to be really neat.
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  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
#define samples 32
#define blockerSearchRadius 6
#define blockerSearchStep 6
 
 
float computeShadow( float4 viewPos)
{
        float3 proj = mul(u_viewToShadowMap, viewPos).xyz
 
        float distance = 0;
        float n = 0;
        [unroll]
        for (int x = -blockerSearchRadius; x <= blockerSearchRadius; x += blockerSearchStep)
        {
                [unroll]
                for (int y = -blockerSearchRadius; y <= blockerSearchRadius; y += blockerSearchStep)
                {
                        float4 blockerDepth = u_texture0.Gather(samData, proj.xy, int2(x, y));
                        float4 diff = saturate(proj.z - blockerDepth);                                        
                        distance += diff.x + diff.y + diff.z + diff.w;
                        float4 n4 = diff > 0.0;                                        
                        n += n4.x + n4.y + n4.z + n4.w;
                }
        }
        if (n == 0) // not in shadows
                return 1.0;
       
        float sunSize = 0.01;                  
        float maxPenumbraSizeInMeters = 0.2;
        float kernelSize = 0.001 + min((sunSize * shadowCameraSizeInMeters.z) * (distance  / n), maxPenumbraSizeInMeters);                    
 
        float2 size = (kernelSize / samples) / u_shadowCameraSizeInMeters.xy;
        float angle = 0; // use your favorite rng here to dither.
        float angleStep = 0.55;
        float shadowTotal = 0;
        [unroll]
        for (int i = 0; i < samples; i++)
        {
                angle += angleStep;
                float2 uv = proj.xy + i * size * float2(cos(angle), sin(angle));
                shadowTotal += u_texture0.SampleCmpLevelZero(shadowSampler, uv, proj.z);
        }
        return shadowTotal / samples;
}
Offline Elsealabs
« Reply #1917 - Posted 2015-03-12 23:05:27 »

@pitbuller: That looks very nice. The smooth shading looks good, but the game's lighting seems "over-bloomed." Very nice art style.

Offline pitbuller
« Reply #1918 - Posted 2015-03-12 23:29:39 »

@pitbuller: That looks very nice. The smooth shading looks good, but the game's lighting seems "over-bloomed." Very nice art style.

I have heard so many comments about bloom so maybe I should ask our artists to tune it bit down.
Offline LiquidNitrogen
« Reply #1919 - Posted 2015-03-13 11:59:24 »

Finally finished animating female crew members! Some of them need touch ups but I've already spent more days than I wanted to doing this for now.
Click to Play
Pages: 1 ... 62 63 [64] 65 66 ... 214
  ignore  |  Print  
 
 

 
Riven (43 views)
2019-09-04 15:33:17

hadezbladez (4008 views)
2018-11-16 13:46:03

hadezbladez (1463 views)
2018-11-16 13:41:33

hadezbladez (4028 views)
2018-11-16 13:35:35

hadezbladez (777 views)
2018-11-16 13:32:03

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

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

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

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

nelsongames (3866 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
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!