Closed PhoenixBlack closed 11 years ago
Next branch updated.
Thanks.
Le 12 oct. 2013 à 11:29, Black Phoenix notifications@github.com a écrit :
Just some minor changes I made while debugging things. I fixed a small mistake, the silhouette shader should correctly work for all mesh groups now (it doesn't use their actual ID now, but makes each group different from all others).
I added "clearBoundingBox()" to clear bounding box from GLC_Mesh. It's useful when mesh is changed and BBox must be forced to update.
The "QGLFunctions glFunctions(this); " stuff is there because there seemed to be a problem compiling on Windows machine - the relevant functions are not part of Windows GL/gl.h!
The updates in "src/viewport/glc_viewport.cpp" simply remove some warnings which don't make any sense for parallel projection (when camera is too close).
You can merge this Pull Request by running
git pull https://github.com/PhoenixBlack/GLC_lib next Or view, comment on, or merge it at:
https://github.com/laumaya/GLC_lib/pull/12
Commit Summary
Added a way to invalidate bounding box of a geometry object (to allow changing GLC_Mesh on-the-fly) Silhouette now always works. The smoothing groups don't need to be related to object ID, but just need to have unique IDs Fixed debug message spam when setting strange (but correct) rendering distances in orthogonal rendering mode Merge branch 'next' of https://github.com/laumaya/GLC_lib into next Fixed minor cross-platform/cross-compiler issues File Changes
M src/geometry/glc_geometry.h (7) M src/geometry/glc_mesh.cpp (6) M src/glc_context.cpp (32) M src/io/glc_worldtoobj.cpp (2) M src/viewport/glc_viewport.cpp (4) Patch Links:
https://github.com/laumaya/GLC_lib/pull/12.patch https://github.com/laumaya/GLC_lib/pull/12.diff
Just some minor changes I made while debugging things. I fixed a small mistake, the silhouette shader should correctly work for all mesh groups now (it doesn't use their actual ID now, but makes each group different from all others).
I added "clearBoundingBox()" to clear bounding box from GLC_Mesh. It's useful when mesh is changed and BBox must be forced to update.
The "QGLFunctions glFunctions(this); " stuff is there because there seemed to be a problem compiling on Windows machine - the relevant functions are not part of Windows GL/gl.h!
The updates in "src/viewport/glc_viewport.cpp" simply remove some warnings which don't make any sense for parallel projection (when camera is too close).