Forums > Jitter

MAX 6: material errors shader errors

November 2, 2011 | 6:12 am

Hi getting a few errors in the material example patches:

in material browser:
I get jit.gl.material: doesn’t understand "generator" when I change either the Diffuse or Specular shading model

in the gm.solidpoint.demo and gm.videopoint i get the following:

jit.gl.shader: GLSL program failed to compile.
jit.gl.shader: — START GLSL INFO LOG: fp –
ERROR: 0:65: " : #version must occur before any other statement in the program
jit.gl.shader: — END GLSL INFO LOG: fp –
jit.gl.shader: GLSL program failed to compile.

is this the result of my oldish system?


November 2, 2011 | 6:29 am

If you go to Options > OpenGL Status, you will be able to see what kind of OpenGL renderer your system is using. Could you click on the "Copy to Clipboard" button and paste the results?


November 2, 2011 | 6:47 am

Wesley, here it is:

{
"NVIDIA GeForce 8600M GT OpenGL Engine" : {
"Vendor Name" : "NVIDIA Corporation",
"Version" : "2.1 NVIDIA-1.6.36",
"GLSL Version" : "1.20",
"Renderer Properties" : {
"OffScreen" : 0,
"FullScreen" : 1,
"RendererID" : 16918020,
"Accelerated" : 1,
"Robust" : 0,
"BackingStore" : 1,
"Safe" : 1,
"Window" : 1,
"MultiScreen" : 0,
"Compliant" : 1,
"DisplayMask" : 3,
"BufferModes" : 15,
"ColorModes" : 167805440,
"AccumModes" : 8421376,
"DepthModes" : 3073,
"StencilModes" : 129,
"MaxAuxBuffers" : 2,
"MaxSampleBuffers" : 1,
"MaxSamples" : 8,
"SampleModes" : 2,
"SampleAlpha" : 1,
"VideoMemory" : 134217728,
"TextureMemory" : 110100480,
"GPUVertProcCapable" : 1,
"GPUFragProcCapable" : 1,
"Online" : 1
}
,
"OpenGL Limits" : {
"Framebuffers" : {
"MAX_COLOR_ATTACHMENTS_EXT" : [ 8 ],
"MAX_RENDERBUFFER_SIZE_EXT" : [ 8192 ],
"MAX_VIEWPORT_DIMS" : [ 8192, 8192 ],
"MAX_DRAW_BUFFERS_ARB" : [ 8 ],
"MIN_PBUFFER_VIEWPORT_DIMS_APPLE" : [ 32, 32 ],
"SUBPIXEL_BITS" : [ 8 ]
}
,
"Points and Lines" : {
"ALIASED_LINE_WIDTH_RANGE" : [ 1, 10 ],
"ALIASED_POINT_SIZE_RANGE" : [ 1, 63 ],
"SMOOTH_LINE_WIDTH_GRANULARITY" : [ 0.125 ],
"SMOOTH_LINE_WIDTH_RANGE" : [ 0, 10 ],
"SMOOTH_POINT_SIZE_GRANULARITY" : [ 0.125 ],
"SMOOTH_POINT_SIZE_RANGE" : [ 1, 63 ]
}
,
"Stacks" : {
"MAX_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_CLIENT_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_COLOR_MATRIX_STACK_DEPTH" : [ 10 ],
"MAX_MODELVIEW_STACK_DEPTH" : [ 32 ],
"MAX_NAME_STACK_DEPTH" : [ 128 ],
"MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB" : [ 2 ],
"MAX_PROJECTION_STACK_DEPTH" : [ 10 ],
"MAX_TEXTURE_STACK_DEPTH" : [ 10 ]
}
,
"Textures" : {
"MAX_3D_TEXTURE_SIZE" : [ 2048 ],
"MAX_CUBE_MAP_TEXTURE_SIZE" : [ 8192 ],
"MAX_RECTANGLE_TEXTURE_SIZE_EXT" : [ 8192 ],
"MAX_TEXTURE_SIZE" : [ 8192 ],
"MAX_TEXTURE_LOD_BIAS" : [ 15 ],
"MAX_TEXTURE_MAX_ANISOTROPY_EXT" : [ 16 ],
"MAX_TEXTURE_UNITS" : [ 8 ]
}
,
"Shaders" : {
"MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" : [ 4096 ],
"MAX_TEXTURE_COORDS_ARB" : [ 8 ],
"MAX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_ATTRIBS_ARB" : [ 16 ],
"MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_UNIFORM_COMPONENTS_ARB" : [ 4096 ]
}

}

}
,
"Apple Software Renderer" : {
"Vendor Name" : "Apple Computer, Inc.",
"Version" : "2.1 APPLE",
"GLSL Version" : "1.20",
"Renderer Properties" : {
"OffScreen" : 1,
"FullScreen" : 0,
"RendererID" : 16909312,
"Accelerated" : 0,
"Robust" : 1,
"BackingStore" : 1,
"Safe" : 1,
"Window" : 1,
"MultiScreen" : 1,
"Compliant" : 1,
"DisplayMask" : 3,
"BufferModes" : 13,
"ColorModes" : 134250496,
"AccumModes" : 536870912,
"DepthModes" : 4097,
"StencilModes" : 129,
"MaxAuxBuffers" : 4,
"MaxSampleBuffers" : 1,
"MaxSamples" : 16,
"SampleModes" : 1,
"SampleAlpha" : 1,
"VideoMemory" : 0,
"TextureMemory" : 0,
"GPUVertProcCapable" : 0,
"GPUFragProcCapable" : 0,
"Online" : 1
}
,
"OpenGL Limits" : {
"Framebuffers" : {
"MAX_COLOR_ATTACHMENTS_EXT" : [ 8 ],
"MAX_RENDERBUFFER_SIZE_EXT" : [ 16384 ],
"MAX_VIEWPORT_DIMS" : [ 16384, 16384 ],
"MAX_DRAW_BUFFERS_ARB" : [ 8 ],
"MIN_PBUFFER_VIEWPORT_DIMS_APPLE" : [ 1, 1 ],
"SUBPIXEL_BITS" : [ 10 ]
}
,
"Points and Lines" : {
"ALIASED_LINE_WIDTH_RANGE" : [ 1, 64 ],
"ALIASED_POINT_SIZE_RANGE" : [ 1, 64 ],
"SMOOTH_LINE_WIDTH_GRANULARITY" : [ 0.0001 ],
"SMOOTH_LINE_WIDTH_RANGE" : [ 0, 64 ],
"SMOOTH_POINT_SIZE_GRANULARITY" : [ 0.0001 ],
"SMOOTH_POINT_SIZE_RANGE" : [ 0, 64 ]
}
,
"Stacks" : {
"MAX_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_CLIENT_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_COLOR_MATRIX_STACK_DEPTH" : [ 10 ],
"MAX_MODELVIEW_STACK_DEPTH" : [ 32 ],
"MAX_NAME_STACK_DEPTH" : [ 128 ],
"MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB" : [ 2 ],
"MAX_PROJECTION_STACK_DEPTH" : [ 10 ],
"MAX_TEXTURE_STACK_DEPTH" : [ 10 ]
}
,
"Textures" : {
"MAX_3D_TEXTURE_SIZE" : [ 16384 ],
"MAX_CUBE_MAP_TEXTURE_SIZE" : [ 8192 ],
"MAX_RECTANGLE_TEXTURE_SIZE_EXT" : [ 16384 ],
"MAX_TEXTURE_SIZE" : [ 16384 ],
"MAX_TEXTURE_LOD_BIAS" : [ 16 ],
"MAX_TEXTURE_MAX_ANISOTROPY_EXT" : [ 16 ],
"MAX_TEXTURE_UNITS" : [ 8 ]
}
,
"Shaders" : {
"MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" : [ 4096 ],
"MAX_TEXTURE_COORDS_ARB" : [ 8 ],
"MAX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_ATTRIBS_ARB" : [ 16 ],
"MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_UNIFORM_COMPONENTS_ARB" : [ 4096 ]
}

}

}

}


