Author Topic: character bounding box  (Read 2038 times)

Nikodemus

  • Prospects
  • Veteran
  • *
  • Posts: 1808
    • View Profile
character bounding box
« on: March 31, 2008, 10:44:33 pm »
What's the shape of character bounding box?
I'm interested with the largest box of all player character, its dimensions in the widest intersection. If it is a square, im interested with its diagonal :)




What you can failure tommorow, failure today.


Better click for shiny stylez Help me with images!

Nikodemus

  • Prospects
  • Veteran
  • *
  • Posts: 1808
    • View Profile
Re: character bounding box
« Reply #1 on: April 03, 2008, 08:18:30 pm »
gues, noone really knows ;)
the diagonal is like 1m at most or so?



What you can failure tommorow, failure today.


Better click for shiny stylez Help me with images!

Vornne

  • Testers
  • Hydlaa Resident
  • *
  • Posts: 189
    • View Profile
Re: character bounding box
« Reply #2 on: April 04, 2008, 05:11:32 am »
Well, it's either set in the database in the race_info table, or the one crystal space makes up for the model. I'm guessing it's a rectangular box, as there are three fields in the database.

The crystal space bounding boxes are mostly not very accurate, on a test server check the height of the label above a male ynnwn, then compare it to the height above a dwarf (if I remember right). The label is a fixed distance above the bounding box, see src/client/entitylabels.cpp:303.

And if I recall correctly, the height of the ylianm model is about 1.8 units or so, so take the units to be meters and you should be ok.

neko kyouran

  • Guest
Re: character bounding box
« Reply #3 on: April 04, 2008, 06:38:18 am »
I recall an issue with the black fenki model where they would get stuck in certain places due to a bad size of their bounding box.  Find that thread, and that would give you the answer if it was a db issue or an issue with their char model.

my poor fenki was stuck in the tavern for weeks.......

Vornne

  • Testers
  • Hydlaa Resident
  • *
  • Posts: 189
    • View Profile
Re: character bounding box
« Reply #4 on: April 05, 2008, 01:42:53 am »
I probably was not very clear ;)

The bounding box can either be set in the database, or if it is not set, it uses the box that crystal space generates for it.

My guess is that some models use the default box, but with other models where the box was too incorrect,  it is overridden in the database.

Nikodemus

  • Prospects
  • Veteran
  • *
  • Posts: 1808
    • View Profile
Re: character bounding box
« Reply #5 on: April 06, 2008, 12:21:01 am »
I think you was quite clear. it is only that I don't own test server and so cant even look to database ;P
this: http://devcast.ps-mc.net/
is quite good though, i know who to ask when i will need to know dimensions badly ;)



What you can failure tommorow, failure today.


Better click for shiny stylez Help me with images!