Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 ... 34
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-27 21:11:07
I just used .Net 2 because it was default with SharpDevelop. I'll get you 4.5 binaries now.

EDIT: Updated the link to the binary compiled with .Net 4.5 framework. It should work now.
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-27 21:07:20
You are on windows 8??? Windows 8/8.1 disables .Net 2.0 and you have to manually enable that. That code should also work with 4.5 I believe.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-27 21:03:42
No, I used .Net 2.0 with SharpDevelop 4.4. What error did you get?
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-27 20:59:42
@ra4king

Here you go. I just used Process class in .Net with shell execute.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = args[0];
info.Arguments = "";
info.UseShellExecute = true;
info.Verb = "runas";

for (int i=1; i<args.Length; i++)
{
    info.Arguments += (args[i] + " ");
}

Process.Start(info);

Tomorrow, I'm planning to add some of the command line switches supported by original sudo command.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-27 18:41:29
Made a small utility that does the work of sudo on windows.



Here's the blog post if anyone is interested. http://goharsha.com/blog/sudo-command-prompt/
6  Games Center / WIP games, tools & toy projects / Re: [MAC OSX] JarBundle - A simple jar bundling application on: 2014-07-25 03:28:46
@gouessej

Yes. I've tested it with Mountain Lion and Mavericks too. Only thing is that you have to kill the finder and open it again to recognise it as application in mavericks 10.9.3
7  Java Game APIs & Engines / OpenGL Development / Re: Vertex Attribute Arrays aren't working on: 2014-07-24 20:26:49
Glad that you got it working. Is that green quad your model?
8  Games Center / WIP games, tools & toy projects / Re: [MAC OSX] JarBundle - A simple jar bundling application on: 2014-07-24 20:25:13
@gouessej

I've seen that AppBundler task before, but haven't worked with ant before (Just used Eclipse to build). Haven't seen that JarBundler. Moreover, I already knew the app bundle structure on Mac OS, so I implemented mine with shell scripts (which I'm better at)
9  Java Game APIs & Engines / OpenGL Development / Re: Vertex Attribute Arrays aren't working on: 2014-07-24 20:21:46
Oops, my bad. I thought of saying GL_UNSIGNED_SHORT and make it a ShortBuffer.
10  Java Game APIs & Engines / OpenGL Development / Re: Vertex Attribute Arrays aren't working on: 2014-07-24 20:13:35
You are creating the indices buffer as a FloatBuffer, but you are using GL_UNSIGNED_BYTE in the call to glDrawElements. Maybe changing that to GL_UNSIGNED_FLOAT should work.
11  Java Game APIs & Engines / OpenGL Development / Re: Vertex Attribute Arrays aren't working on: 2014-07-24 20:08:24
There's a problem too.

1  
2  
3  
4  
public void bind(){
   GL20.glEnableVertexAttribArray(index);
    System.out.println("enabled vaa: " + index);
}

You are just enabling the location but not making a pointer to it.

EDIT:

Found that you are setting the pointer in the constructor. Looking for other sources of the error...
12  Java Game APIs & Engines / OpenGL Development / Re: Vertex Attribute Arrays aren't working on: 2014-07-24 20:01:13
This is where you are having problem.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
GL30.glBindVertexArray(va);
      positions.bind();
      textureUVs.bind();
      colors.bind();
      normals.bind();
         GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, vi);
         GL11.glDrawElements(mode, indices.length, GL11.GL_UNSIGNED_BYTE, 0);
         GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, 0);
      positions.unbind();
      textureUVs.unbind();
      colors.unbind();
      normals.unbind();
   GL30.glBindVertexArray(0);

That's not how you are supposed to bind the buffers. Do like this in the order.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
positions.bind();
glVertexAttribPointer(0, 4, GL_FLOAT, false, 0, 0);

textureUVs.bind();
glVertexAttribPointer(1, 2, GL_FLOAT, false, 0, 0);

colors.bind();
glVertexAttribPointer(2, 4, GL_FLOAT, false, 0, 0);

normals.bind();
glVertexAttribPointer(3, 3, GL_FLOAT, true, 0, 0);

glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vi);
glDrawElements(mode, indices.length, GL_UNSIGNED_BYTE, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);

glBindBuffer(GL_ARRAY_BUFFER, 0);

The problem is you are binding your VBOs but not setting the pointers to them. Hope this helps.
13  Games Center / WIP games, tools & toy projects / Re: [MAC OSX] JarBundle - A simple jar bundling application on: 2014-07-24 19:26:46
@BurntPizza

