Submitted by Chao LI on
Body

2.JPG1.JPGHi,

I have a facet with texture recording the incident angle distribution.

However, the total number of hits by summing over hits in all bins does not match the hits recorded on the right panel. Am I missing something here?

Thank you,

Chao

Submitted by Marton Ady 5 years ago

Hello Chao,

There are some edge cases where the facet hits don't correspond to the angle map sum. To allow recording according to a recorded map, the map isn't reset when switching between "record map" and "use map" cases. So I can use a map, then switch to record map. After the switch, the map won't be 0, although the hit sum on the facet will be.

If you have recording enabled, you reset the simulation and launch it again, and you see a difference, then it's indeed a bug, in that case please share an example with me and I'll investigate.

PS I see 15% leaks on your screenshot, which shows that the geometry has some issues.

Submitted by Chao LI 5 years ago

Hi Marton,

I tried to hit the reset but fail to reproduce it. I will be back to the page if it happens to me again and let you know.
As for the leaks, I deliberately release my atoms hitting certain regions, i.e. if I have a box (serving as a trash bin) inluding all my facets and set the sticking factor of the box to be 1, there won't be any leaks. However, do you think what I am currently doing will cause any problems that I didn't expect?

Submitted by Chao LI 5 years ago

For those leaks, I did check: total des=all abs+leaks. So I guess there aren't unexpteced issues.

Submitted by Marton Ady 5 years ago

You're right. For most users, leaks mean modeling errors, but as you explained, you're aware of them and they are intentional.

One small issue that you might not expect is that the ray tracing considers leaks as "invalid rays", which means that if the ray, just before leaking, crosses transparent facets, then profiles, hits and textures won't be incremented on those "last touched" facets. If this is a problem, I usually put a somewhat large "leak catcher screen" with sticking=1 outside the opening.