Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

► Curved World ◄

Discussion in 'Assets and Asset Store' started by Arkhivrag, Jul 28, 2015.

  1. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Try Spiral or Rollout bending effects.
     
  2. unity_95402159F21CC1EFA414

    unity_95402159F21CC1EFA414

    Joined:
    Sep 15, 2022
    Posts:
    2
    I'm not sure how badly I'm going to pay for it later with performance, but I've actually now made duplicates of my environment with the Classic Runner X Negative shader, and that has it looking the way I want. I will try Spiral eventually though thanks!


    Edit: I just realized my plan makes no sense after I add more than just the floor structure. I've been up for too long.

    Edit 2: Spiral Vertical Rolloff is crushing it! I love this tool.
     
    Last edited: Dec 8, 2022
  3. devlin0015

    devlin0015

    Joined:
    Dec 4, 2020
    Posts:
    1
    Hii, I just bought the CurvedWorld asset and Its showing the error in unity URP. Can you help me with this? upload_2022-12-21_15-40-5.png
     
  4. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Unity version?
     
  5. NinhNv15

    NinhNv15

    Joined:
    Jan 31, 2016
    Posts:
    5
  6. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
  7. DarkGate

    DarkGate

    Joined:
    Jan 26, 2016
    Posts:
    33
    upload_2023-1-9_2-47-1.png

    Seeing this error on the latest release, Jan 6, 2023. My current verison of Unity is 2021.3 LTS
    Did a search on this variable and its not found anywhere. Any help will be greatly appreciated.
     
  8. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Remove CW folder from the project, clear Asset Store cache folder (Amazing Assets subfolder) and re-download asset using Unity 2021.3.16 package manager.
     
  9. DarkGate

    DarkGate

    Joined:
    Jan 26, 2016
    Posts:
    33
    Hm... still seeing the error after clearing cache, redownloading, and reimporting. Just to be sure, "C:\Users\<User>\AppData\Roaming\Unity\Asset Store-5.x\Amazing ssets" is the path for me. Is this the correct location?
     
  10. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Yes, it is correct. You should be able to download version for Unity 2021.3.16.
    Looks like Asset Store server sends you package for Unity 2020.3. To make sure, check ReadMe file inside Installer folder, there is written Unity version package is designed for.
     
  11. DarkGate

    DarkGate

    Joined:
    Jan 26, 2016
    Posts:
    33
    upload_2023-1-9_6-7-35.png

    Yeah, you are correct, its sending me the 2020 version even though I'm current on 2021.3
    What should I do now?
     
    ChuletaGames likes this.
  12. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    You are using Unity 2021.3.5, update it to the latest 2021.3.16 and
     
  13. Lee1384

    Lee1384

    Joined:
    Jun 8, 2014
    Posts:
    9
    Hello,

    Could you tell me how to change the coordinates of the object once transformed by CurvedWorldUtilities.TransformPosition back to the original plane coordinates? The bend type uses little planet (y).
     
  14. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    There is no method for converting position from Curved World space to World space.
     
  15. chb0b

    chb0b

    Joined:
    Aug 28, 2018
    Posts:
    3
    i have the same issue, i've upgraded to 2021.3.16f1 and not fixed.
    edited:
    nvm, somehow it's working now. unity prolly reimported.
     
  16. y0u553ef

    y0u553ef

    Joined:
    May 2, 2017
    Posts:
    27
    Hello , how do I change Bend Type of material in runtime with script ?
    is it more optimal to duplicate material and assign to it different types on the project ?

    I am working with mobile devices , Thanks
     
  17. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Bend Type is a keyword inside material. Change it using Material.EnableKeyword.
    upload_2023-1-21_20-23-53.png

    But before that, make sure material supports that Bend Type.
    upload_2023-1-21_20-25-22.png
     
  18. Kolgrima

    Kolgrima

    Joined:
    Feb 2, 2009
    Posts:
    40
    I know this bug comes up a fair bit, but I'm getting:
    Code (CSharp):
    1. Assets\Amazing Assets\Curved World\Editor\Material Editors\Builtin\LitShader.cs(19,66): error CS0103: The name 'headerStateKey' does not exist in the current context
    I'm running the latest unity 2021.3.16f1 LTS
     
  19. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    You have imported package designed for Unity 2020.3 inside Unity 2021.3. There are not compatible.

    Remove CW folder from the project, clear Asset Store cache folder (Amazing Assets subfolder) and re-download asset using Unity 2021.3.16 package manager. Proper package should be downloaded.
     
  20. Kolgrima

    Kolgrima

    Joined:
    Feb 2, 2009
    Posts:
    40
    Ah yes, my apologies I imported CW before the upgrade. re-download and reimporting sorted the issue thanks!
     
  21. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    3
    Hello! I would like to know if this would be possible in a multiplayer game? Because I dont find how to make it work properly.
     
  22. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Not fully multiplier, but package includes split-screen example scene for two players (even described in the manual file).
    The main idea of which is to use separate CurvedWorldController script for each player and make it update CW shaders based on who currently renders the scene.
     
  23. VoodooAssets

    VoodooAssets

    Joined:
    Nov 20, 2017
    Posts:
    1
    Hello, yet again the same bug:

    Code (CSharp):
    1. Assets/Amazing Assets/Curved World/Editor/Material Editors/Builtin/LitShader.cs(19,66): error CS0103: The name 'headerStateKey' does not exist in the current context
    2.  
    I'm using Unity 2021.3.11 and I cannot update the Unity version because the whole team is working on this version of the Editor. How can I remove this bug without an update of Unity ? Thank you
     
  24. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    You have imported package designed for Unity 2020.3 inside Unity 2021.3. There are not compatible.

    Clear Asset Store cache folder (Amazing Assets subfolder) and download asset using Unity 2021.3.16 package manager. Then try to import that package into your project.
     
  25. OmarCureshot

    OmarCureshot

    Joined:
    Aug 5, 2020
    Posts:
    2
    Hi!


    I’m trying to add particles to your package CurveWorld and the particle packages that i use has some other shaders too. So my question is do you know any way to combine these shaders together so i can use particles the way they are with your shader. By the way i’m trying to combine with Polygon Arsenal package.
     
  26. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Check manual file (page 39) it explains how to integrate CW inside shader.
     
  27. AbundantExp

    AbundantExp

    Joined:
    Feb 8, 2022
    Posts:
    1
    I would like to make something like Classic Runner X Positive, but where it bends across the y-axis and not the x-axis. Is that possible to do, and if so, how can I?

    My game is a 2D game but it would be a pain to rotate all of my logic so that it fits how it bends in Class Runner X Positive.
     
    Last edited: Mar 14, 2023
  28. Ceciaman

    Ceciaman

    Joined:
    Jul 30, 2013
    Posts:
    46
    Hi,
    I've this problem.
    There is only one mesh with one texture (Amaze/Lit).
    How can sove it? Untitled-1.png
     
  29. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Increase mesh vertex count along bending axis.
     
  30. yyylny

    yyylny

    Joined:
    Sep 19, 2015
    Posts:
    91
    Can this asset be used to create an S-curve effect, like in Crash Bandicoot on the run (I want the curve to go slightly to the right and back to the left or forward):
    Screenshot 2023-03-21 at 12.45.22 PM.png
     

    Attached Files:

  31. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    No spline type bending.
     
    Last edited: Mar 22, 2023
    yyylny likes this.
  32. CelestialShark

    CelestialShark

    Joined:
    Nov 20, 2021
    Posts:
    11
    Hey, I'm curious if for the little planet, is it possible to create a perfect sphere for a planet? I was playing around with the tutorial and realized that there is a barrier cutoff. I'm not sure how to get the planet to wrap completely around. It looks like it's only a fourth of a planet with the tank demo.
     
  33. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Converting plane into real 3D sphere is not possible. This is explained in the manual file, chapter Bend Types. And even on the store page description.

    Converting plane into sphere isn't possible mathematically.
     
  34. ChuletaGames

    ChuletaGames

    Joined:
    Apr 7, 2020
    Posts:
    5
    Hi i recently buyed the asset and i had this problem, im experimental with VR with openXr, and i can´t find the solved issue to this problem.
    Im using
    Unity 2021.3.14f
    URP 12.1.8

    Assets\Amazing Assets\Curved World\Editor\Material Editors\Builtin\LitShader.cs(19,66): error CS0103: The name 'headerStateKey' does not exist in the current context

    Im do it all that of clear the chache of asset , and still dosent work, maybe i lose some point in the way to set up.

    Thnx and sorry for my english XD.
     

    Attached Files:

    Last edited: May 19, 2023
  35. RolfRothgerber

    RolfRothgerber

    Joined:
    Jul 11, 2012
    Posts:
    9
    Hey, having the same problem with URP 12.1.7 in Unity 2021.3.10f1
     
    ChuletaGames likes this.
  36. ChuletaGames

    ChuletaGames

    Joined:
    Apr 7, 2020
    Posts:
    5
    I solved the issue moving all to Unity 2021.3.25f

    Hope that can fix your problem too
     
  37. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Try the latest 2021.3.x LTS version.
     
  38. prxxxy

    prxxxy

    Joined:
    Jun 25, 2020
    Posts:
    4
    Having problem with HDRP having these errors:
    upload_2023-5-21_12-40-32.png
     

    Attached Files:

  39. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
  40. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    235
    Hi there, wonder if you can help me out with Curved World issue. I'm using the little big planet bend type and all is well in the scene. However I wanted to add some 3D line drawing (via Vectrosity) so I assigned the appropriate material with a shader that was set to Bend Type Little Big Planet Y, with a Bend ID to 1 (like the other objects in the scene). I've also ensured that Vectrosity is actually drawing a 3D line!

    However, when I drawn the line it doesn't appear to bend at all. You can see from the game and scene view that's it's not getting bent. I've also included the material I'm using. Thanks for any help!
     

    Attached Files:

  41. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Don't know how Vectrosity works, but if line is constructed using points (like in LineRenderer), then update positions of those points from script using TransformPosition method, instead of using material.
    Check Non-Shader Bending example scenes how point lights positions are update there using this method to make them follow CW bending.
    Also make sure Vectrosity line has enough points for achieving smooth curve.
     
  42. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    235

    Hey thanks for the reply. So I looked that the non shader examples. My points are static so before adding the vector3 position I performed the TransformPosition -
    Code (CSharp):
    1.  node = curvedWorldController.TransformPosition(node);
    This seems to improve things (as you can see the path is bending when drawn), however, as the airplane follows the path (and the camera tracks the airplane), the line remains static, while the world beneath it moves which leads to the path intersecting the ground (see crash.png). Any further thoughts?
    Thanks!
     

    Attached Files:

  43. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,899
    Do not use static points, update them on every (or fixed) frames.