Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiglViewer: Wrong shader code with OCCT >= 7.6.0, Zebra-Stripes not working #973

Closed
rainman110 opened this issue Nov 6, 2023 · 0 comments · Fixed by #971
Closed

TiglViewer: Wrong shader code with OCCT >= 7.6.0, Zebra-Stripes not working #973

rainman110 opened this issue Nov 6, 2023 · 0 comments · Fixed by #971
Assignees
Labels

Comments

@rainman110
Copy link
Collaborator

rainman110 commented Nov 6, 2023

When running TiGLViewer with OCCT 7.6.0 and above, I get the following error from the fragment shader in the TiGL Viewer Console:

TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
  Failed to compile Fragment Shader [Graphic3d_ShaderProgram_1]. Compilation log:
0(438) : warning C7011: implicit cast from "bool" to "int"
0(459) : warning C1503: undefined variable "occFrontMaterial_Shininess"
0(459) : warning C1503: undefined variable "occBackMaterial_Shininess"
0(474) : warning C7011: implicit cast from "bool" to "int"
0(510) : warning C1503: undefined variable "occFrontMaterial_Shininess"
0(510) : warning C1503: undefined variable "occBackMaterial_Shininess"
0(523) : warning C7011: implicit cast from "bool" to "int"
0(537) : warning C1503: undefined variable "occFrontMaterial_Shininess"
0(537) : warning C1503: undefined variable "occBackMaterial_Shininess"
0(577) : warning C1503: undefined variable "occFrontMaterial_Ambient"
0(577) : warning C1503: undefined variable "occBackMaterial_Ambient"
0(578) : warning C1503: undefined variable "occFrontMaterial_Diffuse"
0(578) : warning C1503: undefined variable "occBackMaterial_Diffuse"
0(579) : warning C1503: undefined variable "occFrontMaterial_Specular"
0(579) : warning C1503: undefined variable "occBackMaterial_Specular"
0(580) : warning C1503: undefined variable "occFrontMaterial_Emission"
0(580) : warning C1503: undefined variable "occBackMaterial_Emission"
0(581) : warning C1503: undefined variable "occFrontMaterial_Transparency"
0(581) : warning C1503: undefined variable "occBackMaterial_Transparency"
0(459) : error C1008: undefined variable "occFrontMaterial_Shininess"
0(459) : error C1008: undefined variable "occBackMaterial_Shininess"
0(510) : error C1008: undefined variable "occFrontMaterial_Shininess"
0(510) : error C1008: undefined variable "occBackMaterial_Shininess"
0(537) : error C1008: undefined variable "occFrontMaterial_Shininess"
0(537) : error C1008: undefined variable "occBackMaterial_Shininess"
0(577) : error C1008: undefined variable "occFrontMaterial_Ambient"
0(577) : error C1008: undefined variable "occBackMaterial_Ambient"
0(578) : error C1008: undefined variable "occFrontMaterial_Diffuse"
0(578) : error C1008: undefined variable "occBackMaterial_Diffuse"
0(579) : error C1008: undefined variable "occFrontMaterial_Specular"
0(579) : error C1008: undefined variable "occBackMaterial_Specular"
0(580) : error C1008: undefined variable "occFrontMaterial_Emission"
0(580) : error C1008: undefined variable "occBackMaterial_Emission"
0(581) : error C1008: undefined variable "occFrontMaterial_Transparency"
0(581) : error C1008: undefined variable "occBackMaterial_Transparency"

I suppose, OCCT has changed the layout of the shader definitions.

The result is, that the zebra stripe plot is not working.

@rainman110 rainman110 added the bug label Nov 6, 2023
@rainman110 rainman110 changed the title TiglViewer: Wrong shader code with OCCT >= 7.6.0 TiglViewer: Wrong shader code with OCCT >= 7.6.0, Zebra-Stripes not working Nov 6, 2023
@rainman110 rainman110 self-assigned this Nov 6, 2023
rainman110 added a commit that referenced this issue Nov 6, 2023
joergbrech pushed a commit that referenced this issue Nov 21, 2023
rainman110 added a commit that referenced this issue Dec 8, 2023
joergbrech pushed a commit that referenced this issue Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant