Code Monkey home page Code Monkey logo

Comments (9)

xiaotaw avatar xiaotaw commented on June 18, 2024 3

@daxiong-123 try one more time? it should work:

  1. comment out glfwWindowHint(GLFW_VISIBLE, GL_FALSE) to make sure the blank window appears
  2. find function drawVisualizationMap in file RendererDraw.cpp, and
    modify glBindFramebuffer ( line 191)
  3. in the same function drawVisualizationMap, insert glfwSwapBuffers(mGLFWwindow); before cleanup code (line 218).

from surfelwarp.

xiaotaw avatar xiaotaw commented on June 18, 2024 2

@xiaotaw dear, could you share your whole modified code project to me? I just failed this, thank you very much! [email protected]

Here is my modified code. Hope its commit log would help. https://github.com/xiaotaw/surfelwarp

from surfelwarp.

weigao95 avatar weigao95 commented on June 18, 2024

You need to delete the glBindFramebuffer in the drawing function. Here is a tutorial: https://learnopengl.com/Advanced-OpenGL/Framebuffers

from surfelwarp.

xiaotaw avatar xiaotaw commented on June 18, 2024

Done, Thx!

from surfelwarp.

peteryuan123 avatar peteryuan123 commented on June 18, 2024

Hello, could you tell me which glBindFramebuffer should I delete? @xiaotaw

from surfelwarp.

xiaotaw avatar xiaotaw commented on June 18, 2024

Hello, could you tell me which glBindFramebuffer should I delete? @xiaotaw

Always set the second parameter to be 0, and the pics/images will be updated in windows.
glBindFramebuffer(GL_FRAMEBUFFER, 0);

Note: Based on the current code, you also have to set 'offline rendering' with True.

from surfelwarp.

peteryuan123 avatar peteryuan123 commented on June 18, 2024

Hello, could you tell me which glBindFramebuffer should I delete? @xiaotaw

Always set the second parameter to be 0, and the pics/images will be updated in windows.
glBindFramebuffer(GL_FRAMEBUFFER, 0);

Note: Based on the current code, you also have to set 'offline rendering' with True.

Thanks, i tried but still failed. Maybe I should look through the whole project.

from surfelwarp.

411066282 avatar 411066282 commented on June 18, 2024

@xiaotaw dear, could you share your whole modified code project to me? I just failed this, thank you very much! [email protected]

from surfelwarp.

411066282 avatar 411066282 commented on June 18, 2024

@xiaotaw thank you very much! you are one good and kind guy!!!

from surfelwarp.

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.