openframeworks / openframeworks/openFrameworks
ofMaterial and Transparency not working properly when using OpenGL 3.2
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hey,
I am raising an issue with transparency since Arturo asked me to do so after posting in the forum about some trouble I was having.
https://forum.openframeworks.cc/t/ofmaterial-and-opengl/32171/5
I noticed this problem occurring after changing the settings in main() from the default settings to the following:
ofGLWindowSettings settings;
settings.setSize(1200, 800);
settings.setGLVersion(3, 2);
ofCreateWindow(settings);
ofRunApp(new ofApp());
After setting it up like this so I could use my own custom shaders, anything in my scene that was transparent was now opaque and some of my other uses of ofMaterial weren't working.
I have made a simple sketch for testing this with a cube whose transparency can be controlled with the arrow keys.
Cheers,
Eoin
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached src.zip and the window setup in main(), comparing the default OpenGL settings with settings.setGLVersion(3, 2). Reproduce the cube sketch and use the arrow keys to check transparency and the reported ofMaterial behavior. Done means transparent scene elements and the demonstrated material uses work correctly with OpenGL 3.2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100