alonrubintec / 3dviewer Goto Github PK
View Code? Open in Web Editor NEWQt 3DViewer is a user-friendly 3D model viewer powered by Python, PyQt, OpenGL, and ModernGL, supporting multiple file formats developed by Alon Rubin.
Qt 3DViewer is a user-friendly 3D model viewer powered by Python, PyQt, OpenGL, and ModernGL, supporting multiple file formats developed by Alon Rubin.
Hello,
Very nice app. I was wondering what I should modify to be able to read also point cloues as .ply files. I tried to open one and gave me an error.
Thanks in advance,
Bryan
Hey
I took a stab at trying to integrate your 3d viewer into a pyside6 project. I see that QGLWidget was deprecated in place of QtOpenGLWidgets, when loading a obj file into the scene it seems to hard crash with no error prints. I've narrowed it down to the moderngl vertex_array.py render() function. Although i've switched my code to use pyqt5 instead of pyside6, i'm curious if you'd know why it would crash.
Reading the documentation it notes that QOpenGLWidget turns on OpenGL-based compositing for the entire window, where as QGLWidget has a seperate native child window. But can't be sure if that's the reason why and curious if you'd know the differences.
def render(
self,
mode: Optional[int] = None,
vertices: int = -1,
*,
first: int = 0,
instances: int = -1,
) -> None:
"""
The render primitive (mode) must be the same as the input primitive of the GeometryShader.
Args:
mode (int): By default :py:data:`TRIANGLES` will be used.
vertices (int): The number of vertices to transform.
Keyword Args:
first (int): The index of the first vertex to start with.
instances (int): The number of instances.
"""
if mode is None:
mode = self._mode
if self.scope:
with self.scope:
self.mglo.render(mode, vertices, first, instances)
else:
self.mglo.render(mode, vertices, first, instances) # <------------------ crashes here
Thanks
Hello! Thank you for sharing this great repo!
I got a question in reading through the code.
In the UI layout the name of opengl widget is named "openGLWidget".
But in the code "openGLWidget" is never refered, a new widget "QGLControllerWidget" is created instead.
Could you please help explain this?
Thank you for your consideration!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.