BeamNGpy icon indicating copy to clipboard operation
BeamNGpy copied to clipboard

get projective 3D point to camera pixel coordinate

Open joshuafc opened this issue 5 years ago • 6 comments

have a 3d point (x, y ,z) from Vehicle.get_bbox() . how can I get the associated point at camera pixel coord. Or how can I get the camera model and parameters, I can do the compute myself.

joshuafc avatar Dec 18 '19 10:12 joshuafc

Thanks for the input. It might be too late for your project but I've opened up this feature request for discussion in the team.

pascale-commits avatar Jan 08 '21 08:01 pascale-commits

Thanks!

joshuafc avatar Jan 08 '21 08:01 joshuafc

I also vouch for this feature! Being able to map camera space to top-down world coordinates is a very common requirement when using cameras attached to a vehicle in real life.

BleedObsidian avatar Mar 16 '21 19:03 BleedObsidian

This feature will be available in the upcoming release.

dstark481 avatar Aug 22 '22 04:08 dstark481

FYI

This feature is now available in our most-recent release. We have a member function convertWorldPointToPixel() which can be called on a camera sensor to convert a given world-space point (x, y, z) to the pixel (x, y) on the camera.

Full documentation on the new camera sensor can be found here: https://documentation.beamng.com/beamng_tech/sensors/camera/

Best regards, BeamNG Tech Team

dstark481 avatar Sep 23 '22 11:09 dstark481

Amazing work guys, thank you, this will soon be the best AV simulation environment out there!

BleedObsidian avatar Sep 24 '22 14:09 BleedObsidian