dylanmsu / Caustic-Design

20 stars 5 forks source link

Issue with handling non-rectangular pictures #6

Open fireg958 opened 2 months ago

fireg958 commented 2 months ago

I hope this message finds you well. I've been using your code and have found it extremely useful. However, I encountered an issue when attempting to load non-rectangular cuboids inTarget_Surface. When using the Target_Surface functionality and selecting "File -> Save Vertices," I either encounter a segmentation fault or end up with an empty .verts file. Could you please help me resolve this issue? Thank you very much!

dylanmsu commented 2 months ago

Hi, Apologies for the late reply. I am aware of this issue. The original authors designed the target_surface program assuming the width and the height is equal. I will try to rewrite the code to support different aspects ratios in the future, but I'm first working on implementing reflective caustics and point light sources. Kind regards.