• Create Account

GLSL Devil Visual C++ Question...

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

3 replies to this topic

Posted 09 March 2014 - 06:34 PM

http://wwwvis.informatik.uni-stuttgart.de/glsldevil/index.html#usage

I want to use it with Visual C++ (2010), but am not sure how to hook up GLSL Devil to Visual C++.

I tried telling GLSL Devil to load both my .vert and .frag files for GLSL, but it does not seem to do anything with them.

Is this code not saving a binary file to disk that I need to connect GLSL Devil to?

Both my .vert and .frag files work at the moment - they are successfully transforming vertices and applying colors as needed.  I just want to use GLSL Devil to help debug some additional changes I need to make.

#2TheChubu  Members

Posted 10 March 2014 - 04:51 AM

Umm, GLSL shaders arent binary files, they're just plain text files.

#version 330 core
in vec3 inPosition;
in vec3 inColor;

uniform mat4 mvp;

out vec3 outColor;

main (void)
{
gl_Position = mvp * vec4(inPosition,1.0f);
outColor = inColor;
}
Thats a GLSL vertex shader. No binaries, no funky sutff, just plain text.

And that looks like a standalone tool, not a VS plugin. Load shader files, display them, do stuff with it, save them. That's it.

Though it does looks like you can debug appliactions with it, for that you'd need your exe and point GLSL Devil to it so it can launch it. Much like CodeXL.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

#3krinosx  Members

Posted 10 March 2014 - 08:21 AM

i got glslDevil this weekend and as far as I understand you may generate your DEBUG version with Visual Studio and use the glslDevil to run your app.... glslDevil will monitor all GL_ calls, and you may use it to debug its values.... I think it will also load the shaders and let you step ( debug ) the shader code....

Btw.. I have no success using glsl with my application... it has something about texture loading calls.... I have no time to try a workaround or to learn glslDevl deeply... so, I will try to do it next weekend.. I will update this thread if I got some progress....