Code Monkey home page Code Monkey logo

Comments (6)

mkamalza avatar mkamalza commented on June 14, 2024

Hi,

The Perception Camera currently only supports timing based on simulation time. The rationale here is to be able to have deterministic simulations that produce the same output regardless of the capabilities of the underlying hardware.

With the current system, you can introduce delays between captures using the "Frames Between Captures" property of Perception Camera. In the example shown below, the camera starts capturing at frame 10, and then skips 9 frames between consecutive captures.

With these values, the captures look like the gif below. Notice how the bounding boxes only update periodically (every 10th frame), and not every frame.

Note than in this example, if you are using a Scenario for randomizing your simulation, you would have to set a sufficiently large number of frames for each iteration of the Scenario, in order to give your simulation time to progress before a new iteration of the Scenario is started, which resets the camera's timings.

Would this work for you? If not, can you please elaborate a bit on your use-case and how real-world time is needed?

from com.unity.perception.

rajshekarreddy97 avatar rajshekarreddy97 commented on June 14, 2024

Hey, yes I think this works for me. My use-case is that I'm generating raytraced synthetic images and I'm using Unity's Path Tracing. Hence, I need to wait for the path tracing to finish tracing between each capture.

from com.unity.perception.

mkamalza avatar mkamalza commented on June 14, 2024

Sounds great. Please let us know if you come across any issues once you have tried it.

from com.unity.perception.

rajshekarreddy97 avatar rajshekarreddy97 commented on June 14, 2024

Do you know any api that lets me know when the Path Tracing is finished? Right now, there's a loading bar that appears at the bottom of the game view and I am using this as reference and doing a trial and error.

from com.unity.perception.

sleal-unity avatar sleal-unity commented on June 14, 2024

@rajshekarreddy97

Although I don't have too much experience with Unity HDRP's latest ray tracing tools, my impressions from the Unity HDRP documentation and my own experiments have indicated that the number of frames needed for the path tracing loading bar to complete is equivalent to the "Maximum Samples" setting in the path tracing volume override.

For example, if you copy the path tracing settings as shown below, I believe you would need 128 frames per iteration configured for your scenario to properly path trace your scene.

image

from com.unity.perception.

rajshekarreddy97 avatar rajshekarreddy97 commented on June 14, 2024

@sleal-unity I recently realized that too. I think this would be sufficient for me. Thanks!

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.