Skip to content

multiTextureShaderExample : frag shader not linked. #100

Open

Description

@kalwalt

You need to run with GLES2 otherwise with GLES1 you got segfault. Comment out also ofSetWindowShape() and of SetWindowTitle() because are not implemented yet . Also this is a issue. i noticed,also in other examples, that with GLES2 the bitmap stings are a bit weird.
the output in the console is:

[notice] ofGstUtils: selected device: Trust Webcam
[notice] ofGstUtils: selected format: 320x240 video/x-raw-rgb framerate: 30/1
[notice] gstreamer pipeline: v4l2src name=video_source device=/dev/video0 ! video/x-raw-rgb,width=320,height=240 ! ffmpegcolorspace ! appsink name=ofappsink caps="video/x-raw-rgb, depth=24, bpp=24, endianness=4321, red_mask=0xff0000, green_mask=0x00ff00, blue_mask=0x0000ff, alpha_mask=0x000000ff, width=320, height=240"
libdce-x11.c:64: dce_auth_x11 info: attempting to open X11 connection
[notice] bind framebuffer
[notice] allocate texture
[notice] framebuffertexture2d
[notice] bind framebuffer
[notice] allocate texture
[notice] framebuffertexture2d
[error] OpenGL generated error 1281 trying to get the compile status for GL_FRAGMENT_SHADER shader. Does your video card support this?
[error] Trying to link GLSL program, but no shaders created yet
[ofAppEGLWindow::runAppViaInfiniteLoop:notice] ofNotifySetup() complete.

attched also an image below:
Istantanea - 04012013 - 14:36:19

Activity

  1. danzeeeman commented on Apr 6, 2013

    @danzeeeman

    @kalwalt any updates?

  2. kalwalt commented on Apr 6, 2013

    @kalwalt
    Author

    no updates but i will try to solve , also i would re-check most of the examples . could be other issues somewhere in the examples that i don't remember now.

  3. jvcleave commented on Apr 7, 2013

    @jvcleave
    Member

    I guess the main issue is how to have ofShader fail more elegantly as shaders will only work with GLES2.

    Anyone know how Android/iOS is currently handling this?

  4. kalwalt commented on May 2, 2013

    @kalwalt
    Author

    very wierd: i can't get at least the same result above. see my log here : https://gist.github.com/kalwalt/5505535

    edit: no my fault... forgot to add the ofGLES2Renderer.... don't read the above comment.
    I will try to make some mod now to the shader.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions