Looking for people, that are interested in wrapping Direct3D for Java

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 :wink:

PS: I want to use Managed DirectX as the template

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 :slight_smile:

But if you’re using D3D, you’re already locked to windows, so why not use a language which actually has proper support for DX?

…because it’s perfectly reasonable to want to use Java, which is a nice platform on Windows alone let alone all the others. Ha, ok, OSX and Linux.

This would be a great thing to do really if it gets more Win32 only developers interested in using Java to develop games. So good luck in your hunt for assistance!

Cas :slight_smile:

… I don’t want to make a platform independent library like JOGL, but just a alternative for windows user. …

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.

so for your engine your going to learn OpenGL and DirectX simultaneously and write efficient and optimisied initalisers and renderers for both right? While also finding the time to make a Cg plugin for LWJGL to use and learning Cg and coding shaders in it…

Wow, your a very ambitious guy…good luck :slight_smile:

DP

I hope he just sticks to wrapping up DX properly and leaves it at that. There are plenty of other people who have already written “engines” and scenegraphs who could make use of it instead.

This is how the LWJGL started off after all.

Cas :slight_smile:

Once again we see folks arguing against something that will have zero impact on them. cYaONE is looking for people to help out not asking if it should be done.

Zakly. And if I had the time I’d help out too as I’d like to have a DX based SPGL I could use for Win32 machines without OpenGL. And I’d like to see some Xbox action.

Cas :slight_smile:

Work for one person for 1/4 year. You might like to create some sort of converter like JOGL use. Also it would be reasonable to add support for 9 up.
BTW DirectX 10 is shit. It looks to me like it want to take away representation of hardware and produce something like mickerosoft abstraction of it.

And yes you’d probably see why I’m saying that COM is a shit.

I don’t have any time to help but I’d definitely try it out when it is released.

Good luck with the project .
// Tomas :slight_smile:

There was a directx wrapper back in the j++ days (try googling for ‘directj’). I’ve never actually found it for download on hte intarweb though.

I agree, best to concentrate on one thing at a time.

A direct3D wrapper would be useful IMHO, though not 100% nessesary.

If you wrote one, I would love to see a Xith3D renderer that can render to it (we can already do two flavours of OpenGL).

Will.

If that happened I’d jump on Xith like a shot and try my hand at a true 3D game.

Cas :slight_smile:

One question: Do you want the JDirectX-API to be in Java Code Style or should i keep it for compatibility? Java Style would be setTexture() instead of SetTexture() for example.

Java Style please or I’ll think SetTexture is a class :slight_smile:

FYI,
I was looking for javaExeWrapper a week ago and internet path took me to this site.
JWindow + 6DX (now discontinued) projects:
http://www.rolemaker.dk/JWindows/index.htm
http://www.rolemaker.dk/JWindows/6DX/index.htm