Giter Club home page Giter Club logo

Comments (6)

xbpeng avatar xbpeng commented on August 24, 2024

Sorry not sure what could be causing this. Maybe look to make sure that glut is properly initialized?

from deepmimic.

bssrdf avatar bssrdf commented on August 24, 2024

Thanks for reply.
I did a bit digging. The only two places where glutInit gets called are
void cDrawUtil::InitOffscreenDrawContext()
and
void InitDraw(int argc, char** argv)

But both functions seem not being called by python via DeepMimicCore. I put prints in both functions and neither print showed up. Shouldn't one of them be called somewhere down the process?

from deepmimic.

bssrdf avatar bssrdf commented on August 24, 2024

Ok, I solved the problem by commenting out glutPostRedisplay() call in function
void cDeepMimicCore::Reshape(int w, int h)
Not sure the consequence of this change.
Both tests run fine now.

from deepmimic.

xbpeng avatar xbpeng commented on August 24, 2024

i think getting rid of the redisplay call in reshape is probably ok. It just means that the rendering won't refresh as promptly when reshaping the windows, which should be a fairly minor inconvenience.

from deepmimic.

bssrdf avatar bssrdf commented on August 24, 2024

I found it puzzling that any call to glut within DeepMimicCore will cause freeglut to complain with glutInit error. Here is another case: right click while dragging the mouse (pan the camera) will crash with the same error. This time it is the glutGetModifiers() call in cCamera:: MouseMove(). Again the solution is to disable glut call. I have to pass modifier key via python interface and this involves modifying several files.

I don't know whether the problem is specific to my system environment (Win10, VS 2017, Winpython 3.6, freeglut 3.0.0) or not. If anyone encounters this, I could submit a PR.

Thanks for the help and discussion. Nice work and appreciated the code sharing.

BTW, any plan to release the SFV code?

from deepmimic.

xbpeng avatar xbpeng commented on August 24, 2024

we haven't decided on a code release for SFV yet.

from deepmimic.

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.