Jump to content
  • Advertisement
Sign in to follow this  
yavin02

Unity [java] introducing ogre4j - Java native interfaces for OGRE

This topic is 4655 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello GameDev.net community, I proudly introduce the growing Java native interfaces ogre4j for OGRE. I found some threads about OGRE on GameDev.net and thought that maybe someone wants to know that there is a new "alternative" to Java3D. The ogre4j team invites everybody to join the development of the JNI bindings for the very good render engine OGRE. The sources are at a early stage and at least 30% of the public interfaces of OGRE are implemented but it is impressing what's possible with ogre4j already. We are looking forward for feedback of the experienced members of the GameDev.net community. Best regards, yavin PS: I hope to have the time to write a full article about ogre4j. Stay tuned ... [Edited by - yavin02 on August 2, 2005 5:16:52 AM]

Share this post


Link to post
Share on other sites
Advertisement
Looks very promising!

However, I have two questions for you:

1. There's a single method that relies on Java3D. You're not serious about keeping this dependency, right? =D
2. Are you planning on tying the bindings with SWT? Not really bad, but I hope you're not up to it ;)

If I werent as busy as hell with my graduation... I would certainly be interested in helping out. OGRE is my engine of choice when I toy with C++, and I've seen great games using it.

Son Of Cain

Share this post


Link to post
Share on other sites
Quote:
1. There's a single method that relies on Java3D. You're not serious about keeping this dependency, right? =D

Your're right I'm on that issue. This function is very helpful if converting geometry data from a J3D scenegraph. ... I think we will remove this function to get rid of that dependency.

Quote:
2. Are you planning on tying the bindings with SWT? Not really bad, but I hope you're not up to it ;)

No we won't do that.

Share this post


Link to post
Share on other sites
At this stage in the evolution of 3D Java... it would be more useful to have a pure Java port of OGRE rather than a JNI binding.

Cas :)

Share this post


Link to post
Share on other sites
Quote:
Original post by princec
it would be more useful to have a pure Java port of OGRE rather than a JNI binding.

What would be the advantage of a Java port, compared to the JNI bindings? IMHO porting OGRE to Java will result in another version of Java3D ;-) The speed of the native implementation will be lost ...

Share this post


Link to post
Share on other sites
What did you mean by speed of a native implementation? Exe code compiled for MMX at most, would be MUCH slower that identical program writen in Java, and used on CPU with SSE2 instruction set support.
Of course Java port would alow for better inlining, BTW I remember that my modification of JOGL was able to do 1E6 triangles on 6 year old GFX card with lighting, and shadowing.

Share this post


Link to post
Share on other sites
Quote:
Original post by Raghar
What did you mean by speed of a native implementation?

I thought that porting OGRE will loose the speed of the OGRE C++ implementation ... Maybe I'm wrong with that. I know there are benchmarks which show that Java is faster than C++ but I'm not uptodate about this issue. I'm able to remember a comparison between Java3D, OpenGL and DirectX which was evaluated by a student of my universtiy. The results were clear, Java3D was far behind OpenGL and DirectX.

Quote:
Original post by Raghar
Of course Java port would alow for better inlining, BTW I remember that my modification of JOGL was able to do 1E6 triangles on 6 year old GFX card with lighting, and shadowing.

That's cool. But you modificated JOGL and JOGL only deals with OpenGL. OGRE deals with both, DirectX and OpenGL and it provides a much more advanced API. Furthermore due to the plugin concept of OGRE it is very easy to extend OGRE with interfaces for new graphics libraries.

Share this post


Link to post
Share on other sites
The Java community tends to favour OpenGL because it's crossplatform (and simpler ;))

As for the speed - you'll most likely find that a pure Java implementation of OGRE is approximately the same speed as the C++ version if used with the server VM, or maybe 50-80% of the speed of the C++ version with the client VM.

Cas :)

Share this post


Link to post
Share on other sites
Hi,

I agree with princec on this. Perhaps you can use the bindings to backup the code that is not completely ported to Java? That would be a nice extension to the original project, the one you're showcasing now.

Son Of Cain

