Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (612)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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 828 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 Devvie

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?


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

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.


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline arne

Senior Devvie

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:

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.


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

Coldstream24 (11 views)
2015-09-03 00:41:28

Andrew_3ds (23 views)
2015-09-01 19:08:10

afikri (16 views)
2015-08-31 09:30:22

afikri (24 views)
2015-08-31 09:30:07

afikri (12 views)
2015-08-31 09:27:24

afikri (16 views)
2015-08-31 09:26:40

Roquen (23 views)
2015-08-29 11:30:54

GamerC4 (34 views)
2015-08-22 20:38:50

GamerC4 (31 views)
2015-08-22 20:37:18

GamerC4 (37 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!