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 - peaman

Pages: [1]
1
Window / Bug in event TextEntered?
« on: May 16, 2008, 01:35:26 pm »
When I filter the characters 0-31, as you said, I don't have the problem anymore. That's fine with me. But you mean even that shouldn't be necessary?
I would like to try the SVN. Is there an easy way to download everything at once?

2
Window / Bug in event TextEntered?
« on: May 16, 2008, 12:53:05 pm »
Ok, then the problem is when you try to draw a string with unprintable characters.

Thanks.

3
Feature requests / Some ideas
« on: May 13, 2008, 01:38:04 pm »
It would be nice if Sprites had separate centers for scale, rotation, and position.
I also don't like it that when you scale a sprite, the rotation center doesn't stay in the  center of the sprite.

A function for checking overlaping of sprites would be nice. It should also consider scale and rotation of the sprites.

bool sf::Sprite::Collides(const fs::Sprite &s1, const fs::Sprite &s2);

So if two non-trasparent pixels of the sprites would overlap, the function would return true.

Btw why have Sprites a method called Scale() and another called SetScale()? Do they differ in any way?

4
Window / Bug in event TextEntered?
« on: May 13, 2008, 10:21:03 am »
Version 1.2, windows xp

5
Window / Bug in event TextEntered?
« on: May 13, 2008, 08:28:26 am »
Hello

I wrote a program that displays text the user enters, but when one presses backspace it won't react to any subsquent input. Is this a bug?

6
General discussions / PostFX - random numbers?
« on: May 11, 2008, 04:16:20 pm »
Quote from: "deps"
I'm haven't used GLSL at all, ever, but you can still create functions in it? If so, why don't you make your own random function?

It won't be truly random, but there doesn't exist anything remotely like a truly random function on home computers. Yet it might be good enough to do what you want. You can pass values to it from C++ to use as a random seed. I'm sure you would find info about this rather quickly using google.


thanks for the tip, but glsl has no static variables. Another problem is that there are no bitwise operations.

7
General discussions / PostFX - random numbers?
« on: May 11, 2008, 02:54:27 pm »
Hi

I don't pass the numbers because I need different ones for each pixel that is processed.
I'm thinking now about using a texture that contains the noise. That might be a workaround.

8
General discussions / PostFX - random numbers?
« on: May 11, 2008, 01:54:40 pm »
Hello

Anybody knows how to generate random numbers in glsl? I'm trying to write a blur effect with jitter. I know there are functions like noise1, noise2 etc. but somehow they seem not to do anything but return zero. Maybe I'm doing something wrong?

best regards

Pages: [1]
anything