Results 1 to 2 of 2

Thread: per pixel collision for 2d Images possible?

  1. #1

    Default per pixel collision for 2d Images possible?

    HI,

    I am wondering is per pixel collision or odd shaped collision detection of 2d images possible in proton?

    Thanks

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Hi - well, vanilla Proton does not have any collision features - it isn't a game engine.

    Proton should be thought of more like SDL, just an abstraction of rendering, file access, audio, etc.

    The only place is starts to provide more "engine-like" features is the GUI support (buttons, clicking, input boxes, etc) , which is optimized for mobile. (but works for desktops too, such as supporting cut/paste with the rest of the OS)

    It does have ways to access the pixel data of any image loaded for you to look at and do your own pixel based collision or shape build though. (the SoftSurface class can load any texture and let you examine the pixels)

    For 2d collision/physics I'd recommended integrating Box2d.. you can setup vertex based shapes. If you use Irrlicht (a real game engine) with Proton it does come with some decent 3d collision stuff.. but you said 2d so that probably wouldn't be what you needed.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. New OpenGL Pixel Buffer Object Example
    By rombust in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 06-25-2011, 01:35 PM
  2. pixel and particle physics as well as other sujestions
    By attle in forum Novashell Game Creation System
    Replies: 2
    Last Post: 05-18-2008, 07:32 AM
  3. Images
    By attle in forum Novashell Game Creation System
    Replies: 0
    Last Post: 02-04-2008, 09:45 AM
  4. CL 0.8 pixel data deleter class
    By Trigve in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 10-27-2007, 11:33 AM
  5. The fastest way to draw pixel by pixel?
    By Otto (Strange) Halmén in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-06-2006, 07:32 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •