Skip to content
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

Camera setting will not work fine if the Sweethome3D model upper left corner is not at 0,0 coordinates #17

Closed
sheminasalam opened this issue Jun 27, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@sheminasalam
Copy link

Hi, I need some help with the camera settings. It seems that even when I copy paste a particular camera position into the code, the default position is not the same. Please check the gif and do advice.
ezgif-3-a40a16d78934

@sheminasalam sheminasalam added the bug Something isn't working label Jun 27, 2021
@adizanni
Copy link
Owner

Hello, I'm having some trouble to reproduce your issue. Maybe there is something about your model that is by default appearing very small. Do you mind share it ?

@sheminasalam
Copy link
Author

sheminasalam commented Jun 27, 2021

no issues...I have attached the files. I have one more file which has the same issue
3d.zip
3d1.zip

@adizanni
Copy link
Owner

There is something weird with your model that is offsetting all camera positions. You have probably some objects in the model that are in the space, maybe not visible, Try to recreate a new model with copy paste by selecting only the objects that are actually in the floor plan. I will dig further, I'm not able to reproduce in my models.

@sheminasalam
Copy link
Author

I have tried copy pasting the model but it still has the same issue. I am sharing the model file so that you can go through.
2nd floor.zip

@adizanni
Copy link
Owner

Found an explanation even though I think it is a bug that I need to fix. Please move your 2D floor model in a way to have the upper left corner at 0,0. Your current model has something like -4,-3. Do not forget to clear your cache or add a version on obj and mtl file (ex. objfile: 23k8.obj?ver=1) when you change your model

@sheminasalam
Copy link
Author

This worked for me. Thanks for the quick response.

@adizanni adizanni changed the title Need support with camera settings. Camera setting will not work fine if the Sweethome3D model upper left corner is not at 0,0 coordinates Jun 27, 2021
@adizanni
Copy link
Owner

adizanni commented Jul 4, 2021

Even if it does not seem this issue is not an easy one and because there is a workaround I will set it as a feature to work on later

@adizanni adizanni closed this as completed Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants