Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (784)
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] 4 5 ... 10
 on: 2017-02-21 00:23:50 
Started by princec - Last post by Cero
Granted it really does seem like some internal class, possible rt.jar is an old version.
Would be kinda easy to test this manually by getting an old rt.jar

But as you say that really should never be able to happen. You locally launch your jre... which is just an executable as any; It shouldn't be possible for that call to be redirected unless this person has a software running that does exactly that, which I wouldn't assume.

 on: 2017-02-21 00:01:39 
Started by rafeu - Last post by zngga
Maybe this will be of use:
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

 on: 2017-02-20 21:19:33 
Started by BurntPizza - Last post by basil_
i wrote java bindings to portmidi cos' java midi-api is really not good.

 on: 2017-02-20 21:10:18 
Started by rafeu - Last post by basil_
predicting is simulating. anyway, if you want to try discreet instead of continuous .. leapfrog integration is a very good choice. it is orbit stable and reversible.

looks like

 on: 2017-02-20 18:47:25 
Started by rafeu - Last post by jonjava
Just run the simulation, why would you need to predict anything?

 on: 2017-02-20 17:38:28 
Started by Archive - Last post by Archive
@J0 Don't worry about this. All the methods are static and there are NO java objects available to the user because they aren't needed. All methods have parameters of ints, floats, and int arrays or float arrays. All the 'wrapping' is up to you because I like to keep the layer between the engine and the user as thin as possible.

 on: 2017-02-20 17:29:12 
Started by Catharsis - Last post by princec
Gears & Vulkan works a treat here (Nexus 5X, Android 7.1)! Well done, that's awesome stuff. Gives me the urge to play with Android again.
Anybody with time care to see if they can get Zulu to invoke using NDK?

Cas Smiley

 on: 2017-02-20 17:27:32 
Started by numerical - Last post by CJC
Okay, I'm not entirely sure if I understand your question correctly, half of it appears to be a statement, and the other half a question of sorts.

It seems that you're asking if you are loading the images correctly, am I correct?
If that is what you are asking, then the answer is "not really". Let's look at your "loadImage" method.

private void loadImage() {
    ImageIcon ii = new ImageIcon("jvm.png");
    uc = ii.getImage();        

There are a few problems with this.
1. Where is this image located? Is it just sitting randomly in your code base, or is it in a resources folder?
2. You're loading the image as an Image Icon, and then grabbing the image from that.

Let's look at these one at a time.

The code you use to reference your image *might* work for now, and load your image, but it won't work for long. I did this when I was first learning Java and this was the source of never ending confusion. From an organization stand point, you really ought to place resources in their own directory ("res/image" for images or "res/localization" for localization files, for example). But either way, you need to provide the full path to the image. Let's say that you place your image in a "res/image" directory. In this case, you need to turn "jvm.png" into...

Now some people will say that you should use the ImageIcon class, grab the Image from the ImageIcon, and pass that onto a BufferedImage. I don't believe this is necessary at all, but I'll show what that is like as well. Either way, if you wind up using BufferedImage, you'll want to change uc's type from an Image to a BufferedImage.

Still using ImageIcon:
private void loadImage() {
    ImageIcon ii = new ImageIcon(getClass().getResourceAsStream("image/jvm.png"));
    uc = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB);    
    Graphics2D bGr = uc.createGraphics();
    bGr.drawImage(ii.getImage(), 0, 0, null);

Not using ImageIcon:
private void loadImage() {
    uc ="image/jvm.png"));

Hopefully that makes sense.

 on: 2017-02-20 16:52:01 
Started by rafeu - Last post by rafeu
Hello fellow programmers,
I saw this post about simulating orbital gravity :
I'm trying myself to predict more-than-two-body attractions and I don't really know which data structure I should use to achieve this result, I wanted to know which method you used at the time.
I also tought of only using scalar (something like a 'gravity' tension) in a grid.

Thanks in advance for your answers

tl;dr:I'm trying to predict the trajectory of a body with multiple attractors (a static one and multiple moving ones)

 on: 2017-02-20 16:21:29 
Started by Catharsis - Last post by Spasi
The example Android Studio project is now available at LWJGL/android-test. The README includes build instructions.

For those that simply want to try it out, you can find arm64-v8a binaries here (warning: unsigned, built on my workstation):


Pages: 1 2 [3] 4 5 ... 10
numerical (33 views)
2017-02-21 07:32:16

numerical (33 views)
2017-02-21 07:31:46

theagentd (141 views)
2017-02-18 13:42:33

theagentd (144 views)
2017-02-18 13:35:16

h.pernpeintner (1308 views)
2017-01-24 22:39:11

h.pernpeintner (1296 views)
2017-01-24 22:38:32

Galdo (1856 views)
2017-01-12 13:44:09

Archive (1953 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2492 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2305 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!