Thread: Isometric Bounding Box Algorithims

  1. #1
    Registered User
    Join Date
    Apr 2004
    Location
    Ohio
    Posts
    147

    Question Isometric Bounding Box Algorithims

    Hi.

    Can anybody help me with the basic algorithims for this sort of detection? I would really appreciate it.

    Thanks!

    Leeor...

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Have you searched using google yet?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Location
    Ohio
    Posts
    147
    I have, actually. I really haven't found anything yet.

    Leeor...

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    So what exactly is your problem? How hard is it to make a boarder and add simple boundry checking?
    Code:
    if( xposition+xmove <= lowerxbound || xposition+xmove >= upperxbound )
        bounce( );
    Do the same thing with y. Then just decide how you want the box to bounce, and you're done. It's a fairly simple concept if you take a moment to think about a box moving around in a given boundry. The hard part is deciding how you want to handle speed and bounce. Really though, all that is up to you, so even that's not that hard.

    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Apr 2004
    Location
    Ohio
    Posts
    147
    You seem very arogant for someone who can't read properly.

    I know how to make a box bounce around the screen. How do you calculate an isometric BOUNDING box, not BOUNCING box.

    If you don't know what an isometric view is, think about Age of Empires, X-COM, or StarCraft and you have an isometic engine.

    Leeor...

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I can read just fine. I just don't see the how it becomes more complex just because it's isometric. It's still a box. It still has sides. They still can overlap the edge. You still make it bounce. I think you're over thinking it.

    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    Registered User
    Join Date
    Mar 2004
    Posts
    27
    I think he means that he wants to know how to calculate the boundaries of an isometric box because they are boxes at angles.

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    The same way you calculate it for non-isometric boxes. If you can measure the diagonal across a box, that's all you need to do. You could always draw a picture of it, measure it, and use the dimensions for your calculations if you can't do the math.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bounding Box Collision...not working
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 05-31-2005, 06:31 AM
  2. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  3. Bounding box problems with ID3DXSprite
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 12-16-2004, 09:15 AM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM