Search Unity

► Curved World ◄

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

  1. 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
     
  2. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    Unity version?
     
  3. NinhNv15

    NinhNv15

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

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
  5. 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.
     
  6. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  7. 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?
     
  8. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  9. 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.
  10. Arkhivrag

    Arkhivrag

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

    Lee1384

    Joined:
    Jun 8, 2014
    Posts:
    11
    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).
     
  12. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    There is no method for converting position from Curved World space to World space.
     
  13. 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.
     
  14. 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
     
  15. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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
     
  16. 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
     
  17. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  18. 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!
     
  19. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    9
    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.
     
  20. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  21. 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
     
  22. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  23. 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.
     
  24. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    Check manual file (page 39) it explains how to integrate CW inside shader.
     
  25. 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
  26. Ceciaman

    Ceciaman

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

    Arkhivrag

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

    yyylny

    Joined:
    Sep 19, 2015
    Posts:
    93
    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:

  29. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    No spline type bending.
     
    Last edited: Mar 22, 2023
    yyylny likes this.
  30. 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.
     
  31. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  32. 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
  33. Bartheinz

    Bartheinz

    Joined:
    Jul 11, 2012
    Posts:
    9
    Hey, having the same problem with URP 12.1.7 in Unity 2021.3.10f1
     
    ChuletaGames likes this.
  34. 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
     
  35. Arkhivrag

    Arkhivrag

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

    prxxxy

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

    Attached Files:

  37. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
  38. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    254
    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:

  39. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    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.
     
  40. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    254

    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:

  41. Arkhivrag

    Arkhivrag

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

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    Hey, nothing works, i've tried both 2021 LTS, 2022 LTS and 2023.
    Some demo scenes are just completely green and others are just empty.
    I'm using URP
     
  43. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    A few of the scenes are visible, but no curving is applied.
    One of these are "Bend - Spiral Horizontal Double (X)"
     

    Attached Files:

  44. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    What is exact version of Unity 2021 you are using? Just tested with 2021.3.26 and everything works correctly at my side.
    What OS are you using?

    What do you mean scenes are empty?
    Can you share screenshot of Hierarchy and gamemode views of those scenes?
    upload_2023-6-7_8-53-45.png

    upload_2023-6-7_9-10-28.png

    upload_2023-6-7_8-52-59.png
     
    Last edited: Jun 7, 2023
  45. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    I'm using 2021.3.26f1.
    I'm on Linux (I've tried both on my arch and ubuntu distros).
    Here's an image of the "Bend - Classic Runner (X Positive)" Scene.
     

    Attached Files:

  46. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,981
    That's very strange. Curved World is a simple vertex transformation method integrated into default shaders and itself it has no hardware requirements.
    What about the very first tutorial explained in the Manual file (page 3) can you follow it? Unity's built-in shaders are used there.

    BTW, are there any errors in the Console window related to the shaders or missing files?
     
    Last edited: Jun 7, 2023
  47. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    No errors. I'm trying the tutorial
     
  48. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    I don't even see the car when i enable it
     

    Attached Files:

  49. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    All material preview are empty
     

    Attached Files:

  50. victornor

    victornor

    Joined:
    Jan 17, 2014
    Posts:
    87
    All material previews are empty
     

    Attached Files: