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

multiTextureShaderExample : frag shader not linked. #100

Open
kalwalt opened this issue Jan 4, 2013 · 4 comments
Open

multiTextureShaderExample : frag shader not linked. #100

kalwalt opened this issue Jan 4, 2013 · 4 comments

Comments

@kalwalt
Copy link

kalwalt commented Jan 4, 2013

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

@danzeeeman
Copy link
Member

@kalwalt any updates?

@kalwalt
Copy link
Author

kalwalt commented Apr 6, 2013

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.

@jvcleave
Copy link
Member

jvcleave commented Apr 7, 2013

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?

@kalwalt
Copy link
Author

kalwalt commented May 2, 2013

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
Projects
None yet
Development

No branches or pull requests

3 participants