-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ply file is not correctly loaded and calculation is not correctly executed #40
Comments
I am happy to take a look. Perhaps you can upload your main code or a snippet of the part for loading the PLY files? Based on your description I am unsure what you mean by loading the 120 files with and without the loop. |
Thank you for your reply.
|
result without for loop mean hard coding case for loading ply file |
I think the issue is that you are loading all of the PLY models and placing them on top of each other, which is probably not what you want. When you call Context::loadPLY() with a vec3 position argument, it will automatically translate the model so that its origin is at the position you specify. My guess is that you just want to load the model 'as-is' without applying any scaling, translation, or rotation? For that, you can just call the overloaded version with only a file path argument: You just need to be sure that your PLY files were exported with the z-axis as the 'up' direction in this case, since you don't have that argument to specify it anymore. |
Thank you for your advice. I will try it. |
I ran Helios code (wrote based on tutorial 10 with slight modification) in for loop to calculate light interception rate for 120 ply files. But ply file is not correctly loaded and the calculation result was quite different between result without using for loop. How can I deal with such a problem?
The text was updated successfully, but these errors were encountered: