Show Posts
|
|
Pages: [1]
|
|
2
|
Discussions / General Discussions / Re: Your opinion about DirectX10 and OpenGL?
|
on: 2006-08-20 19:17:38
|
|
One year ago I wanted to write a Direct3D-Binding for Java. But I stopped, because I didn't had an idea how to free native resources in a determenistic way (finalizers are undeterministic) when an object isn't referenced anymore. So if you have an idea, tell me please ...
By the way: It would be great, if Sony uses Java as a reactiion to Microsoft's XNA stuff on their PS3. Maybe that will be possible, when Java is completely open-source ...
|
|
|
|
|
4
|
Java Game APIs & Engines / JOGL Development / Render loop is creating a lot of garbage with JOGL
|
on: 2006-04-09 14:12:22
|
Hi, i'm currently trying to create a render loop with JOGL. The basic device creation looks like this: 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
| public class ExampleScene extends Frame { private GLCanvas canvas; public ExampleScene() { GLCapabilities glcaps = new GLCapabilities(); canvas = new GLCanvas(glcaps); ExampleSceneView view = new ExampleSceneView(); canvas.addGLEventListener(view); setSize(500,500); setTitle("JOGL test"); add(canvas, BorderLayout.CENTER); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); } public static void main(String[] args) { final ExampleScene app=new ExampleScene(); app.setVisible(true); } |
This implementation works fine. But when i add a render loop like this ... 1 2 3 4 5 6 7 8 9
| public static void main(String[] args) { final ExampleScene app=new ExampleScene(); app.setVisible(true);
while (true) { app.canvas.display(); } } |
... the garbage collector gets active every second  In the render loop I am NOT creating garbage. So there has to be a problem with JOGL ... Is there a workaround for this? Or is it even normal?
|
|
|
|
|
5
|
Discussions / Community & Volunteer Projects / DirectX SDK-like Sample browser for Java gaming libraries (JOGL, JOAL, ...)
|
on: 2006-03-02 17:24:44
|
Hi  Today i've checked out some samples of the DirectX SDK and wondered, why there isn't something like a Sample browser for Java gaming libraries. I think, that this would really make the thing user-friendlier and more attractive for beginning java game developers. So why not program a swing-based Sample browser for libraries like JOGL, JOAL, JInput, LWJGL, ...? Also things like tutorials could be included in it. For those of you, who don't know what I mean:  Tell me what you think about this idea! I'm looking forward to read your comments!  PS: And sorry for my bad english 
|
|
|
|
|
10
|
Discussions / General Discussions / Re: Looking for people, that are interested in wrapping Direct3D for Java
|
on: 2005-07-26 15:40:55
|
so you want the users of your engine to code two rendering paths, DX for windows, OpenGL for linux and mac? Even then, for any good engine, your going to have to deal with shaders anytime soon. With OpenGL you got GLSL, and you have to code the same effect in HLSL?...
I think thats asking alot from any viable engine...
DP
For API-independent shaders there is NVidia's CG. For my engine i will use JOGL, LWJGL's OpenGL and JDirect3D as selectable plugins and my shaders will be written in CG. For Direct3D of course, you will be able to write specific HLSL shaders.
|
|
|
|
|
12
|
Discussions / General Discussions / Re: Looking for people, that are interested in wrapping Direct3D for Java
|
on: 2005-07-26 13:58:21
|
I'm looking forward to read your answers  Use C#? Even if .NET is called platform independent, there are certain parts in the class library, that are designed platform dependent - for example the System.PlatformID enumeration: Win32NT, Win32S, Win32Windows and WinCE are the only possibilities - and all of them are Microsoft OSs. Of course there are workarounds for this kind of problems. But i like the fact, to write a program and run it anywhere without problems (which you have with mono currently). But: Back 2 topic now 
|
|
|
|
|
13
|
Discussions / General Discussions / Looking for people, that are interested in wrapping Direct3D for Java
|
on: 2005-07-26 13:45:17
|
Hi, i'm currently working on a Direct3D-Wrapper (not the whole DirectX, that would be senseless, because DX is platformspecific and i just want to provide a renderer alternative). I've already implemented the basic stuff (like vectors, matrices, quaternions, planes ...) and now i'm looking for people, that are interested in helping me to write this wrapper. As I already said: I don't want to make a platform independent library like JOGL, but just a alternative for windows user. I'm looking forward to read your answers  PS: I want to use Managed DirectX as the template
|
|
|
|
|
15
|
Java Game APIs & Engines / JOGL Development / Problems when compiling JOGL
|
on: 2005-07-24 13:33:04
|
Hi, I wanted to compile JOGL (1.1.1) to get the GL.java but I got the following error: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| build.static.gl:
[echo] BuildStaticGLInfo has been built successfully.
declare:
build.static.gl.task:
[echo] StaticGLGen ANT task has been built successfully.
java.generate.check:
java.generate: [echo] Generating GL interface class [gluegen] java.lang.NoClassDefFoundError: antlr/TokenStreamException [gluegen] Exception in thread "main"
BUILD FAILED C:\Dokumente und Einstellungen\Christoph\Desktop\gl\jogl\make\build.xml:1071: The following error occurred while executing this line: C:\Dokumente und Einstellungen\Christoph\Desktop\gl\jogl\make\build.xml:470: GlueGen returned: 1 |
I followed the instructions in the HowToBuild.html but I still have no success. Could you help me, please?
|
|
|
|
|
16
|
Java Game APIs & Engines / JInput / Compiling the Linux-Plugin for JInput ...
|
on: 2005-07-15 22:53:38
|
Hi, i've downloaded the JInput from CVS and tried to compile it. My problem is, that it doesn't compile, because it can't find the class "LinuxDeviceRumbler". File: LinuxDevice.java 1 2 3 4 5 6 7 8 9 10 11
| if(getFFEnabled()) { System.out.println("Java code thinks FF is enabled for device " + name); Rumbler[] tempRumblers = rumblers; rumblers = new Rumbler[rumblers.length+1]; System.arraycopy(tempRumblers,0,rumblers,0,tempRumblers.length); rumblers[rumblers.length-1] = new LinuxDeviceRumbler(nativeID); System.out.println("rumblers.length: " + rumblers.length); System.out.println("getRumblers().length: " + getRumblers().length); } else { System.out.println("Java code thinks FF is disabled for device " + name); } |
Could you please help me to solve this problem? Thanks 
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|