Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
DotNet
»
PostFX problems
Print
Pages: [
1
]
Author
Topic: PostFX problems (Read 4603 times)
0 Members and 1 Guest are viewing this topic.
Xyro
Jr. Member
Posts: 52
PostFX problems
«
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 :
Logged
Laurent
Administrator
Hero Member
Posts: 32498
PostFX problems
«
Reply #1 on:
April 16, 2011, 08:42:03 pm »
Which post-effect is it? The one provided in the tutorial doesn't contain any '<' character.
Logged
Laurent Gomila - SFML developer
Xyro
Jr. Member
Posts: 52
PostFX problems
«
Reply #2 on:
April 16, 2011, 08:44:38 pm »
Its included on the right of the screenshot
Logged
Laurent
Administrator
Hero Member
Posts: 32498
PostFX problems
«
Reply #3 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?
Logged
Laurent Gomila - SFML developer
Xyro
Jr. Member
Posts: 52
PostFX problems
«
Reply #4 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 ?
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
PostFX problems
«
Reply #5 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?
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Xyro
Jr. Member
Posts: 52
PostFX problems
«
Reply #6 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
Logged
Xyro
Jr. Member
Posts: 52
PostFX problems
«
Reply #7 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 ?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
PostFX problems
«
Reply #8 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).
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
DotNet
»
PostFX problems
anything