Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Actors do not render when manually rendering camera
#3
(09-09-2024, 10:31 PM)josemendez Wrote: Hi,

This is regular Unity behavior: Camera.Render() renders the camera immediately, so any draw calls that haven't been enqueued before the call to Camera.Render() will have no effect. If you want to manually render a camera, make sure to do so after all scripts have had a chance to issue graphics commands for the current frame.

Obi enqueues its drawcalls during the solver's LateUpdate(), in order to minimize the amount of time the main thread spends waiting for worker threads. Attempting to render a camera during Update() before solvers have had time to request any drawing will result in them not being rendered. Instead call Camera.Render() during LateUpdate(), from a script that is set to execute after ObiSolver.

kind regards,

This fixes it. Thanks!
Reply


Messages In This Thread
RE: Actors do not render when manually rendering camera - by nickhudson4 - 11-09-2024, 06:04 PM