|
Post by DJLinux on Dec 18, 2008 22:58:50 GMT -5
My older NV Ti4200 card reports support for shader language 100 but only for vertex programs not the more funy fragment programs how can it be? please post your resuts too. Joshy Const GL_SHADING_LANGUAGE_VERSION As Integer = 35724
function GetShaderSupport(&vs,&fs) vs=FALSE:fs=FALSE if ExtensionSupported ("GL_ARB_shading_language_100") then printr glGetString(GL_SHADING_LANGUAGE_VERSION) if ExtensionSupported ("GL_ARB_shader_objects") then if ExtensionSupported ("GL_ARB_vertex_shader") then if ExtensionSupported ("GL_ARB_vertex_program") then vs=TRUE end if end if if ExtensionSupported ("GL_ARB_fragment_shader") then if ExtensionSupported ("GL_ARB_fragment_program") then fs=TRUE end if end if if VS=TRUE or FS=TRUE then return TRUE:end if end if end if return FALSE end function
dim Vertex,Fragment if GetShaderSupport(Vertex,Fragment)=TRUE then printr "shader support for:" if Vertex then printr "vertex programs":end if if Fragment then printr "fragment programs":end if else printr "no shader support!" end if
|
|
|
Post by Darkjester on Dec 19, 2008 0:20:58 GMT -5
I got support for both.. Im not sure what your asking though...
|
|
|
Post by DJLinux on Dec 19, 2008 1:16:02 GMT -5
I got support for both.. Im not sure what your asking though... if we will use shaders with B4GL (and i will) we need a simlpe way to implement it it's not a problem with newer OpenGL 2.0 shader language but versions before from ATI, NV, 3DLABS used the ARB shader language but my NV cars reports no support for fragment shader programs i know i can use NV_fragment_program but this will end in to mutch work if opengl=2.0 then ' use glSL API elseif ARB_fragment_shader and ARB_vertex_shader then ' use ARB_shaders API elseif NV then ' use NV only shaders API elseif ATI then ' use ATI only shaders API else ' no shader support end if can you post your version string from my test code please Joshy
|
|
|
Post by matthew on Dec 19, 2008 6:08:26 GMT -5
Not surprising but I haven't got any Shader Support.
|
|
|
Post by DJLinux on Dec 19, 2008 6:17:18 GMT -5
now I'm totally confuse
ExtensionSupported ("GL_ARB_shading_language_100") ExtensionSupported ("GL_ARB_shader_objects") ExtensionSupported ("GL_ARB_vertex_shader") ExtensionSupported ("GL_ARB_vertex_program")
all this lines reports the shader object extension is available
but if i use pFunc=wglGetProc("GL_ARB_shader_objects")
the return value (a pointer to the function) is NULL then i used an hex editor and searched in both opengl.dll and opengl32.dll for any string with "ARB" included but there isn't any
to hell from witch place will get ExtensionSupported() read the strings?
Joshy
|
|
|
Post by DJLinux on Dec 19, 2008 8:01:10 GMT -5
looks like i found the problem i tested it with C++ and VB6 and the function pointers was successful returned i think if the plug in will be loaded and b4gl has not created the opengl render context then all other opengl things must fail. now i will place the code inside of plugin.start() procedure Joshy
|
|
|
Post by Empyrion Martyr on Dec 20, 2008 12:29:52 GMT -5
NV GeForce IV MX440 (64 mb vram) here and only supports "vertex programs" but NOT "fragment programs"
|
|
|
Post by DJLinux on Dec 20, 2008 13:22:38 GMT -5
NV GeForce IV MX440 (64 mb vram) here and only supports "vertex programs" but NOT "fragment programs" same as my NV GForce4 ti4200
|
|
|
Post by Darkjester on Dec 20, 2008 21:00:57 GMT -5
ATI RAdeon x1050 supporting shaders (vertex and fragment) up to 2.5.
Also an Nvidia geforce 2 mx 400 is older and supports shaders 1.x (vertex and fragment) maybe firmware glitch in your ti hardware? perhaps the extension isnt inintializing because impretty sure all programmable shader hardware should support both types of shaders.
-Darkjester
|
|
|
Post by Empyrion Martyr on Dec 21, 2008 9:27:15 GMT -5
who knows... anyway i'm planning on upgrading my video soon, so no big deal there
|
|
|
Post by smc44 on Dec 21, 2008 10:30:43 GMT -5
nvidia 6150 LE and geforce 9600 GSO 768mb GDDR3, directx10 shader 4.0 support, two 1080p outputs, total meory (with shared meory and initial VRAM on the card) 1.4 gb
|
|
|
Post by DJLinux on Dec 21, 2008 11:18:11 GMT -5
... Also an Nvidia geforce 2 mx 400 is older and supports shaders 1.x (vertex and fragment) maybe firmware glitch in your ti hardware?... minimum is a NVIDIA 5600 for fragment shaders :-( (i'm talking about OpenGL not DX)
|
|
|
Post by Darkjester on Dec 21, 2008 18:41:25 GMT -5
nvidia 6150 LE and geforce 9600 GSO 768mb GDDR3, directx10 shader 4.0 support, two 1080p outputs, total meory (with shared meory and initial VRAM on the card) 1.4 gb 6150 is a chipset (onboard video) and uses shared, which is disabled when you use a video card and we dont need to be discussing HIdef ports on video cards, in fact unless you have that card as a tv tuner you dont have 2 of those on a card. and video memory isnt exactyly something to brag about.
|
|
|
Post by smc44 on Dec 21, 2008 19:44:19 GMT -5
yea i know i have my bult in onboard card which is built with 6150 le and i have a card i added in, i then set them up so they can be used at the same time
|
|
|
Post by Darkjester on Dec 21, 2008 23:37:34 GMT -5
SMC thats completely imposible the BIOS on those chipsets disable onboard Video when you put in an another card. Your shared memory goes back to be just ram. I know this better than 90% of the general public.
|
|