Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  3d transform data thru socket  (Read 4300 times)
0 Members and 1 Guest are viewing this topic.
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #30 - Posted 2003-01-28 18:03:00 »

quick question....

I have set BoundingBox's on all GameObjects on the server.  I am setting there transform with the transform of the players and projectiles movements.  But the BoundingBoxes never move.  They are allwasy sitting at 0,0,0.  Thus when I check for intersects of the bounding boxs it is alway strue for all objects, since the BoundingBox is sitting in the center for all objects.

Any thoughts?

M

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #31 - Posted 2003-01-29 18:09:09 »

Quote
ok, Ill switch my code back so my movement behavior is setting my local move for the players transform group and send that location to the server.  Since I am using wakeup on frame(0) and the server is sending updates every 30 ms to all players, should I put a 30ms delay in the framerate?  So they are attempting to be on the same page?



You're catching on quickly Smiley  Yes, this magic number is something you want to adjust a bit depending on your dead reckoning strategy (how long do you want the player to be able to update their local world state before getting some sort of confirmation from the server about the state of other objects in the world).

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #32 - Posted 2003-01-29 18:12:12 »

Quote
quick question....

I have set BoundingBox's on all GameObjects on the server.  I am setting there transform with the transform of the players and projectiles movements.  But the BoundingBoxes never move.  They are allwasy sitting at 0,0,0.  Thus when I check for intersects of the bounding boxs it is alway strue for all objects, since the BoundingBox is sitting in the center for all objects.

Any thoughts?

M


Unfortunately I don't have a solution for ya. You're doing the right thing. Basically you're building a model of the game on the server and accepting as input the feed from other players and then sending out the world state based on what the servers model looks like.

Not sure however why the bounding primitives aren't moving. This is going to likely be a Java3D thing. Do a quick log of what you're receiving and what you're updating the objects to on the server and see what is resetting the transformation matrix for them and making them stay at the world origin. Sounds like a bug in the world updating code.

But I can say that you are doing exactly what you're supposed to be doing.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #33 - Posted 2003-01-29 19:49:17 »

I have solved the bounds collision detection and it is working so far.  Need to test with muliple users on diff systems.  RIgh tnow I run the server and 2 clients on one box and I get some processor slow down.

M

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #34 - Posted 2003-01-30 15:46:16 »

Send me an AIM one evening (I'm on Eastern time, try me after 8PM EST) and I'd be happy to help ya out.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #35 - Posted 2003-02-01 19:37:37 »

Strange question...

On my pc at the office and one of mine at home, with low end graphics cards, the game runs well.  On my "good" system at home with a GeForce II card, my game just is dismal in speed.

Any thoughts?

M

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #36 - Posted 2003-02-02 14:48:20 »

That I couldn't answer for ya without a clear understanding of how Java3D is using your machine.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #37 - Posted 2003-02-13 13:04:43 »

Howdy!!

Been away from my little project a while, had to rewrite a VB desktop application at work and chose to use JAVA Swing.  Going great.

Anyway, have the server side collision detection going well.  When projectile hits a player, it logs the hit and removes itself from all players universes.

As soon as I can figure out what is wrong with my particualr machine I will get you a copy to test some.

Thanks

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #38 - Posted 2003-02-13 13:06:08 »

No problem. Post it here in the forums as others will likely choose to participate as well.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #39 - Posted 2003-04-03 13:04:57 »

ok, I have done some more work, not much.  But have hit a wall.
I was going to set up a test environment, but have found that if there are
two players on and one leaves the others system becomes horribly slow and bogged
down.

fiddlesticks!!!

M
:-/

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #40 - Posted 2003-08-27 20:32:29 »

been away for a while.  Corporate portal stuff.  Anyway, I have gotten thru the bugs listed in this thread and have a pseudo-working game, thanks to Mr. Pierce.  As soon as I have a chance, I will post some client code to play with, for those interested.  

In my absence, I see JOGL has bloomed into discussion as well as the Xith3d engine.  I may have to convert down the road!  Grin

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline DrQuincy

Junior Member




Vwls hv bn bnnd!


« Reply #41 - Posted 2003-08-28 14:15:37 »

I'm most interested in your project Mickey, looking forward to seeing it already  Cool
Pages: 1 [2]
  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.

pw (25 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (19 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!