1.8.0 breaks FFP vertex attributes in GLSL shaders

Reported by Josh Enes on 2012-01-06
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Panda3D
High
rdb

Bug Description

Panda3D 1.8.0 breaks gl_Vertex, gl_Normal, gl_MultiTexCoord0, etc. Related thread:
https://www.panda3d.org/forums/viewtopic.php?p=88114#88114

###Example Code:
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase

vshader = """//GLSL
#version 120
#extension GL_ARB_compatibility : enable

void main() {
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
"""

fshader = """//GLSL
#version 120
#extension GL_ARB_compatibility : enable

void main() {
  gl_FragColor = vec4(1.0, 0.5, 1.0, 0.5);
}
"""

class Game(ShowBase):
    def __init__(self):
        """Get the game ready to play."""
        ShowBase.__init__(self)
        self.model = self.loader.loadModel('smiley')
        self.model.reparentTo(render)
        self.shader = Shader.make(Shader.SLGLSL, vshader, fshader)
        self.model.setShader(self.shader)

game = Game()
game.run()

Josh Enes (joshenes) wrote :

The error message appears to have been a separate issue which is now fixed.

I have tried building with and without eigen and objects with GLSL shader applied are still not rendering at all.
Does the 16 byte alignment still happen if eigen is not enabled? Perhaps some differently formatted numbers are being passed to the shader than were before?

rdb (rdb) on 2012-10-02
Changed in panda3d:
assignee: nobody → rdb (rdb)
importance: Undecided → High
milestone: none → 1.8.1
status: New → Triaged
summary: - glsl shaders broken, "invalid operation"
+ 1.8.0 breaks FFP vertex attributes in GLSL shaders
description: updated
description: updated
rdb (rdb) on 2012-11-03
Changed in panda3d:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers