Hi,
I am new to Panda3D development, I am looking for a way to list all the objects that are currently in the camera’s view (taking occlusion into account). What would be an efficient way to achieve this?
Thanks,
Hi,
I am new to Panda3D development, I am looking for a way to list all the objects that are currently in the camera’s view (taking occlusion into account). What would be an efficient way to achieve this?
Thanks,
I think you may have to iterate over all the nodes and do a bounding volume test to check whether they are in view.
Perhaps you could explain what you are trying to achieve? There may be easier ways.
If you are OK with receiving all the Geom objects (instead of the nodes) you can also use CullResult.make_result_graph()
, but this is only intended for debugging.