Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Wormhole tunnel Effect

Discussion in 'Made With Unity' started by FTheCloud, Jul 17, 2011.

  1. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Some people over at Unity Answers Wanted to see a result of this question:
    http://answers.unity3d.com/questions/142106/wormhole-tunnel-effect.html

    So here it is, check it out.

    Here

    Not close to done yet but shows the basic concept of what I was talking about.
    Only difference is that the animation is fixed instead of procedural.

    If you have suggestions leave them and tell me what you think.

    $Screen shot 2011-07-17 at 10.04.54 AM.png
     
    Last edited: Jul 18, 2011
    domkia likes this.
  2. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Nice! How is it textured? Such effect is very usefull.
     
  3. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    @Demostenes The texture is wrapped around a tunnel mesh i made. Its animated by a script that changes its offset over time and cycles through different materials.
     
  4. Kith

    Kith

    Joined:
    Jun 12, 2011
    Posts:
    94
    Very nice...I'm gonna have to look into this
     
  5. Artimese

    Artimese

    Joined:
    Nov 22, 2009
    Posts:
    794
    Its... sooo... mesmerizing... Awesome job!
     
  6. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Edit: Posted a version online so you don't have to download the HTML file. Just Click on the link.
     
  7. TiG

    TiG

    Joined:
    Feb 28, 2011
    Posts:
    311
    Wow, it is wonderful. Some textures are very good for wormhole.
     
  8. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,462
    pretty cool!
     
  9. Zansafer

    Zansafer

    Joined:
    Jan 21, 2011
    Posts:
    26
    wow, brought me back to my days of playing Asheron's call a bit
     
  10. Zencraft

    Zencraft

    Joined:
    Jul 18, 2011
    Posts:
    6
    Good work. If you incorporated more mesh modifies, it would be possible to make some crazy tunnel effects. Found this plugin for inspiration (available in Unity Assert Store for 100 bucks, I am not affiliated) for inspiration:

    http://www.youtube.com/user/Gawaine1066#p/u/16/GIgRGxHW3cc

    Are you interested in sharing the Unity project files and scripts that you have made so far, to kick-start wormhole creation as a community project?
     
    Last edited: Jul 18, 2011
  11. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
  12. lilymontoute

    lilymontoute

    Joined:
    Feb 8, 2011
    Posts:
    1,181
    Haha, did I just see a companion cube?

    Good stuff =)
     
  13. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Thanks for all the positive feedback guys, appreciate it.

    Oh, @Zencraft, I might put together a project file and post it later.
     
    Last edited: Jul 18, 2011
  14. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi, sorry for not being more explicit ( ok hippocoder, I will read more carefully your posts from now on ) !
    I have seen the source you mention and there are some pretty nice examples there ( entire blog and links are amazing ).
    I just provided the link as a source of further inspiration. Hope you can find it useful, the lemon and strawberry parts of Inigo's blog are full with interesting stuff.
    Thanks for sharing this amazing source and the very well done implementation in unity.
     
  15. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    @Ippokratis
    Haha, Yep.
    Figured that out, Changed my post.
     
    Last edited: Jul 19, 2011
  16. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    No problem and really, just keep those demoscene - like examples coming :)
    A-mi-ga-a-a-a-a-a-a !!!!!! ( Always wanted to say that, now, where is that plasma effect hiding ) ?
     
  17. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Update: Working on putting in animated textures.

    Don't have pro so I'm trying to figure out how to change the texture every frame without taking away from performance.
    (Building for iOS)

    I'll post source code and Meshes later.
     
  18. ScienceFiction

    ScienceFiction

    Joined:
    May 28, 2008
    Posts:
    393
  19. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    @ScienceFictionado, I already know about those, but they take to much performance out of mobile devices and drops the framerate.
     
    Last edited: Jul 20, 2011
  20. ScienceFiction

    ScienceFiction

    Joined:
    May 28, 2008
    Posts:
    393
    I'm shocked that UV scrolling is a performance drain. Have you considered writing a shader that does UV scrolling or some type of procedural generation?
     
  21. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Want it to work on the first gen. No big deal when its 3g and up but on older devices, at least mine, the uv animation seams to reduce framerate. The one I'm using right now drops the rate by about 3 but if I implement two at a time then it goes down about 4 more. Guess I could look into why its doing that on the first and second gen.
     
  22. ScienceFiction

    ScienceFiction

    Joined:
    May 28, 2008
    Posts:
    393
    That is really good to know, thanks. Are you using a script or just a shader to displace the UV? Maybe doing it entirely in-shader would work faster.
     
  23. FTheCloud

    FTheCloud

    Joined:
    Jul 5, 2011
    Posts:
    39
    Using scripts. I didn't even think to put it in a shader.
    Plus I probably have way to many math functions (*,/,-,+) in my script.
    I heard that can decrease performance on older models.
     
  24. Zencraft

    Zencraft

    Joined:
    Jul 18, 2011
    Posts:
    6
    Hi FTheCloud.

    I am still very interested in your tunnel mesh bender project file, if you are willing to share it. If the project files are mezzy, then it not a problem, as it will be a starting point for further exploration. I am willing to share know-how, when I have pushed my tunnel project forward.

    Cheers!

    // Zencraft
     
  25. Rush-Rage-Games

    Rush-Rage-Games

    Joined:
    Sep 9, 2010
    Posts:
    1,997
    WOOOOOOOW! That's awesome!


    That would be so helpful, this would be perfect for a title screen!
     
  26. tomekkie

    tomekkie

    Joined:
    Jan 23, 2011
    Posts:
    120
    Hi FTheCloud.,

    I like your wormhole a lot. I think if you put all the textures outside the webplayer it would decrease loading time to next to zero. I guess the webplayer without them could be as little as 10 - 30 kB. You can load the textures through www class and then cylcle through those already loaded.

    tomekkie

    http://virtualplayground.d2.pl
     
    Last edited: Aug 17, 2011
  27. Edge-Lee

    Edge-Lee

    Joined:
    Jul 13, 2012
    Posts:
    4
    Hey FTheCloud,
    Do you happen to have a tutorial for your demo? This effect really looks sweet!! :) I am very curious about the mesh deformation algorithm. :)
     
  28. chiako

    chiako

    Joined:
    Oct 17, 2012
    Posts:
    5
  29. Telemachus

    Telemachus

    Joined:
    Jun 20, 2013
    Posts:
    1
    Does anyone have any links or resources they can point me to on how to implement this effect? Any help would be very much appreciated. :grin:
     
  30. Rush-Rage-Games

    Rush-Rage-Games

    Joined:
    Sep 9, 2010
    Posts:
    1,997
    Anyway we could get this?
     
  31. Ninja_Coder

    Ninja_Coder

    Joined:
    Dec 31, 2012
    Posts:
    5
    Awesome Wormhole! Can we have a tutorial?
     
  32. daggasoft

    daggasoft

    Joined:
    Jun 29, 2013
    Posts:
    22
    I'm sorry but I can't find it. Where can I download the source for this. I'd like to mess around with it.
     
  33. seeMeNow

    seeMeNow

    Joined:
    Jul 7, 2014
    Posts:
    1