I've seen that, but I wanted my app to be used with Swing apps in general. Though I haven't used it, it looks pretty nice.
14  Games Center / WIP games, tools & toy projects / Re: [MAC OSX] JarBundle - A simple jar bundling application on: 2014-07-24 19:07:00
I've thought of making a GUI version, but didn't had OSX installed right now. Why not add more options? Allow native libs? and custom VM args?
15  Games Center / WIP games, tools & toy projects / Re: FPS Engine on: 2014-07-24 15:45:35
Wow! Looking awesome. Did you use the new 3D API?
16  Games Center / WIP games, tools & toy projects / Re: [MAC OSX] JarBundle - A simple jar bundling application on: 2014-07-24 14:54:40
I've made a similar one before (using shell scripts). Also works with linux.

<a href="http://www.youtube.com/v/Unl8dgqFv6o?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Unl8dgqFv6o?version=3&amp;hl=en_US&amp;start=</a>

All you require is to edit the launcher script and give it executable permissions.
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-23 18:53:28
Made new background by messing up with the filters in GIMP.

18  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-23 17:30:39
I've made a semi-transparent alien image for you.

 
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-23 16:49:09
@princec

Do you have any plans on making it opensource? It seems interesting.
20  Discussions / General Discussions / Re: New feature: Embedded PDFs on: 2014-07-22 14:50:42
Riven, I found something that maybe of interest to you. There is a pure JS PDF renderer by mozilla called PDF.JS. And it uses WebGL to render that PDF in the browser.

Example

21  Java Game APIs & Engines / OpenGL Development / Re: VBOs on: 2014-07-21 15:28:43
I'll just keep the static terrain in a VBO and use face culling to prevent drawing of things that are not on the screen. I'll use a Batcher to batch draw movable objects (meshes).
22  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-07-20 15:02:01
In GoDaddy, The price is Rs. 125/- per month ($ 2.06) and is pretty cheap (starter plan). So I bought it at once for an year.
23  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-07-19 19:07:47
Sorry to revive this old thread, but I thought it is valuable to share my findings. I've spent one month with 000webhost.com, and a month each with googiehost and hostinger.com while backing the data on the space I got in college servers. I must say that those free hosting services doesn't give full resources. If you wan't to test them out, 000webhost is the one which offered more speed compared to others.

But even that speed can't be compared to paid hosting. I got ping times of almost 380-400ms while on those free ones. Recently I've moved to the starter plan of GoDaddy, and the ping times are now only 120-140ms. It's a huge improvement of speed for my wordpress website. I'll be writing a new blog post with detailed observations tomorrow.
24  Discussions / General Discussions / Re: New feature: Embedded PDFs on: 2014-07-19 14:22:05
I think instead of initiating downloads automatically, you can just keep a link to download the file. Just a small suggestion.
25  Game Development / Articles & tutorials / Re: Math/Physics tutorials for Game Programming on: 2014-07-17 19:31:58
You can use Daum Equation Editor to create equations as images (PNG format).

http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html

(Note: It didn't work for me in IE, but fine in Opera and Chrome)
26  Game Development / Newbie & Debugging Questions / Re: First Java Game on: 2014-07-17 05:35:37
Oops, medal by accident...
27  Discussions / General Discussions / Re: Java Swing GUI Creator on: 2014-07-16 16:15:54
+1 For WindowBuilder. It's the best one I've tried.
28  Java Game APIs & Engines / OpenGL Development / Re: LWJGL Opengl binding, binding only one texture! on: 2014-07-14 16:59:41
Try to initialize in the loadimage method.

1  
2  
3  
4  
5  
6  
7  
8  
9  
private static Map<BufferedImage, Integer> texMap;

public static BufferedImage loadImage(String path)
{
    if (texMap == null)
        texMap = new HashMap<BufferedImage, Integer>();

   ...[snip]...
}

That should solve your problem. That exception
ExceptionInInitializerError
occurs if static initialization fails. This also occurs in static blocks.
29  Java Game APIs & Engines / OpenGL Development / Re: LWJGL Opengl binding, binding only one texture! on: 2014-07-14 16:00:18
You need to store your texture ID of the bufferedimage you just generated. Use a HashMap to map the bufferimage object to the id.

1  
private static Map<BufferedImage, Integer> texMap = new HashMap<BufferedImage, Integer>();

Then you map the buffered images whenever they are loaded with their texture id in the loadImage method.

1  
texMap.put(bufferedimage, textureID);

Then whenever you are drawing it, you get the id from the map and bind that texture.

1  
2  
3  
4  
int textureid = texMap.get(bufferedimage);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, textureid);

// Continue to draw it

However, this code can be highly expensive, because it involves a lot of state changes for a complete scene and also you are using the old and deprecated immediate mode rendering. I highly advice you to look at modern opengl and texture atlasses.
30  Game Development / Newbie & Debugging Questions / Re: [Solved] Calculating normal vectors on: 2014-07-13 13:07:38
Congratulations.
Pages: [1] 2 3 ... 34
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!