User Tag List

Results 1 to 5 of 5

Thread: Need help mimicing 3D walls for 3D game

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    35
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Need help mimicing 3D walls for 3D game

    I'm working on a simple 3D game. The trick is I found a shader that bends Actives into trapezoidal shapes to make them appear that they're 3D, so my goal is to make a game that looks similar to Wolfenstein 3D (where everything is clearly made of grid-based square walls). I've gotten decently far in creating a 3D effect. The wall scales in size according to how far away the player is and the wall slides left or right depending on where the player is standing. However, all of this so far is without the player turning. I've been able to tell mathematically where the individual wall is by how far it is and by how many degrees it sits from the player, but I need to figure out how to slide the wall even more depending on where the player is looking. I've pretty much hit the edge of what I know so I'm turning to the forums for help.

    Here's a Zip file containing the mfa and 3D shader in case anyone wants to take a look. 3D Test Project.zip

    Here's the code for determining distance: Abs(ODistance( "Vertical Wall", X( "Active" ), Y( "Active" ) ) - 1000) / ODistance( "Vertical Wall", X( "Active" ), Y( "Active" ) )
    Here's the code for moving the wall across the screen: Frame Width / 2 + ( Not(Y( "Active" ) - Y( "Vertical Wall" )) ) + ( ATan2(Y( "Active" ) + Y( "Vertical Wall" ), X( "Vertical Wall" ) + X( "Active" )) + Angle( "Active" ) )

    The distance part I'm pretty happy with. It could definitely use some tuning but it works the way I want, where when it's large (or up close) it scales pretty fast but when it's small (or far away) it doesn't scale much. I point this out because it works opposite to just "Add 1 to scale every x" where it scales fast when small but appears to slow down the larger it gets. I want this same concept applied to it's location across the screen, except it's really tricky. When the player is physically moving, the wall shouldn't move much when it's far away, but it should move a lot when the player is up close. However, when the player is turning, it should move a lot in the distance, but not much up close.

    This is definitely a doozy and I greatly appreciate any help and insight anybody can give.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    596
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    For a Wolfenstein game, I'd strongly recommend this: https://clickstore.clickteam.com/p3d_3d_framework

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    35
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by elvisish View Post
    For a Wolfenstein game, I'd strongly recommend this: https://clickstore.clickteam.com/p3d_3d_framework
    I appreciate the recommendation, but I'm looking to beat my head against a brick wall and make it myself. If push does come to shove, I can take a crack at Firefly which I've never touched despite paying full price for it.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    596
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Totally understand, I'd be the same! Firefly is capable of 3D of course, but having owned both, I'd suggest that P3D is probably a more suitable tool for a Wolfenstein-type game, and it's a lot easier to design stuff in the frame editor and turn it into 3D than Firefly, since P3D uses regular actives and their animation frames for textures.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    35
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm effectively doing the same thing, except probably not as large scale or user friendly. This is just a little idea/exercise I wanted to do, but then I hit a road block where, plain and simply, I'm not smart enough to do the math needed to get the 3D effect I need. I'll keep trying but if I don't get anywhere it's no problem. I appreciate the help!

Similar Threads

  1. Walls
    By Lukiester in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st March 2014, 07:08 AM
  2. how to collide with walls?
    By MostDreaded in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 31st December 2010, 02:43 PM
  3. Help with walls
    By Grim in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 29th July 2009, 09:08 PM
  4. Rotating walls
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th April 2008, 01:29 PM
  5. Walls in iso?
    By Horn in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th June 2007, 09:04 AM

Posting Permissions

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