Search Unity

What happens on negative scaled objects or how do i use RenderMeshFlippedWindingTagComponent ?

Discussion in 'Entity Component System and C# Job system' started by Held0fTheWelt, Feb 2, 2019.

  1. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    134
    I examined this now quite often.
    When an object has something with negative scaled transform, the faces of the 3d model are turned outside in.

    I don't know, how to set up this correctly ...
    Just adding the component doesn't do the thing !
     

    Attached Files:

    Nexx likes this.
  2. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    134
    No ideas ?

    Am i unclear ?
     
    Last edited: Feb 2, 2019
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    4,360
    negative scale is not support in the current ECS render pipeline.

    19.1 has new API's that enables it. ECS will use those. So for the time being the only option is to not have negative scaled meshes.
     
    Held0fTheWelt and Nexx like this.
  4. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    134
    I am on 2019.1, but i just have to wait ?
    It's ok, to just know this...
     
  5. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    4,360
    Yes for now just wait. All necessary changes will be part of new ECS renderer around mid-march.
     
    Ham-Dongki, Djayp, Jes28 and 2 others like this.
  6. jooleanlogic

    jooleanlogic

    Joined:
    Mar 1, 2018
    Posts:
    177
    Is this going to include SpriteRenderer component?
     
    Ham-Dongki likes this.
  7. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    134
    Looks like been fixed now, yes ?
    Somehow this works, or the object is so small, that my eyes lie to me ^^
     
  8. learc83

    learc83

    Joined:
    Feb 28, 2018
    Posts:
    27
    So does negative scale work with the ECS renderer now?
     
  9. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    4,360
    Yes when using the new conversion flow the generated entities will be setup to handle negative scale correctly now.
     
    Ham-Dongki likes this.
  10. Ham-Dongki

    Ham-Dongki

    Joined:
    Dec 22, 2017
    Posts:
    2
    I wonder that too
     
  11. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    134
    Yes, it's working for a couple of days now, which really is great !
     
    Ham-Dongki likes this.