Share this post


Link to post
Share on other sites
Quote:
Original post by yavin02
Quote:
Original post by princec
it would be more useful to have a pure Java port of OGRE rather than a JNI binding.

What would be the advantage of a Java port, compared to the JNI bindings? IMHO porting OGRE to Java will result in another version of Java3D ;-) The speed of the native implementation will be lost ...


I agree with yavin02 here...

I see no valid reasons to port OGRE to java. A binding would take much less time to complete. I would much rather have OGRE now than wait a long time for a java port to be available (which would need constant updating to be in synch with the c++ version). A binding can be made available with relatively little work.

I would love to help out with this project. You can get in touch with me at:
earl3982@yahoo.com or just send me an instant message at earl3982 (using AIM).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
  • Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By Aryndon
      Project Redemption is an semi-fantasy RPG with a linear story and an elaborate combat system.
      We are building in Unity and are currently looking animators and artists.
      What we are looking for
      -Someone who is okay with split revenue/profits when finished
      -Collaborate with others in the team. Do you have an idea/thought on what should be included? Tell us!
      -Someone who wants to work with people that are passionate about this project
      If you are interested. Please message me and I will get back to you as soon as possible! Or add me on Discord AJ#6664
    • By Aggrojag
      Hello!
      I'm working on a game that is a narrative driven dark comedy with some small aspects of platforming and puzzle solving. The project is rather small as well. It touches on topics such as suicide, mental illness, family, corruption, free-will, and redemption.
      This project is exercise in polish, this means some experimentation will be needed along with some reworking of assets as they're provided.
      This will be a revshare model.
      First, I'm looking for a 2D sprite artist, not pixelated, that can compliment the style of the attached images, and be similar to the temporary character.
      We are looking to bring on a SFX designer at this time. Full list of required SFX will be available upon request, as well as a build with all elements related to sound implemented in some form (many SFXs pulled from the web for now). Will likely require some field recording, and some pretty strange SFX for when things get weird. I imagine a good portion of these will be quite fun to create.
      Lastly, I'm looking for a male voice actor, English should be your primary language. There will be at minimum two characters that will need to be brought to life through vocals. The first voice is similar to Marvin from Hitchhiker's Guide to the Galaxy. A reference for the second voice would be a mix of Ren (Ren & Stimpy), and Android 21 (DragonBallFighterZ). Due to formatting, I'm not including YouTube links in the post, sorry.
       
      WIP Scene with our custom shaders attached (platforms are lazily placed, as this was an asset test):

      A scene with dynamic lighting and temp character:

       
      Unshaded asset:

      If you made it to the bottom, thank you, and I look forward to hearing from you.
    • By SickTwistGames
      Ok, firstly, Hi.
       
      This is my first post on this forum. I am an Indie Dev making my first game so bear with me when I say dumb stuff, I'm on a huge learning curve.
       
      My first question is about inventory systems for unity. I am trying to make a survival type game with crafting. I have purchased Inventory manager pro by devdog from the unity asset store and it seems like a pretty powerful assett but for an intermediate coder its a little tough to use.  I'm beginning to wonder if it was the right purchase.
      So my question is.... does anyone have any experience of inventory plugins / systems for unity and can anyone reccomend a system to me?
      It needs to have the following: Loot system, crafting system, character sheet, blueprint system,  character stats system. Ideally with as little coding as possible.
       
      Thanks
    • By ethancodes
      I've got a bug with my brick breaker style game. The bricks move down one line at a time ever 1.5 seconds. What appears to be happening is occasionally the ball will be just about to hit the brick when the brick moves down a line, and now the ball is behind it. I'm not sure how to fix this. I have two ideas but I'm not sure of implementation. 1 solution would be to check where they were and where they are going to be before rendering the frame. Then if they crossed paths, then register the brick as hit. Solution 2 would be change how the bricks move. I could maybe slide them down line by line, instead of a jump down. I'm not sure of this will fix the issue or not. Any ideas?
    • By Pixeye
      I wrote an extension for unity inspector that allows to group/fold variables. 
      Available on github  , cheers!

       
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!