Last visit was: It is currently Thu Mar 28, 2024 1:14 pm


All times are UTC-05:00




Post new topic Reply to topic  [12 posts ] 
    Author Message
     Post subject:Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sat May 31, 2008 12:24 am 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    Hello all,

    I'm trying to find a collision detection algorithm or tutorial or something and I can't find squat. I know there's tons of stuff out there, but I'm generally not good with Google searches. I checked GameDev.net but couldn't find anything that worked. All help is appreciated.

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sat May 31, 2008 6:46 am 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    2D or 3D?

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sat May 31, 2008 10:11 am 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    Gah!

    3D. (I could'a' swore I put that in the first post!)

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sat May 31, 2008 10:11 pm 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    Best to go with a preexisting physics engine. I highly recommend PAL with ODE.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sun Jun 01, 2008 1:08 am 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    I downloaded PAL and ODE and then it told me to use some crazy Unix thing to install it, and I can't figure out how in the heck to do it. Am I downloading from the wrong location, or am I just not understanding what they're trying to tell me?

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sun Jun 01, 2008 5:13 pm 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    ODE and PAL both have xcode projects.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Sun Jun 01, 2008 10:36 pm 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    Quote:
    ODE and PAL both have xcode projects.
    Then they must not be standard, because I can't find any projects on my computer, either what I downloaded or on the hard drive.

    (i.e., link?)

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Mon Jun 02, 2008 6:30 am 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    *shrug*

    You can easily put together an xcodeproj for PAL, and as for ODE, if you don't like it, swap in another physics library. That's the beauty of PAL.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Mon Jun 02, 2008 10:21 pm 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    PAL is 100 files! I add that to my project and I'll be lost trying to figure out what the heck I'm supposed to do. What do you do?

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Tue Jun 03, 2008 1:08 am 
    Literally Nine
    User avatar
     

    Joined:Sat Apr 02, 2005 3:31 pm
    Posts:1171
    Location:The vicinity of an area adjacent to a location.
    Not to rain on your parade, but if you can't figure this out, perhaps you have bit off a bit more than you can chew?

    _________________
    - Tycho

    Image


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Tue Jun 03, 2008 6:27 am 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    I'm still a beginner, and if I were to start a project like this I'd be discouraged for awhile when I realize it's too much.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Collision detection algorithm/code/tutorial [SDL, OGL, C++]
    PostPosted:Tue Jun 03, 2008 9:18 am 
    User avatar
     

    Joined:Sun May 11, 2008 8:40 pm
    Posts:33
    Website:http://adam-0.tripod.com/index.html
    Location:Karith Station
    Quote:
    Not to rain on your parade, but if you can't figure this out, perhaps you have bit off a bit more than you can chew?
    This is actually what I need for the next step in my programming. The problem is, I can't figure out how to make frameworks (and I would stick the files in one, but it's (Xcode) confusing me badly).
    I just thought that maybe I could put all the files in a subfolder in Xcode - it would work, just it wouldn't be as neat as a framework, and I'd have to add the files to each project. *goes and tries it*
    That's an interesting way to do it... I still don't understand how to use it, though. Anybody have a tutorial they would be willing to link?
    Quote:
    I'm still a beginner, and if I were to start a project like this I'd be discouraged for awhile when I realize it's too much.
    It's a lot harder for me because I have finals week next week in school, so I'm trying to do a hundred different things and then add this into it. The point is to stick with it, though, and get it done. It's taken me a few months what a full-time programmer could have done in weeks, but I think I'm making a lot of progress considering what else I have to do in Real Lifeā„¢.

    _________________
    - adam_0
    StarCraft 2: Immortal
    "The Undeveloped Story" (my blog)


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 14 guests


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova