SFML community forums

Bindings - other languages => DotNet => Topic started by: Xyro on April 16, 2011, 08:28:14 pm

Title: PostFX problems
Post 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)
Title: PostFX problems
Post by: Laurent on April 16, 2011, 08:42:03 pm
Which post-effect is it? The one provided in the tutorial doesn't contain any '<' character.
Title: PostFX problems
Post by: Xyro on April 16, 2011, 08:44:38 pm
Its included on the right of the screenshot
Title: PostFX problems
Post by: Laurent on April 16, 2011, 11:11:37 pm
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?
Title: PostFX problems
Post by: Xyro on April 17, 2011, 07:11:46 pm
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 ?
Title: PostFX problems
Post by: Nexus on April 17, 2011, 07:25:58 pm
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?
Title: PostFX problems
Post by: Xyro on April 17, 2011, 07:46:20 pm
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
Title: PostFX problems
Post by: Xyro on April 18, 2011, 02:07:53 pm
Ported over to 2.0 it seems to compile good now, now I am trying the most basic shader I can think of :

Code: [Select]

void main()
{
gl_FragColor = gl_Color;
}



Only this shows completely white instead of showing my scene, what am I doing wrong ?
Title: PostFX problems
Post by: Laurent on April 18, 2011, 02:15:12 pm
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).