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

Interact mouse click left button failing? #114

Closed
jennyfothergill opened this issue Jun 29, 2020 · 0 comments · Fixed by #117
Closed

Interact mouse click left button failing? #114

jennyfothergill opened this issue Jun 29, 2020 · 0 comments · Fixed by #117
Labels
bug Something isn't working
Milestone

Comments

@jennyfothergill
Copy link
Contributor

jennyfothergill commented Jun 29, 2020

Description

  • interactive scene widget seems to be updating really slowly with mouse move event (left click particularly, rolling the scroll wheel updates quickly.)
  • can't get the view widget to load without minor change to interact

Script

I am trying the interact widget in a jupyter notebook.
I can only get get import fresnel.interact not to throw and error if I change line 28 from

import PySide2.QtWidgets.QWidget as QWidget

to

from PySide2.QtWidgets import QWidget

The jupyter notebook code I am trying is the example from
https://fresnel.readthedocs.io/en/stable/examples/02-Advanced-topics/03-Interactive-scene-view.html
with the addition of view.show() to get the scene view to pop up.

Output

no error message

Expected output

When I have used this before, it was faster and looked better.
output
This is a screen recording of me using the widget--you can't tell but I'm clicking and dragging in the first bit and nothing happens. Then I use the middle mouse click, right mouse click, and scroll wheel.

Configuration

Platform:

  • Mac ✅
  • CPU ✅

Installation method:

  • Compiled from source ✅

Versions:

  • Python version: Python 3.7.6
  • Fresnel version: 0.12.0

Developer

I'd love to try :)
I think this may be related to the camera.basis changing from tuple of tuples to np.array. I thought this might be as simple as changing line 55 in interact from

q2 = (0.0,) + v1

to

q2 = np.append(np.array([0]), v1)

but when I do that there are still problems with the scene moving and after moving the scene with the left mouse scene.camera will be full of nans

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

Successfully merging a pull request may close this issue.

2 participants