openframeworks / openframeworks/openFrameworks

ofMaterial and Transparency not working properly when using OpenGL 3.2

Open
#6,272 1 comment 0 reactions 0 assignees View on GitHub

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.

src.zip

Cheers,
Eoin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.