Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Rendering Spheric Biotope in Level

Discussion in 'Scripting' started by JekoClips, Nov 29, 2023.

  1. JekoClips

    JekoClips

    Joined:
    Oct 27, 2018
    Posts:
    2
    Hey this is my first post here,

    I really do not know how I can describe what I want to achieve - I have a world (level) and I want the Character to be able to create a Sphere - where within - the same world is rendered, but with other seasons. Like in the default world it is summer, but in the Sphere it is winter. This is not just textures, as the seasons have other ways open, so they are slightly deformed and have new/other objects. All of this in 3D - as in 2D it would be simple.

    My first thought was Render Pass or Shaders, but I guess that won't work, because I also want different objects to be seen in the sphere.

    Second thought was creating the world 4 times (each Season) and place Cameras on the same positions - I tried with Render Texture but this looks crap.

    Also I want to be able to walk out of this Biotope and when I look inside the Sphere it is Winter but out of it, there is summer.
     

    Attached Files:

    Last edited: Nov 29, 2023
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,297
    Sounds tricky! Start playing with ideas, layering stuff, iterate towards what you want. It might turn out that your idea is more like a simulator than a visual effect and only you can know this as you iterate.



    I like this guy's approach:

    Imphenzia: How Did I Learn To Make Games:





    Get to it, it's not gonna do itself here in the forum!

    Stop making excuses!





    If you encounter issues, this is a handy way to solicit help:


    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220

    This is the bare minimum of information to report:

    - what you want
    - what you tried
    - what you expected to happen
    - what actually happened, log output, variable values, and especially any errors you see
    - links to documentation you used to cross-check your work (CRITICAL!!!)

    The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven't put effort into finding the documentation, why should we bother putting effort into replying?



    If you post a code snippet, ALWAYS USE CODE TAGS:

    How to use code tags: https://forum.unity.com/threads/using-code-tags-properly.143875/

    - Do not TALK about code without posting it.
    - Do NOT post unformatted code.
    - Do NOT retype code. Use copy/paste properly using code tags.
    - Do NOT post screenshots of code.
    - Do NOT post photographs of code.
    - Do NOT attach entire scripts to your post.
    - ONLY post the relevant code, and then refer to it in your discussion.
     
    JekoClips likes this.
  3. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,581
    This sounds like something that can be done with a stencil buffer shader. I've never worked with these before, though, so I can't really help other than suggesting the buzzword to google.
     
    JekoClips and Nad_B like this.
  4. Nad_B

    Nad_B

    Joined:
    Aug 1, 2021
    Posts:
    600
    Looks like you're right! I did a quick search and this video popped out:



    Looks similar to what OP's trying to do.
     
    JekoClips likes this.
  5. JekoClips

    JekoClips

    Joined:
    Oct 27, 2018
    Posts:
    2
    @kdgalla & @Nad_B thank you very much, that looks already stunning. I will research further in this topic - Awesome!

    @Kurt-Dekker also thanks - I will not make an excuse and try my best to deal with this Challenge, but I needed a starting point :)
     
    Nad_B likes this.