User Tag List

Results 1 to 10 of 10

Thread: Pseudo 3D water scaling?

  1. #1
    No Products Registered

    Join Date
    Sep 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pseudo 3D water scaling?

    Hi all, I'm a bit confused as to how I would go about making water scale to look 3D.
    The best example I can think of at the moment is Sonic 3's hydrocity zone

    http://www.youtube.com/watch?feature...Hu_qIjxQ#t=11s

    Notice how the water scales to follow the character to give the illusion of depth.

    Any idea how this would be accomplished in MMF2?

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe look into the mode 7 object or the perspective object. I don't think the former is optimized for HWA mode however. Maybe someone else has a better solution?

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    To get the scaling of the water surface is easy- just have it be a flag 2d object which you rescale its Y coefficient relative to your distance.
    But in order to get it to parallax properly as you scroll along the X (top scrolls slower than bottom), thats where it gets tricky.
    You *could* do that with just using multiple parallaxing objects, maybe 5-8 different water actives, which give an individual X offset
    or, you could find a repeating pattern of the LCM of the parallax offsets at some given lower resolution, and have your object graphic be cleverly designed to repeat over that interval
    for example, if you had them at an X coefficient of 1:2:4:8:16, then you could have a 16 pixel or 32 pixel long repeating pattern, and simply repeatedly blit that with a text blitter or something
    or even have 16 different animations for 1 object that is rescaled, and choose between them based on the modulo of the camera's x position

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about just using mulple layers with differet X and or Y coefficients?

  5. #5
    No Products Registered

    Join Date
    Sep 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys, I think I'll try Pixelthief's suggestion, I have no idea how to use mode 7.

    Would anyone know of an existing example for this?

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    There is several examples in your Examples Folder in the MMF2 directory.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Haha, the moment I read the thread title I immediately thought 'Hydrocity Zone'. The exact same effect is a bit tricky to pull off nicely in MMF because it kind of requires drawing only parts of the water parallax surfaces. If you don't want your water to be split up into multiple layers and just need a similar 3D effect (based on one texture that is projected in 3D), you could probably use a shader for HWA (Werbad's 3D shader?) or the Perspective Object or whatever.

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Monokkel's Avatar
    Join Date
    Sep 2010
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made an almost identical effect using the parallaxer-object. Works fine, but still looks a bit off when scrolling along the x-axis.

  9. #9
    No Products Registered

    Join Date
    Sep 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, I think this will work quite nicely. Thanks!

  10. #10
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Looki View Post
    Haha, the moment I read the thread title I immediately thought 'Hydrocity Zone'. The exact same effect is a bit tricky to pull off nicely in MMF because it kind of requires drawing only parts of the water parallax surfaces. If you don't want your water to be split up into multiple layers and just need a similar 3D effect (based on one texture that is projected in 3D), you could probably use a shader for HWA (Werbad's 3D shader?) or the Perspective Object or whatever.
    Also I think it's Donkey Kong Country 2 that uses this exact same effect.

Similar Threads

  1. Pseudo-3D background
    By Tsun in forum File Archive
    Replies: 4
    Last Post: 12th June 2013, 04:43 AM
  2. Pseudo-3D Engine
    By mdvgames in forum File Archive
    Replies: 1
    Last Post: 3rd June 2012, 11:44 AM
  3. Pseudo 3D Starfield (APK + MFA)
    By CrystalNoir in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 27th March 2012, 10:02 AM
  4. pseudo 3d help needed... please.
    By SEELE in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th August 2008, 09:19 PM

Posting Permissions

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