Git Product home page Git Product logo

Comments (3)

JonathanHUnity avatar JonathanHUnity commented on May 26, 2024 1

Labeling applies to GameObjects in their entirety, so if you want different labels you need different GameObjects.

There are a couple of approaches to splitting up your object.

The first is to split your object up into multiple objects in your 3d editor and then export the set of objects into the fbx. Here is an example of two cubes in Blender, and those same cubes in Unity:
image
image
Since there are two child objects in the top-level "TwoCubes.fbx", you can add a Labeling component to each one.

The other approach is to add invisible geometry to your objects in Unity and then label that.
LabeledSubobjects

What I did here is the following:

  • Open the whipping cream prefab
  • Add a child Cylinder and orient it to cover only the cap
  • Create a new material - call it "transparent" - and set "Surface Type" to transparent and change the "Base Map" color's alpha to 0
  • Drag the material onto the Cylinder
  • Add labeling to the cylinder
    AddCylinder

Repeat this with a Quad to cover the label

Labeling applies to GameObjects. Even transparent geometry is captured in the ground truth, so you can use that to your advantage.

Hope this helps!

from com.unity.perception.

JonathanHUnity avatar JonathanHUnity commented on May 26, 2024 1

Happy to help :)

from com.unity.perception.

lessw2020 avatar lessw2020 commented on May 26, 2024

Thanks very much @JonathanHUnity - that helps tremendously!
Also the gifs for showing the process of invisible labelling are super helpful for explaining the process.
Best regards,
Less

from com.unity.perception.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.