Listing all objects in Camera view


#1

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,


#2

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.


#3

My solution for this. - GeomDrawCallbackData - the getObject () method is not available


#4

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.