Search Unity

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

Discussion in 'Graphics for ECS' started by Held0fTheWelt, Feb 2, 2019.

  1. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    173
    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:

    mushroomrisotto likes this.
  2. Held0fTheWelt

    Held0fTheWelt

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

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

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    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.
     
  4. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    173
    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:
    5,203
    Yes for now just wait. All necessary changes will be part of new ECS renderer around mid-march.
     
    June1111, Ham-Dongki, Djayp and 3 others like this.
  6. JooleanLogic

    JooleanLogic

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

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    173
    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:
    41
    So does negative scale work with the ECS renderer now?
     
  9. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    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:
    173
    Yes, it's working for a couple of days now, which really is great !
     
    Ham-Dongki likes this.
  12. TommyX12

    TommyX12

    Joined:
    Nov 19, 2016
    Posts:
    8
    I am trying to use the ConvertToEntity workflow; however, SpriteRenderer doesn't seem to work. Any help?