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 - Cuban-Pete

Pages: [1] 2 3 ... 5
1
Graphics / CopyScreen y position not working
« on: July 15, 2011, 04:03:42 pm »
Thanks! It works great now!  :D

2
Feature requests / Color conversions
« on: July 15, 2011, 02:50:37 pm »
So no HSL<->RGB convertion function?

3
Feature requests / Color conversions
« on: July 11, 2011, 12:54:04 pm »
Quote from: "panithadrum"
I think that a custom function would be the best...
http://www.deadbeef.com/converting_rgb_to_hsv_in_c/
http://serennu.com/colour/rgbtohsl.php
http://130.113.54.154/~monger/hsl-rgb.html


If SFML won't support it, do you perhaps have the c++ code for that (RGB <-> HSL)? I tried google, but got strange C# stuff...

4
Graphics / CopyScreen y position not working
« on: July 11, 2011, 09:01:15 am »
bump

Code: [Select]

//taking a copyscreen of fourth quarter:
screen.CopyScreen(window, sf::IntRect( 600/2, 0, 300, 200) ); //this gives correct result
screen.CopyScreen(window, sf::IntRect( 600/2, 400/2, 300, 200) ); //this should be the correct code

5
SFML projects / Fruit Chase
« on: July 11, 2011, 12:07:45 am »
Score of 950.

Haha, funny game. Has nice looks also, it fits the game.

Nice work!  :D

6
Feature requests / Color conversions
« on: July 10, 2011, 10:46:59 pm »
What would also be nice is an operator on colors. For example that I do this:

Code: [Select]
sf::Color test(20,20,20);

test = test * 1.5;


and we get a brighter test color.  :)

7
Feature requests / Color conversions
« on: July 10, 2011, 09:18:36 pm »
I would like to have the ability to change RGB to HTML (hex) and back to RGB again. But what I would really like is RGB to HSL and back to RGB again.  :)

//edit: Why HSL? Because than I can do color overlay effects like in Gimp.

8
Graphics / uniform struct not working
« on: July 10, 2011, 05:01:58 pm »
Never mind this. Shaders are a pain to work with, they don't even support 2D/3D arrays. I will solve my problem with using sprites and multiple coloured images.  :)

9
Graphics / uniform struct not working
« on: July 10, 2011, 02:40:02 pm »
Okay. Thanks for the quick reply.

Will SFML contain in the future perhaps a function to write the shader log to a text file? I have some code that the shader is not compiling, but have no idea where the mistake is.

Perhaps someone knows a program/editor that can check if the shader code has errors?

10
Graphics / uniform struct not working
« on: July 10, 2011, 02:21:59 pm »
I got this in program:

Code: [Select]
shader.SetParameter("text.n",400.0f);

In shader:

Code: [Select]

uniform struct someStruct {
  float t[800];
  float n;
} text;



I'm not reaching the shader...  :(

11
General discussions / A new logo for SFML
« on: July 09, 2011, 08:28:24 pm »
Hmm, not so keen on it, but wasted some time on it, so here it is:



//edit: hehe, makes me think: soccer time! or time for Grolsch Beer  :D

12
General discussions / A new logo for SFML
« on: July 09, 2011, 03:13:11 pm »
Nice logo Brendon, I'm a big fan of simplicity/clean design. You achieved that nicely. The negative space gives the box a creative look. But... looking at the current logo design, I think your clean logo is too plain.  :)

Just my 'simple and fast' opinion.  8)

13
Graphics / setParameter not working?
« on: July 08, 2011, 10:15:41 pm »
Writing to sf::Err()? Huh?  :( I thought sf::Err() is like a function that when you call it, it puts out all the encountered errors...

Keep instance alive? For how long?

I just use it like this at the end of the while loop:

Code: [Select]
if(someButtonBool){
std::ofstream file("debug.txt");
sf::Err().rdbuf(file.rdbuf());
file.close();
}


Sorry for wasting your time, but I don't get it. Is there perhaps a complete code example?

14
Graphics / setParameter not working?
« on: July 08, 2011, 09:43:15 pm »
Quote from: "Laurent"
You're doing it wrong ;)

Code: [Select]
std::ofstream file("debug.txt");
sf::Err().rdbuf(file.rdbuf());


Does it matter when you call it? I'm getting no errors (after recreating the problem in this topic).

15
Window / Is there any way to recognize the numpad period key?
« on: July 08, 2011, 09:20:48 pm »
Use instead (?):

Code: [Select]

if (event.Type == sf::Event::TextEntered){

 if (event.Text.Unicode == 8 ){ //8 is 'enter' in this example

 ... do stuff...

 }
}

Pages: [1] 2 3 ... 5