Sie sind nicht angemeldet.

1

Donnerstag, 9. Februar 2023, 18:40

Consider visible hotspots in 3D model

Hello! I have a question.
If I have 10 hotspots in the model, but only 5 are visible, the rest are outside the walls of the model and are invisible.
Is it possible to sort through only visible hotspots in a loop, i.e. do not take into account those behind the partitions of the model ?
что то типа
forall(hotspot, h, if(h.visible, ...) ); *confused*

2

Donnerstag, 9. Februar 2023, 19:22

Hi,

that's not possible - if a hotspot is fully covered by some 3d-geomerty, or partially-covered or fully visible would require an extra specific rendering-step and counting the visible pixels or doing a very complex geometry intersection checking - both steps would be pretty complex and ineffective...

A less accurate solution could be raycasting to the center of each hotspot and then checking the hit-distance and the hotspot-distance, but that might only work well for a small number of hotspots...

Best regards,
Klaus

3

Donnerstag, 9. Februar 2023, 19:26

Hello Klaus, thanks for the info, I'll give it a try! And thanks a lot for the update! *thumbsup*