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.


Topics - Cuban-Pete

Pages: [1]
1
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.

2
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...  :(

3
Graphics / CopyScreen y position not working
« on: July 04, 2011, 07:30:21 pm »
Hi,

I'm using CopyScreen and the y position is off.

I tried to fix it to change this line in the source code:

Code: [Select]
   GLCheck(glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, srcRect.Left, srcRect.Top + myHeight, myWidth, myHeight));

The glCopyTexSubImage2D function starts at the left bottom and not the top left position. My fix however does not work, somehow it goes higher than it should...  :roll:

4
Graphics / setParameter not working?
« on: July 03, 2011, 03:59:49 pm »
I cannot get it to work. I have this very very complicated shader... :P

Code: [Select]

varying vec4 normalColor;

void main( void )
{  
   gl_FragColor = normalColor;
}


and I have this in my program:

Code: [Select]
sf::Shader shader;
if(!shader.LoadFromFile("shader.txt")){
return 0;}
if(shader.IsAvailable()) info = " shader available";
shader.SetParameter("normalColor", 1.f, 0.f, 0.f, .5f);


I also use:
Code: [Select]

shader.Bind(); //move into function?
// opengl stuff
shader.Unbind(); //move into function?


I know the shader is working because IsAvailable return true and my opengl content is completely black.

5
Feature requests / [Not needed] sf::Image Append
« on: June 28, 2011, 06:32:54 pm »
I would like to see an image operator that appends images together.

I tried myself this and it's pretty difficult. Well, appending vertically (same width images) is not a problem, but horizontal it is.

If it is not on the agenda, I might try to create my own - if you guys want to help that is.  :roll:   :)  Perhaps I will start with a AppendVertical function.  :P

6
Graphics / Load from resource file
« on: June 25, 2011, 11:15:44 am »
Hi,

I want to load an image from the resource files added in visual studio, but it does not work.

I have in .rc this:
Code: [Select]
FONT_NORMAL BITMAP  DISCARDABLE     "normal_1.bmp"

I have in resource.h this:
Code: [Select]
#define FONT_NORMAL       115

I have in the main.cpp this:
Code: [Select]
unsigned char Texture = FONT_NORMAL;

    sf::Image backgroundImage;
    if (!backgroundImage.LoadFromMemory(&Texture, sizeof(Texture) ) )
        return EXIT_FAILURE;


Not compile error, yet it fails to start the program with no error message.  :roll:

7
SFML website / Playing with forum style...
« on: June 23, 2011, 01:21:12 pm »
Was playing with the forum style, what do you think?

(this is only for on the main forum page)


8
SFML wiki / Added page about setIcon and make your own
« on: June 22, 2011, 08:21:19 pm »
On this page: https://github.com/SFML/SFML/wiki/TutorialCreateAndUseSetIcon

Any comments, idea's. Please post them here. Thanks. :)

Oh, I do got myself two comments.

1) The example image and "green loop" are now hosted on my website. This website might not have the eternal life, so perhaps putting them on Github or sfml website might be better.  :)

2) Is it possible to set a 32x32 icon for the taskbar and a 16x16 for the titlebar? Now the 32x32 gets resized, this is not always wanted. For example when the 16x16 looks different as the 32x32.

9
SFML website / [Suggestion] Favicon
« on: June 22, 2011, 05:24:00 pm »
Hi, see this image below. Do you like the suggestion? I can upload the correct icon file if you like.  :)


10
Window / Fixed windowsize
« on: June 21, 2011, 07:04:09 pm »
Now I use:
Code: [Select]

while (window.IsOpened())
{
...
window.SetSize(800,600);
...


but perhaps there is a better way to give my program/window a fixed size?

I could not find anything in here: http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php

11
General / Not working...
« on: June 21, 2011, 02:32:54 pm »
Hi,

I would like to use SFML, but after trying days I give up. My reasons:

- 1.6 has ATI bug
- 2.0 has -gluperspective32 bug, compiler keeps giving error
- 2.0 examples don't even work. what the hell. they close right away after starting or won't compile

I'm on win7 64bit with ATI HD4870.

I wanted to make a program that can be used on all operating systems, but this is just not working...

Pages: [1]