Git Product home page Git Product logo

Comments (5)

sleal-unity avatar sleal-unity commented on May 26, 2024

Hi @RocketFan!

If your comfortable with sharing your project, feel free to send us a zip file containing your project's Assets, Packages, and Project Settings folders. We'll then be able to replicate these scenarios and attempt to debug what's causing this issue you're experiencing.

If not, maybe you can provide me with some additional details about your use case and I can try some experiments on my end to see what's up.

from com.unity.perception.

RocketFan avatar RocketFan commented on May 26, 2024

Can I send google drive link to your email ([email protected])?

from com.unity.perception.

sleal-unity avatar sleal-unity commented on May 26, 2024

@RocketFan Yep, that works just fine. I'll keep an eye out for your email.

In your email, could you include a few details on how to reproduce the issue using your project (what scene to load, what settings to configure, etc). That would help me a ton while debugging.

from com.unity.perception.

sleal-unity avatar sleal-unity commented on May 26, 2024

@RocketFan I think I figured out the issue here.

Your project is experiencing a common graphics problem called z-fighting. This occurs when you place two objects too close together, so the shader can't decide which one to draw on top of the other. If you turn on semantic segmentation in your project, you can see how the shader gets confused about which object to draw on top. This strange striped pattern is the result of the shader alternating between drawing the terrain and your placed objects. This is what is causing your bounding boxes to be miscalculated.

image

Thankfully, the fix for this is very simple. In your ObjectsPlacementRandomizer script, change line 94 from
instance.transform.position = new Vector3(point.x, 0f, point.y);
to
instance.transform.position = new Vector3(point.x, 0.1f, point.y);

What we did here is slightly offset your objects from the terrain below them so now the shader will know to draw your triangles, circles, and rectangles on top of the terrain.

Hit me up if you run into any more trouble with this issue!

from com.unity.perception.

RocketFan avatar RocketFan commented on May 26, 2024

This works great, now everything is labeled correctyly.

Thanks a lot, without your help I would propably give up.

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.