Git Product home page Git Product logo

mogli's People

Contributors

eftalgezer avatar florianrhiem avatar ppravatto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mogli's Issues

Is there a way to put labels on the scene?

I recently started working on the mogli source code to implement a simple molecular viewer capable of showing properties associated with the atoms in a molecule. I managed to alter the coloring of each atom according to the desired property but I would also like to render some labels on top of the atoms with the values of the property itself or simply with the label of the atom. Unfortunately, I am not very familiar with the GR framework and I did not manage to put any kind of text in the window.

I would like to know if there is a way to print a simple annotation inside or over the gr3 scene on a specified coordinate. Even if the text is in a 2D overlay I can try to compute the projection of the 3D coordinates of the atom and set the coordinates of the label accordingly.

Thanks in advance for any help.

grafik will closed automatically

Hi,

i am a newbie in programming pyton. Wenn i use mogli without gr framework (mogli.show) my programm works fine. But using gr, the grafic will not displayed in spyder. Starting from console the grafik window will be open and closed in one second. Can you help me?

I use anaconda on a modern windows 11 pc with nvidia gtx 3080ti grafic card.

And a second one (FYI), when i use mogli.show and close the molecule window in spyder there are some errors like


File ~\anaconda3\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File c:\users\wotan\onedrive\dokumente\2023\7tagepython\orca-read(mogli).py:70
mogli.show(molecules[0], bonds_param=1.25)

File ~\anaconda3\lib\site-packages\mogli.py:424 in show
gr3.terminate()

File ~\anaconda3\lib\site-packages\gr3_init_.py:313 in terminate
_gr3.gr3_terminate()

File ~\anaconda3\lib\site-packages\gr3_init_.py:259 in _error_check
raise exception

GR3_Exception: b'gr3.c' (l. 565): GR3_ERROR_OPENGL_ERR


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.