Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 03 Jan 2005
Offline Last Active Feb 05 2013 08:14 PM

Topics I've Started

Player-Wall collision detection in mmo/online server

05 February 2013 - 08:03 PM

[This is related to collisions, so I am assuming this is the correct forum]

Let's assume the following:

  • I have a server which stores the player's position (float x, float y, float z) [Don't worry about precision... just simplifying]
  • Client sends the server it's updated position ever 250ms or so.
  • Server has bounding boxes for all buildings & players ( Let's say each wall has it's own AABB or OBB. Do not assume a "tight" fit)
  • For broad-phase collision detection, I use spatial hashing based on the bounding boxes.
  • Client does full-on triangle level collisions locally.

My question: - How can I quick calculate if a player has passed through a wall on the server only using AABBs or OBBs. Or, is there no way to do that without going to triangle-level collision detection. Maybe some other data structure? Any help would be appreciated - storing something else other than AABBs or OBBs?

Comparing Pixel Values

17 December 2007 - 06:09 PM

Lets say I have one image of 10 pixels, and another of 1 pixel. I need to see which of the 10 pixels best matches the other image - not value wise, but how a human would see it. For example, two shades of blue. First I used: r2+toleration < r1 < r2-toleration g2+toleration < g1 < g2-toleration b2+toleration < b1 < b2-toleration Second, I used Euclidean distance on the RGB aka (r1-r2)^2+(g1-g2)^2+(b1-b2)^2 < toleration It didn't not work well - it worked pretty badly in fact. I also tried using HSB - but no luck. [So far, #1 worked the best for me - best for shades of a color, but not good enough :( ] Can anyone suggest some better ways to do it? P.S. Does anyone know how to convert HSB to 3D space?

Note Generator??

08 November 2007 - 09:49 AM

There was a famous program were you could input a large piece of text and it would generate notes from it. Does anyone know its name or have a link?

Special Relativity: Man behind the myth... erm theory

25 June 2007 - 01:48 PM

http://digg.com/general_sciences/Was_Einstein_only_partially_responsible_for_discovering_general_relativity I know it takes a *while* to read through the discussion (Some might find it extremely boring since it is physics/history "talk", but it is quite interesting to me). If you are truly interested in the topic, it is definitely worth a read. After spending a few hours reading, my view point has drastically changed.

This message is from the future

21 June 2007 - 04:15 PM

======================================================================== Some papers related to this thing. http://www.phys.uconn.edu/~mallett/Mallett2000.pdf http://www.phys.uconn.edu/~mallett/Mallett2003.pdf Project Website: http://www.phys.uconn.edu/~mallett/main/main.htm ======================================================================== Objections/professional discussion of this time machine: http://www.physicsforums.com/showthread.php?t=42834 http://www.physicsforums.com/showthread.php?t=147946 http://arxiv.org/abs/gr-qc/0410078 http://en.wikipedia.org/wiki/Ronald_Mallett#Objections [Edited by - Dansas on June 22, 2007 6:55:35 PM]