Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bmn

Pages: [1] 2
1
Graphics / Re: sf::Shader uniform array
« on: June 19, 2012, 08:31:20 pm »
Oh ok, thanks. New feature in 2.x ? ;D

2
Graphics / Re: sf::Shader uniform array
« on: June 19, 2012, 08:18:47 pm »
But you mean its not possible in sfml or in glsl itself. This is how I got code above
http://stackoverflow.com/questions/8099979/glsl-c-arrays-of-uniforms

3
Graphics / sf::Shader uniform array
« on: June 19, 2012, 07:58:35 pm »
How do I send data to uniform array with sf::Shader ? I've tried using this:
float v3Colours[30];
for( int i = 0; i < 10; i++ ){
        v3Colours[ i * 3    ] = i*0.1;
        v3Colours[ i * 3 + 1] = 1.0-i*0.1;
        v3Colours[ i * 3 + 2] = 1.0-i*0.1;
}
glUniform3fv(glGetUniformLocation(id, "v3Colours"), 10, v3Colours);
but I don't know program id. Is it even possible ?

4
SFML projects / SFML Light System - Let There Be Light
« on: January 06, 2012, 06:27:08 pm »
Also works for me now.

I'm wondering how you fixed this because I have a project that does the same thing, but only on my dev computer.

5
SFML projects / SFML Light System - Let There Be Light
« on: January 01, 2012, 01:37:27 pm »
I have the same problem as Haikarainen.

AMD HD6950, using latest drivers.

Another problem with ATI/AMD video cards?

6
General / Help with lightmanager
« on: April 28, 2011, 01:58:21 am »
Aha, thanks much  :D

7
General / Help with lightmanager
« on: April 28, 2011, 01:17:19 am »
So I've tried everything I can think of and haven't fixed it yet.  Anybody got any solutions? If not, I'll start from scratch.

8
General / Help with lightmanager
« on: April 16, 2011, 10:21:25 pm »
I'm pretty sure I didn't.

The only things I've removed are walls and lights from main.cpp and the blur shader effect

EDIT: The Original Project also seems to have this problem.  Move your mouse around underneath the bottom-left walls and you should see this problem, so it's nothing I did.  Perhaps the same happens with your rbSFML port of the lightmanager?

9
General / Help with lightmanager
« on: April 16, 2011, 04:56:56 am »
I've been trying to use the lightmanager from the French wiki and everything works fine unless my walls are perfectly horizontal or vertical.  I'm guessing it's a divide by zero or similar mathematical error but I cannot seem to find it.

I've uploaded my source and compiled project Here so everybody can see the problem. The only change to the source is that unnecessary lines have been commented out.



The problem is with the lower of the two walls.

10
General discussions / Problem compiling SFML 2.0 program
« on: February 04, 2011, 03:38:55 am »
Quote from: "OniLink10"
There isn't a 1.7. And it's new to SFML2.


The Download Page list the latest non SFML2 trunk as SFML 1.7

11
Window / [VS2010] How do you get rid of the console window?
« on: January 27, 2011, 06:39:16 pm »
Ah, thanks, now everything is working perfectly.

12
Window / [VS2010] How do you get rid of the console window?
« on: January 27, 2011, 06:19:58 pm »
How would you do this in CSFML, since there is no csfml-main.lib anywhere?

13
C / Scaling offsets graphics
« on: August 05, 2010, 09:56:35 am »
Perhaps it is not the same problem, but that doesn't change the fact that it is still indeed a problem.

And an update

SFML 1.2 : working
SFML 1.2 + CSFML 1.2 : working

I tried the first version of CSFML to be sure the problem hasn't existed since the beginning, so now I will continue searching for the version that first stopped working.

14
C / Scaling offsets graphics
« on: August 05, 2010, 08:48:01 am »
I know this problem has been reported with SFML 1.6, but it has existed in the C bindings since before 1.6.

I'm using Visual Studio 2010 so I had to recompile the libs from scratch, and here are my results.

SFML 1.6 : not working (already reported)
SFML 1.6 + CSFML 1.6 : not working (obvious)

SFML 1.5 : working
SFML 1.5 + CSFML 1.5 : not working

I'm not sure why it doesn't work, and any suggestions would be appreciated. Tomorrow I might keep trying earlier versions until I find where the problem first originated.

15
SFML website / Typo
« on: May 28, 2010, 08:48:38 pm »
"si you use" -> "if you use"?

http://sfml-dev.org/wiki/en/faq

Pages: [1] 2