November 2, 2011 | 7:23 am

As it happens, I have the exact same setup. The gm.solidpoint error is a bug. Thanks for pointing that out. I’m not able to reproduce the "I get jit.gl.material: doesn’t understand "generator" when I change either the Diffuse or Specular shading model" problem. Can you give the exact steps you take to make that happen? Does the output still seem to change appropriately even with the error?


November 2, 2011 | 7:51 am

Wesley,

I just open the patch and change the Diffuse shading model via the drop down menu, there is no visible effect whatsoever.
What is strange though is that when opening the material.io patch i don’t get these errors and the shader models are loaded in correctly.

Also: the gm.illumilines gm.normals and all the others in the shader folder give the same error as the gm.solidpoints, which I guess is consistent with the bug.

grtz

pieter


November 2, 2011 | 2:17 pm

hey guys, i have exactly the same errors when i try to use geometry shaders. It was the same with max 5, i have similar problems.

I have the last MBP with the AMD Radeon HD 6750M GPU.

openGL status:

{
"ATI Radeon HD 6750M OpenGL Engine" : {
"Vendor Name" : "ATI Technologies Inc.",
"Version" : "2.1 ATI-1.6.36",
"GLSL Version" : "1.20",
"Renderer Properties" : {
"OffScreen" : 0,
"FullScreen" : 1,
"RendererID" : 16915206,
"Accelerated" : 1,
"Robust" : 0,
"BackingStore" : 1,
"Safe" : 1,
"Window" : 1,
"MultiScreen" : 0,
"Compliant" : 1,
"DisplayMask" : 3,
"BufferModes" : 15,
"ColorModes" : 176194560,
"AccumModes" : 8421376,
"DepthModes" : 7169,
"StencilModes" : 129,
"MaxAuxBuffers" : 2,
"MaxSampleBuffers" : 1,
"MaxSamples" : 8,
"SampleModes" : 3,
"SampleAlpha" : 1,
"VideoMemory" : 1073741824,
"TextureMemory" : 1063256064,
"GPUVertProcCapable" : 1,
"GPUFragProcCapable" : 1,
"Online" : 1
}
,
"OpenGL Limits" : {
"Framebuffers" : {
"MAX_COLOR_ATTACHMENTS_EXT" : [ 8 ],
"MAX_RENDERBUFFER_SIZE_EXT" : [ 16384 ],
"MAX_VIEWPORT_DIMS" : [ 16384, 16384 ],
"MAX_DRAW_BUFFERS_ARB" : [ 8 ],
"MIN_PBUFFER_VIEWPORT_DIMS_APPLE" : [ 32, 32 ],
"SUBPIXEL_BITS" : [ 8 ]
}
,
"Points and Lines" : {
"ALIASED_LINE_WIDTH_RANGE" : [ 1, 64 ],
"ALIASED_POINT_SIZE_RANGE" : [ 1, 64 ],
"SMOOTH_LINE_WIDTH_GRANULARITY" : [ 0.125 ],
"SMOOTH_LINE_WIDTH_RANGE" : [ 1, 64 ],
"SMOOTH_POINT_SIZE_GRANULARITY" : [ 0.125 ],
"SMOOTH_POINT_SIZE_RANGE" : [ 1, 64 ]
}
,
"Stacks" : {
"MAX_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_CLIENT_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_COLOR_MATRIX_STACK_DEPTH" : [ 10 ],
"MAX_MODELVIEW_STACK_DEPTH" : [ 32 ],
"MAX_NAME_STACK_DEPTH" : [ 128 ],
"MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB" : [ 2 ],
"MAX_PROJECTION_STACK_DEPTH" : [ 10 ],
"MAX_TEXTURE_STACK_DEPTH" : [ 10 ]
}
,
"Textures" : {
"MAX_3D_TEXTURE_SIZE" : [ 16384 ],
"MAX_CUBE_MAP_TEXTURE_SIZE" : [ 8192 ],
"MAX_RECTANGLE_TEXTURE_SIZE_EXT" : [ 16384 ],
"MAX_TEXTURE_SIZE" : [ 16384 ],
"MAX_TEXTURE_LOD_BIAS" : [ 16 ],
"MAX_TEXTURE_MAX_ANISOTROPY_EXT" : [ 16 ],
"MAX_TEXTURE_UNITS" : [ 8 ]
}
,
"Shaders" : {
"MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" : [ 4096 ],
"MAX_TEXTURE_COORDS_ARB" : [ 8 ],
"MAX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_ATTRIBS_ARB" : [ 16 ],
"MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_UNIFORM_COMPONENTS_ARB" : [ 4096 ]
}

}

}
,
"Apple Software Renderer" : {
"Vendor Name" : "Apple Computer, Inc.",
"Version" : "2.1 APPLE",
"GLSL Version" : "1.20",
"Renderer Properties" : {
"OffScreen" : 1,
"FullScreen" : 0,
"RendererID" : 16909312,
"Accelerated" : 0,
"Robust" : 1,
"BackingStore" : 1,
"Safe" : 1,
"Window" : 1,
"MultiScreen" : 1,
"Compliant" : 1,
"DisplayMask" : 7,
"BufferModes" : 13,
"ColorModes" : 134250496,
"AccumModes" : 536870912,
"DepthModes" : 4097,
"StencilModes" : 129,
"MaxAuxBuffers" : 4,
"MaxSampleBuffers" : 1,
"MaxSamples" : 16,
"SampleModes" : 1,
"SampleAlpha" : 1,
"VideoMemory" : 0,
"TextureMemory" : 0,
"GPUVertProcCapable" : 0,
"GPUFragProcCapable" : 0,
"Online" : 1
}
,
"OpenGL Limits" : {
"Framebuffers" : {
"MAX_COLOR_ATTACHMENTS_EXT" : [ 8 ],
"MAX_RENDERBUFFER_SIZE_EXT" : [ 16384 ],
"MAX_VIEWPORT_DIMS" : [ 16384, 16384 ],
"MAX_DRAW_BUFFERS_ARB" : [ 8 ],
"MIN_PBUFFER_VIEWPORT_DIMS_APPLE" : [ 1, 1 ],
"SUBPIXEL_BITS" : [ 10 ]
}
,
"Points and Lines" : {
"ALIASED_LINE_WIDTH_RANGE" : [ 1, 64 ],
"ALIASED_POINT_SIZE_RANGE" : [ 1, 64 ],
"SMOOTH_LINE_WIDTH_GRANULARITY" : [ 0.0001 ],
"SMOOTH_LINE_WIDTH_RANGE" : [ 0, 64 ],
"SMOOTH_POINT_SIZE_GRANULARITY" : [ 0.0001 ],
"SMOOTH_POINT_SIZE_RANGE" : [ 0, 64 ]
}
,
"Stacks" : {
"MAX_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_CLIENT_ATTRIB_STACK_DEPTH" : [ 16 ],
"MAX_COLOR_MATRIX_STACK_DEPTH" : [ 10 ],
"MAX_MODELVIEW_STACK_DEPTH" : [ 32 ],
"MAX_NAME_STACK_DEPTH" : [ 128 ],
"MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB" : [ 2 ],
"MAX_PROJECTION_STACK_DEPTH" : [ 10 ],
"MAX_TEXTURE_STACK_DEPTH" : [ 10 ]
}
,
"Textures" : {
"MAX_3D_TEXTURE_SIZE" : [ 16384 ],
"MAX_CUBE_MAP_TEXTURE_SIZE" : [ 8192 ],
"MAX_RECTANGLE_TEXTURE_SIZE_EXT" : [ 16384 ],
"MAX_TEXTURE_SIZE" : [ 16384 ],
"MAX_TEXTURE_LOD_BIAS" : [ 16 ],
"MAX_TEXTURE_MAX_ANISOTROPY_EXT" : [ 16 ],
"MAX_TEXTURE_UNITS" : [ 8 ]
}
,
"Shaders" : {
"MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" : [ 4096 ],
"MAX_TEXTURE_COORDS_ARB" : [ 8 ],
"MAX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_ATTRIBS_ARB" : [ 16 ],
"MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB" : [ 16 ],
"MAX_VERTEX_UNIFORM_COMPONENTS_ARB" : [ 4096 ]
}

}

}

}


Viewing 6 posts - 1 through 6 (of 6 total)