dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: 3d combined objects

  1. #1
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    947

    3d combined objects

    Hi, in flash as3 there are a lot of things you can do in 3d, for example this flash 3d game: http://skyizo.com/3d_demo.swf , but it is really hard for 2 3d items to share a space like in this hitman game where 2 people are inside of each other with insane sharing of depths, it is almost like each pixel has its own xyz depth space, how can it be done in flash:

    First 3D Intersection program in AS3 Possibly: https://rpguy.weebly.com/uploads/2/0...g_rotation.swf
    And source here: https://rpguy.weebly.com/

  2. #2
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    You don't render scenes or do collision detection at the pixel level, there's too much information to process. Instead you build 3d models that represent the objects and render them using textured polygons. I doubt anyone is investing in building new 3D engines for Flash anymore but you can check out Stage3D (built into Flash) or a third party engine like Away3D.
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

  3. #3
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    947
    Well at that point I cant be laying out the 3d movieclips and using rotationX Y Z on it, goto do pure math for that... Come to think of it that must be the most impressive thing a game can do maybe that's why they called it hitman, when you hit the man you see the intense depth that's happening. I am beginning to notice that flash runs 3d really good though and with good math a xbox looking game can be done.
    First 3D Intersection program in AS3 Possibly: https://rpguy.weebly.com/uploads/2/0...g_rotation.swf
    And source here: https://rpguy.weebly.com/

  4. #4
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    The model specifies how resistant each node in the model is to deformation and the physics engine sits on top of that to figure out how the model should react when a collision happens. This allows for some very realistic interactions.
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

  5. #5
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    947
    I cant say this version I made for 3D intersecting is the most dev-friendly written, but its my first and I released the source code in video link for flashkitters, maybe a future version will help make intersecting many movieclips much easier, but for now you can enjoy just 1 intersection:

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center