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

Zooming the view without using Mouse wheel scroll #33

Open
udaydutta opened this issue Oct 2, 2017 · 8 comments
Open

Zooming the view without using Mouse wheel scroll #33

udaydutta opened this issue Oct 2, 2017 · 8 comments

Comments

@udaydutta
Copy link

Victor, I really appreciate all your help. I am implementing a smart rendering application for .obj formatted model. I just wanted to know, how to implement Zooming without using mouse wheel scroll? Is there any example code? Thanks in advance.

@kovacsv
Copy link
Owner

kovacsv commented Oct 2, 2017

Hi! It depends. What would you like to use instead of mouse wheel?

@udaydutta
Copy link
Author

udaydutta commented Oct 10, 2017 via email

@kovacsv
Copy link
Owner

kovacsv commented Oct 11, 2017

Hello! Please send the files in a separate e-mail as a zip file.

@udaydutta
Copy link
Author

udaydutta commented Oct 11, 2017 via email

@kovacsv
Copy link
Owner

kovacsv commented Oct 11, 2017

It seems that the problem is with the obj file, not the viewer. I tried other obj viewers, and the result is the same. obj file contains texture coordinates for every polygon, so the error is on the export side, not in the viewer.

@udaydutta
Copy link
Author

udaydutta commented Oct 11, 2017 via email

@kovacsv
Copy link
Owner

kovacsv commented Oct 11, 2017

Yes, texture coordinates are define the orientation and the position of the texture. It seems that sketchup exports wrong UV coordinates. In the obj file every vertex of every polygon has a texture coordinate, so the viewer just shows textures based on these coordinates.

To understand how texture coordinates work, see the attached picture. It shows the texture orientation of the same rectangle with different texture coordinates.

texturecoordinates

@udaydutta
Copy link
Author

udaydutta commented Oct 13, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants