Skip to content

TestShadow.py not working #14

Description

@goferito

This file doesn't work. I assume I got everything properly installed since other Test files work fine.
I copy the error Traceback:

Traceback (most recent call last):
  File "TestShadows.py", line 94, in <module>
    TestShadows().run()
  File "/home/goferito/three.py/three.py/core/Base.py", line 51, in run
    self.initialize()
  File "TestShadows.py", line 36, in initialize
    directionalLight.enableShadows(strength=0.5)
  File "/home/goferito/three.py/three.py/lights/DirectionalLight.py", line 70, in enableShadows
    self.shadowRenderTarget = RenderTarget.RenderTarget( size[0], size[1] )
  File "/home/goferito/three.py/three.py/core/RenderTarget.py", line 33, in __init__
    glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, self.textureID, 0)
  File "/usr/local/lib/python3.6/dist-packages/OpenGL/platform/baseplatform.py", line 402, in __call__
    return self( *args, **named )
  File "/usr/local/lib/python3.6/dist-packages/OpenGL/error.py", line 232, in glCheckError
    baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
	err = 1282,
	description = b'invalid operation',
	baseOperation = glFramebufferTexture,
	cArguments = (
		GL_FRAMEBUFFER,
		GL_COLOR_ATTACHMENT0,
		1,
		0,
	)
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions