Skip to main content
gamedev.net
🔒 Locked

[java] Direct3D in Java

Started by CarnegieDale Jan 9, 2007 at 10:51 PM 5 replies 1.2k views
Original Post
CarnegieDale
CarnegieDale
Hi, everybody! How are you doing after holidays?:) I write a game. I used Java3d for my virtual objects (a football player and ball). But now I need to do it using Direct3D. I have never used Direct3D before. Can you tell me: 1) Where to find tutorials about Direct3D in Java. 2) How to convert my program to program with Direct3D. Thanks.
n0rmanfreak
n0rmanfreak
Direct3D is windowsspecific...so you can't use it directly with java

from the top of my head: you can select if java3d should use openGL or direct3D...so on windowsmachines you might already be using direct3D without knowing.

hope that helps
Son of Cain
Son of Cain
Seconded.
a.k.a javabeats at yahoo.ca
CarnegieDale
CarnegieDale
Thank you guys for help.

I wanted to use Direct3D because I need to load from .X file mesh-object and use it. How to do it in Java3D?
CaptainJester
CaptainJester
You can use Blender with plugins to load the .x file and then export it to a different format. I don't know if Java3D supports any type of model loading, but that would be the way. Another program that could convert model types is MilkShape 3D.

If you switch to jMonkey Engine (jME), they support multiple model formats. I don't think .x is one, but they do support .OBJ among others.
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][
Son of Cain
Son of Cain
J3D has an API to write loaders, so if there isn't one already, you can write yours (and then contribute it to the community =). But I don't know much about the .x extension, never used it before, so I can't really comment on how good that would be.

Stick to low level APIs, such as LWJGL or JOGL, if you're dead set about using the ".x" file format. It may take a while, but you'll be able to come up with a good loader. If you're willing to switch formats, using export through Blender or any other software, then you might consider Capn's suggestion. JME has a lot of support for many popular formats.
a.k.a javabeats at yahoo.ca

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.