Drawing “point-like” shapes in OpenGL, indifferent to zoom

前端 未结 3 1760
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 03:00

I\'m working with Qt and QWt3D Plotting tools, and extending them to provide some 3-D and 2-D plotting functionality that I need, so I\'m learning some OpenGL in the process.

3条回答
  •  温柔的废话
    2021-01-21 03:29

    There's no easy way to do what you want to do. You'll have to dynamically resize the primitives you're drawing depending on the camera's current zoom. You can use a technique known as billboarding to make sure that your objects always face the camera.

提交回复
热议问题