Giter VIP home page Giter VIP logo

Comments (11)

lucasjinreal avatar lucasjinreal commented on May 29, 2024 4

@barvin04 I can confirm problem still exist during OffScreen rendering.

the error are:

pyrender/platforms/osmesa.py", line 42, in make_current
    assert(OSMesaMakeCurrent(
AssertionError

from pyrender.

wolterlw avatar wolterlw commented on May 29, 2024 1

Still having this issue with version 0.1.32

     42         assert(OSMesaMakeCurrent(
     43             self._context, self._buffer, gl.GL_UNSIGNED_BYTE,
---> 44             self.viewport_width, self.viewport_height
     45         ))
     46 

AssertionError: 

Interestingly enough this only happens when I try to run the script in Jupyter. If called from the command line - everything works as expected.

from pyrender.

barvin04 avatar barvin04 commented on May 29, 2024 1

@mmatl
The "Assertion Error" is still there with PyOpenGL(3.1.5) and Pyrender(0.1.45) during OffScreen rendering

from pyrender.

lucasjinreal avatar lucasjinreal commented on May 29, 2024 1

Even got it when set egl as backend

from pyrender.

xuelin-chen avatar xuelin-chen commented on May 29, 2024

@mmatl , sorry for asking that stupid question and thanks for sharing this wonderful code, now I have successfully made it work!

Just for your information, after I installed pyrender via pip, it seems like there is no 'shaders' folder under in the installation, which trigered a 'No such file' error in running time. So I just downloaded the shaders folder from github repo and copied it to the desired place, and now it is working.

from pyrender.

mmatl avatar mmatl commented on May 29, 2024

@ChenXuelinCXL There are no stupid questions! I probably just forgot to include the 'shaders' folder in the pip repo. Will double-check that ASAP and fix it. Thanks for the heads up!

from pyrender.

mmatl avatar mmatl commented on May 29, 2024

Should be fixed with 9a11d4c

from pyrender.

mmatl avatar mmatl commented on May 29, 2024

And it's fixed in version 0.1.6, now on PyPi. Thanks @ChenXuelinCXL for the solution.

from pyrender.

lucivpav avatar lucivpav commented on May 29, 2024

I am experiencing the same problem. Version 0.1.39.

from pyrender.

lucivpav avatar lucivpav commented on May 29, 2024

In my case, the problem magically disappeared after running:

module load LLVM/6.0.0-GCCcore-7.3.0

It may be related to LLVM somehow.

from pyrender.

tegusi avatar tegusi commented on May 29, 2024

In my case, simply running

apt-get upgrade

solve the problem. Maybe it is related to the gcc version?

from pyrender.

Related Issues (20)

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.