SFML community forums
Bindings - other languages => DotNet => Topic started by: Xyro on April 16, 2011, 08:28:14 pm
-
I am trying to use postfx, for some reason I am getting a weird error even when trying to use the effect that is provided in the original tutorial.
Setup
Windows 7 64 bit
Ati Radeon HD 4970x2
I made a screenshot displaying all the code and the error :
(http://i.cubeupload.com/k0pVpb.png)
-
Which post-effect is it? The one provided in the tutorial doesn't contain any '<' character.
-
Its included on the right of the screenshot
-
Sorry, it was completely out of my 4:3 19'' screen.
I don't know what's wrong. Have you tried the PostFx sample included in the SFML.Net SDK?
-
Euh, for some reason the sample uses things like Text instead of String2D and Shader instead of PostFx, am I looking at the wrong thing or did I do something wrong ?
-
In SFML 2 the identifiers have changed.
But obviously you are using SFML 1.x, otherwise the code wouldn't even compile. How can you have SFML 2 samples in your SDK? Did you mess something up?
-
Dunno I downloaded both but I thought I had been using 2.0. Seems I made a mistake, I'll add in the 2.0 binaries and update my code, hopefully that fixes my problem
-
Ported over to 2.0 it seems to compile good now, now I am trying the most basic shader I can think of :
void main()
{
gl_FragColor = gl_Color;
}
Only this shows completely white instead of showing my scene, what am I doing wrong ?
-
gl_Color is the global drawable color that you set with SetColor().
Look at GLSL tutorials, or at least to shaders examples provided in the SDK, to know how to display your scene (there's such a shader in the "shader" example).