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

update the underlying threejs to a more recent version #359

Open
bernhard-42 opened this issue May 19, 2021 · 6 comments
Open

update the underlying threejs to a more recent version #359

bernhard-42 opened this issue May 19, 2021 · 6 comments

Comments

@bernhard-42
Copy link

I'd like to remap mouse bindings, which seems to work beginning from r99 (https://stackoverflow.com/a/54154920)
Unfortunately pythreejs still seems to sue r97 (

"three": "^0.97.0",
)

Now, r97 is from 26 Sep 2018 and threejs is now already on version r128, which includes many new features and fixes.

Since my project (https://github.com/bernhard-42/jupyter-cadquery) heavily relies on pythreejs, I curious, are there any plans to update pythreejs to more closely follow threejs.

@vidartf
Copy link
Member

vidartf commented May 25, 2021

I don't have the spare time to follow the three js releases manually. If anyone are able to make a script that makes a good base of the spec by scraping the threejs API docs, then it would be much more sustainable.

@vidartf
Copy link
Member

vidartf commented May 25, 2021

@bernhard-42
Copy link
Author

I had a look at it and do understand your issue.
I think the only way to keep a "bindings" project like pythreejs up to date is to have a fully automated conversion process. For me pythreejs is a too complex mixture of manual code parts and automated code parts, so I have to admit, I quickly gave up ...
I am now exploring whether vtk.js could replace pythreejs in my projects

@akaszynski
Copy link
Contributor

@bernhard-42, I'm also looking between vtk-js and three-js. Did you come to any conclusions?

@bernhard-42
Copy link
Author

@akaszynski I looked at vtk-js and while it has a lot of nice features, it doesn't fully support what vtk has (e.g. for my project I missed assemblies and shader based clipping). Furthermore, vtk to me looked more centered around medical use cases (and I actually don't need all the great volume stuff) and threejs more like a generic 3d framework

Since I don't feel that pythreejs will be updated soon, I reimplemented my complete pythreejs based cad viewer in javascript and built a single ipywidgets wrapper around it. If you are happy with programming in Javascript this is what I would recommend. The custom widget thing might be a little bit bumpy until it works, but definitely worth the effort.

Just my 2 cent ...

@akaszynski
Copy link
Contributor

Thanks for replying @bernhard-42. I'm considering writing a viewer from scratch as well, but was hoping on using pythreejs since it's really close to what I need.

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

3 participants