Main Menu

Update

Started by CaptainJester, July 14, 2007, 13:36:11

Previous topic - Next topic

CaptainJester

Just wanted to let everyone know that I am making progress.  I have successfully created an IDirect3D9 interface object and called a method on that interface.

I don't know how often these updates will happen, but I will try and keep everyone informed.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

princec

Brilliant stuff :)

I might even get to learn D3D finally.

Cas :)

gaarazero

Awesome stuff!  D3D for Java seams kinda weird since D3D is micros~1 specific and Java is supposed to be platform independent.  Anyway, I have experience with D3D, JNI, and some time on my hands, so if you need any help developing, I would gladly help in anyway possible.  Thanks and good luck!
JNewton 0.8 - Newton Dynamics wrapper for Java!
org.lwjgl.d3d - Currently Working On

CaptainJester

Thanks.  I am getting close to being ready to check everything into SVN.  Once it is there, help would be appreciated.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

CaptainJester

Running into a few problems with the way the Display is set up.  It is all so tightly integrated with OpenGL, I may have to write it from scratch.  There is a lot of code I can use, but there is an equal amount that is OpenGL specific.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

Matthias

I don't think that D3D should be part of lwjgl - especially not part of the existing classes.

Creating another lib with a similar API (for Mouse and Keyboard) might be an option.

Uli

I'm just curious... if you want to use direct3d, why dont't you just use c# for it? C# looks nearly the same like Java, so it should be easy for any Java programmer to write c# code. And using directx you can only run on windows anyway.  ???

princec

Because, that's why! May as well ask a C# programmer why he doesn't use Java if he wants to use OpenGL bindings with C#.

The LWJGL is composed of four six parts - System handling, Display handling, Input handling, Sound handling, Image handling, Graphics handling. The D3D part is simply going to be in place of the OpenGL part in the Graphics handling. The rest of the API will not be affected. It makes sense to simply keep as much of it as possible.

CJ - you might have to be quite cunning to get both GL and D3D working with the native Display classes. Stick with it, the results will be cool and of major newsworthiness.


Cas :)

Nero

Quote from: Uli on July 25, 2007, 20:03:00
I'm just curious... if you want to use direct3d, why dont't you just use c# for it? C# looks nearly the same like Java, so it should be easy for any Java programmer to write c# code. And using directx you can only run on windows anyway.  ???

IMHO

You would need to re-do an entire game just to use C# and i doubt you won´t face any setbacks. If you want to make it cross-platform you will need to reinventing the wheel serval times and C# with Mono isn´t a good idea as they will always be a step back of Microsoft .NET.

Direct3D bindind is to make the user experience most painless possible. Average Joe with default Microsoft drivers only supports emulated OpenGL which is dog slow. If your game is slow, no matter if is the user fault, the first thing he/she will do is to blame your software.  :)

Of course FPS game community and other hardcore games most people knows how to upgrade their drivers but casual games is a bit complicated. The user will probably give up to test your game than follow any instructions that you ask to do.


CaptainJester

Quote from: Uli on July 25, 2007, 20:03:00
I'm just curious... if you want to use direct3d, why dont't you just use c# for it? C# looks nearly the same like Java, so it should be easy for any Java programmer to write c# code. And using directx you can only run on windows anyway.  ???

I dare you to find FREE dev tools as good as what we have for Java.  I cannot afford to buy Visual Studio.  I can do anything I want with Java because there are so many more well established free tools.  I know there are some for C/C++ and C#, but they just do not compare.

Part this is also to attract people to Java.  I have seen the comment a lot that people won't switch to try Java because there is no Direct3D binding.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

CaptainJester

Quote from: princec on July 25, 2007, 21:06:35
CJ - you might have to be quite cunning to get both GL and D3D working with the native Display classes. Stick with it, the results will be cool and of major newsworthiness.

I will keep trying.  I really don't want to rewrite it, because there is already so much time and bug fixing already in place.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

gaarazero

Micros~1 released a "lite" version of Visual Studio, Express Edition, for C++/.NET/etc.  Visual Studio sucks compared to Eclipse, but the lite version is free.  If you use C# it will still only run on Windows, so there's really no difference between Java + DirectX or C# + DirectX, except for the awesomeness of Java and the crappyness of C# :P.

-gz
JNewton 0.8 - Newton Dynamics wrapper for Java!
org.lwjgl.d3d - Currently Working On

Uli

I've got both Visual Studio Express and Eclipse installed, and I think you're right. Compared to Eclipse, Visual Studio sucks. On the other hand, maybe it's just because I use RAD, which is based on Eclipse, every day for my job, and I'm just used to it. C# itself isn't crappy, it's nearly the same as Java. I feel more comfortable with DirectX than with OpenGL, maybe because it's more object oriented.
So if I could use Eclipse for developing c# and DirectX, everything would be fine  :)

CaptainJester

Quote from: gaarazero on July 26, 2007, 05:20:49
Micros~1 released a "lite" version of Visual Studio, Express Edition, for C++/.NET/etc.

True, but it has the restriction that you cannot redistribute what you make in any form.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

Orangy Tang

Quote from: CaptainJester on July 26, 2007, 14:31:32
Quote from: gaarazero on July 26, 2007, 05:20:49
Micros~1 released a "lite" version of Visual Studio, Express Edition, for C++/.NET/etc.

True, but it has the restriction that you cannot redistribute what you make in any form.
No, they dropped that restriction a little while ago. The express edition is pretty much fully featured now.

Of courses it's still playing catch up to Eclipse in terms of features.  ;D