Upgrade MuJoCo Renderer to OpenGL 3 #2864
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
basic.cc
example with both fixed-function and modern OpenGL 3 pipelines.render_x
vsrender3_x
).Tasks & Progress
1. Code Organization
render/render_x
.render/render3_x
.2. Shader-based Renderer (
render3_x
)basic.cc
.glPushMatrix
/glPopMatrix
).3. Legacy Renderer (
render.h
)basic.cc
still runs without changes when using legacy path.4. Mesh & Geometry
glBegin/glEnd
path for now.5. Example Migration
basic.cc
to select renderer via toggle/flag.6. Transforms
glPushMatrix/glPopMatrix
in GL3 path with uniform matrices.7. Lighting & Materials
8. Textures
glTexStorage2D
/glTexSubImage2D
) in GL3 path.glTexImage2D
pipeline.9. Framebuffers
10. Misc