ParaToxic Posted November 10, 2011 Share Posted November 10, 2011 Hello i would like to include the DOF shader to my project.When i load the Shader and set the Uniforms dofnerrange and doffarrange in the logfile stand that this Uniforms don't exist in the shader. Please help me. TShader dof=LoadShader("abstract::postfilter.vert","abstract::postfilter_dof.frag"); SetShaderVec2(dof,"dofnearrange",Vec2(10,15)); SetShaderVec2(dof,"doffarrange",Vec2(25,30)); and in the logfile stand: Warning: Uniform "dofnearrange" does not exist in shader. Warning: Uniform "doffarrange" does not exist in shader. What can i do? Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 10, 2011 Share Posted November 10, 2011 when you run the code, do you get the effect that you are wanting? just curious, because that is not the frag shader used with the inherent DOF command? But in any case, I would assume the warnings are from when you load the shader, those uniforms at that moment are not presently set. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
ParaToxic Posted November 11, 2011 Author Share Posted November 11, 2011 unfortunately i haven't an effect.I used the Tutorial "Postprocessing effects" but nothing is going on. Maybe somebody have a working example? Thanks Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 11, 2011 Share Posted November 11, 2011 are you not using framework? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
ParaToxic Posted November 11, 2011 Author Share Posted November 11, 2011 No i don't use Framework,because its a little bit slowly and i can't include/load my own shaders. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 11, 2011 Share Posted November 11, 2011 I recommend using it, but if you don't want to, you can look at the source. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ParaToxic Posted November 11, 2011 Author Share Posted November 11, 2011 Ok but i can't get the Source because i haven't a lisence for it. Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 12, 2011 Share Posted November 12, 2011 Ok but i can't get the Source because i haven't a lisence for it. The framework source is open to everyone with the SDK... look inside the SDK's BMX/framework folder for the files in question... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.