1.8.0 breaks FFP vertex attributes in GLSL shaders

Bug #912674 reported by Josh Enes on 2012-01-06
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

Panda3D 1.8.0 breaks gl_Vertex, gl_Normal, gl_MultiTexCoord0, etc. Related thread:

###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."""
        self.model = self.loader.loadModel('smiley')
        self.shader = Shader.make(Shader.SLGLSL, vshader, fshader)

game = Game()

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
rdb (rdb) on 2015-04-11
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers