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

Failed to slice with Qt5 in windows10 #10

Open
Charles2050 opened this issue Jul 24, 2020 · 4 comments
Open

Failed to slice with Qt5 in windows10 #10

Charles2050 opened this issue Jul 24, 2020 · 4 comments

Comments

@Charles2050
Copy link

I'm trying to compiling b9creator with Qt5, all works fine without the slicing. It can be done successfully, but the result image is not correct, only the first frame is normal, others all black images.
Any body can help me?

@Charles2050
Copy link
Author

Charles2050 commented Aug 12, 2020

OK, I solved it by myself. Update the following function:
void SliceContext::initializeGL() { //qglClearColor(QColor(0,0,0)); glClearColor(0.0, 0.0, 0.0, 0); glEnable(GL_BLEND); glDisable(GL_CULL_FACE); glDisable(GL_DEPTH_TEST); glViewport(0, 0, projectData->GetResolution().x(), projectData->GetResolution().y()); glMatrixMode(GL_PROJECTION); //reset matrix operations **glLoadIdentity();** int x = projectData->GetBuildSpace().x(); int y = projectData->GetBuildSpace().y(); gluOrtho2D(-projectData->GetBuildSpace().x()/2.0, projectData->GetBuildSpace().x()/2.0, -projectData->GetBuildSpace().y()/2.0, projectData->GetBuildSpace().y()/2.0); glMatrixMode(GL_MODELVIEW); //reset matrix operations **glLoadIdentity();** }

@ma1ze
Copy link

ma1ze commented Oct 11, 2020

Dear Charles,
I met a lot of trouble when compiling this project with Qt5 in windows10, and I wonder if you could package up the code you could run and send me a copy.My email is [email protected].
Best wishes!

@anishshah101
Copy link

anishshah101 commented Jan 23, 2021

@Charles2050 - when you ported the code to Qt5, how did you resolve the C++ 11 error? In case you documented the changes, that would be super helpful to see.

@Salman4531
Copy link

Dear Charles

I have trying to build this project in QT in past two weeks but could not make it without errors! so failed!
Could you let me know what is the exact QT version and Qt Creator version as well as the compiler that you are using to compile the project!
I will appreciate it if you can reply me even by email at: [email protected]
Thanks

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

4 participants