Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Xith without a canvas?  (Read 695 times)
0 Members and 1 Guest are viewing this topic.
Offline Chamooze

Junior Newbie





« Posted 2005-06-22 21:29:48 »

I'm looking to do a multiplayer (client - server, not p2p) game,  and on the server run (preferably) a 3d scenegraph library to make picking, collision detection etc a bit easier for a newbie game programmer such as myself. I actually started implementing the server in Java3d, but turns out that J3d *requires* a Canvas3D to run, else there's a huge memory leak type bug and the application crashes after a while.
Does Xith3D have a similar requirement, or can that part of the engine be "left out"?
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #1 - Posted 2005-06-23 12:43:21 »

No xith3d also needs to have a canvas to render into (has to do something with OpenGL I think). If not I would be really surprised.
But why do you anyways try to do the rendering on the server? You would have to transfer all the data then to the client, which would result in pretty poor graphics (like internet tv).

But If you don't want to render anything, you can sure run it on the server. In xith you actually have to set up the render, so you can easily leave that part out. But I don't know then what the use of a 3d library would be.

Or what do you plan to do?

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline Chamooze

Junior Newbie





« Reply #2 - Posted 2005-06-23 13:27:11 »

Well, as I said in my first post, I want the 3d library to make it easier to check collisions, do some picking etc.. Basically, I want to set up a scene graph, add a bunch of "Entities" (extending BranchGroup) into it, check for collisions, do movement and picking, then send data to the clients about what Entities are where, if they've taken damage etc etc.

The collision detection and movement can't be done on the client (would be a cheaters paradise Smiley ), so I figured the simplest solution would be to set up a 3d library of some sort on the server and let that handle that stuff (I really don't have a clue how to write that myself).
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #3 - Posted 2005-06-23 14:06:21 »

I believe Jme can run in silent mode with no window, it uses PBuffers instead i believe. However, jme is not based on Java3D and you might find it different from java3d and Xith. Thus the move is not as easy as it is from java3d to xith. Having said that, the scenegraph of jme is based on NetImmerse (not gambryo) which has quite a few titles to its belt.

http://www.jmonkeyengine.com

Regards,
DP

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #4 - Posted 2005-06-23 21:08:50 »

nah ok then that's pretty simple for xith3d because when you want to render in xith you do something like this:

1  
2  
3  
4  
5  
6  
public run() {
  while(true) {
     //do changes to the scene (like the stuff you want to do on your server)
    //render - so you can simply leave that part out - it even saves a bit of work!!
 }
}


But I will have to warn you: xith3d is not optimal for collision detection. The collision package probably doesn't even work. So many xith3d programmers who want to do something with physics use odejava.

Arne

:: JOODE :: Xith3d :: OdeJava ::
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!