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

Pages: [1] 2 3
1
Feature requests / Re: Blend Mode -> sf::BlendSub
« on: October 08, 2012, 09:13:33 pm »
If I have the permission to say something, I would say that it would be good if
you only add sf::BlendSub to the other blend modes that still exist and additionally
making the API more flexible for blend modes.

I think with sf::BlendAdd, sf::BlendSub, sf::BlendAlpha, sf::BlendMultiply and sf::BlendNone
the most use of blend modes covered and for the other people with special wishes
is a simple custom blend mode system enough.

So you would have the compromise. There is still a clearly manageable list of existing
blend modes that will cover the most use and at the same time there is a flexible system
for creating custom ones that cover all sort of use of blend modes.

Only wanted to say it, if you not already want to do it like I said. ;D

2
Feature requests / Re: Blend Mode -> sf::BlendSub
« on: October 08, 2012, 06:02:41 pm »
Awesome! I'm really glad to hear this :) And I'm looking forward to that day too :D
But I think his question is actually asking for two things: One is the custom blend mode "function" that let's you specify the way the source and the destination colors are mixed. And the second thing is a subtract blend mode. This is a rather trivial thing. Could the subtract blend mode be added in the meantime? I mean you could remove it the second the custom blend mode option is added? I'd really love to see that.

Yes, this would be really nice.

3
Feature requests / Re: Blend Mode -> sf::BlendSub
« on: October 08, 2012, 12:14:29 pm »
I hope this day comes fast... :P ;D

4
Feature requests / Blend Mode -> sf::BlendSub
« on: October 08, 2012, 11:00:24 am »
Hello,

I know there is still a new Thread about blend modes, but I want to ask for this Feature too,
so I made a new separate Thread for the reason why I want this feature (too).

Reason:

It would be nice if there is a way to make (easily) custom blend modes
without using Open GL (cause I have no experience in it :P).

I need one blend mode that substract the Source Pixel with the Destination Pixel
for a simple lighting system. This is my personal reason why I want this feature.

But I think generally that blend modes are a very useful tool on the graphical level, and
I'm sure that I need later a custom blend mode for other stuff (again)... And it seems like that
I'm not the only one that want this feature too, so why there is still no SFML class that allows
making custom blend modes, is there an important Reason? :)

Thanks in Advance for all answers!

5
Quote
I bet his screen resolution was smaller than the size of the window (either vertically or horizontally) the window then won't get displayed. I think Laurent will fix this, at least he stated this in another forum post.

You are right, this was the problem...

Quote
I've looked at your video again and I see that you've changed your taskbar apperance to the old taskbar style. Does it lag too if you use the normal one?
Also is this caused by another application, because I couldn't find that option.

I test it with the normal style, but same lagg problem...
My second friend test it now too, and he has no problems...

One friend and me has this problem, my second friend not! 2 vs 1...

6
Quote
Why did you then say you've used some code from another old tutorial?

I used the Code from the Tutorial, an add only a Framelimit, nothing more... :P

I send the Test program to another friend that was actually online, he has a bigger
problem... same code like posted before -> Can't open the Window, its minimzed, and
don't comes in the foreground... only the console is in the foreground, I was with teamviewer
on his desktop, and I can confirm it...

With a build that I get from a youtube Video description (yeah, I'm lazy), there was no problem, and
he can open the window without any problem... (But the problems I have, where in the Youtube Build too)

-> http://www.youtube.com/watch?v=cDNo4bzrFW8

Quote
I'm using Win7 too and I don't experience anything like this for any SFML application.

Have you test SFML 2.0 Application too and have you really made sure that it dont "laggs"?

7
Quote
What is the cpu usage of the test application when it is running? It sounds as if you are letting the test program run the render loop as fast as it can without any type of framerate limitation. Try limiting the framerate and see if it solves the problem.
The CPU Usage is between 1-7%, I think this is really normal / low...
I set the Framelimit on 30fps but for testing I setted it on 1fps, nothing changed, same problem!

Quote
The only reasonable explenation would be that the message queue gets spammed somehow...
Use a debugger and a profiler to figure out what's really going on.
This can be the reason, but I'm honest, I don't know how to see the message queue in...

The Code, how I written before, is really standard code:

#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>

int main()
{
    // Create the main window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Framelimit
    App.setFramerateLimit(30);

    // Event
    sf::Event Event;

    std::cout << "...\n";
    std::cout << "...\n";

    while(App.isOpen())
    {
                while(App.pollEvent(Event))
                {
                        if(Event.type == sf::Event::Closed)
                        {
                                App.close();
                        }
                }

        App.clear();
        App.display();
    }

    return EXIT_SUCCESS;
}
 

...Yeah, thats it!

I am beginning to think that it's a problem with SFML...
However I'm going to test next time the same program with SFML 1.6
and look if there is the same problem!

8
Still no one have an Idea what about I'm talking? ???

9
Ok, you are right, my explaining was maybe bad...  :-[

Ehm... I mean with combining SFML with WinAPI this -> http://www.sfml-dev.org/tutorials/1.5/graphics-win32.php

And the main Problem is that, if I open a SFML program, and go to taskbar ...
I make a Video, this is the best way to explain it perfectly!



You see, I start the test program, then I go with the Mouse over the task bar and it response
after some seconds, later I clicked on a task, and it goes in foreground
(depending on the program I clicked) after 3-5 seconds by bigger program's
like visual studio -> 5-8 seconds!

-> But with the Key Combination for switching the Window it works normally / perfect, without
any waiting!

Right clicking on a task
-> Seconds to show the Dialog for Closing the Window etc.! (forgot it in the Video, sorry)

After showing this, I showed the normal response time of the task's...

By making this Video, I noticed that there are strange Problem with Minimizing the program, too!
You can see it maybe in the Video how I "fight" with the Window! (Video: 0:30)

And I noticed that my recording program ONLY makes the "click" sound 1 second before the
clicked program goes in foreground, but in real I clicked seconds before, you can see it by the click
"Image" from the Screen Recorder... It seems that all programs have responsing problems after
bringing the SFML (without combination with WinAPI) program on the foreground or that the
"click" is processed very late... I hope the Video help's understanding the strange problem.

Maybe some of the Windows users that use SFML can test it too!
My friend tells me that with his low performance processer it's intolerable...
For me its still "tolerable", but it's interfere anyway...

EDIT:
Btw. the Source Code contains only the Render part (copy & paste from tutorial)
and 2 console outputs! Nothing else!

10
Mhh.. No answeres?

A day before this Post I send a SFML test program to my friend, he has Windows 7 Home Premium and
telled me that he have the same problem, like I described before...

And this problem is very wiry, only if I combine SFML with WinAPI this problem is don't
existing anymore, but this costs the platform-independence and is anyway definitely not the best
way to solve this problem...

Still hoping for a solution...

11
General / [SFML 2.0] Strange Problem if Window is on Foreground!
« on: May 08, 2012, 04:22:44 pm »
Hello,

First, -> I use Windows 7 Professional!

yeah, the Title is a little bit involved... The problem is, if I create a Window with
SFML and it is on the Foreground, it's lagging if I try to switch as example to Firefox,
with the Mouse and the Taskbar its lagging, with Alt + Tab not!

The Task in the Task Bar becomes after seconds (like 15 seconds) a Color that it
is selected or if I click directly on the Task it needs again like 15 seconds to switch to the Program.

My Hardware Components are good enough... this is not the Problem, and I don't remember
that this strange Problem exists with SFML 1.6...

A Picture...


I draw the position of the Mouse on the Screenshot, normaly the Task in the Taskbar would be
highlighted, I think u know what I mean... It's like the SFML Program don't want to loose his Focus and
don't want to go in the background, only after like 10-15 secs it gives up...

Yeah, its a strange a problem, but because I have at moment no other PC with Windows 7
I want to post this, so other people can maybe test it too.

BTW! Thats the reason why I maked recently a thread with question about the WinAPI, because
I try to use it and look if this solve the Problem and with connection of SFML and the WinAPI this
problem is really solved, it don't laggs by switching with Mouse and Taskbar if the SFML Window is in Foreground!

Thanks in Advance for helping!

12
Window / Re: Window -> SetWindowPos(...) -> No Effect.
« on: May 06, 2012, 06:50:17 pm »
This is too strange for my brain... now it works, and the only thing that I changed was that I
make the Window before Positioning invisible.. And this solved the problem...
I don't understand it...!?

But you are right, its maybe not a SFML problem...

Edit:
Lol, I delete for testing the code snippet that makes the Window Invisible, and it
was not the reason why it now works... this means that it works now without changing
code... mad world!

But anyway Thanks for answering!

13
Window / Window -> SetWindowPos(...) -> No Effect.
« on: May 06, 2012, 11:47:39 am »
Hey,

I have a problem that makes me crazy, I'm testing a little bit arround with SFML and the Win API,
all works perfect, only one thing not. Setting the position of the Window after Creating him, don't
works, and I don't understand why...

Here my code:

Code: [Select]
//...

// Here positioning works.
HWND hwnd_Window = CreateWindow(L"SFML App", L"Alarm", WS_POPUP | WS_VISIBLE,
300, 400,
300, 200, NULL, NULL, Instance, NULL);
// Main View
HWND hwnd_View = CreateWindow(L"STATIC", NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 0, 0, 300, 200, hwnd_Window, NULL, Instance, NULL);

//
sf::RenderWindow App(hwnd_View);

// Set Framelimit on 3 fps
App.setFramerateLimit(3);

// ...

// The Window only Resize, but the Position don't change!
::MoveWindow(hwnd_Window, 200, 200, 100, 100, true);

// Change size
App.setSize(sf::Vector2u(100, 100));

// Change View settings!
App.setView(sf::View(sf::FloatRect(0, 0, 100, 100)));

// Again, only Resizing work, not positioning
::SetWindowPos(hwnd_Window, HWND_TOPMOST, 0, 600, 100, 100, SWP_FRAMECHANGED);


I hope someone can help me, because I'm getting crazy...

Thanks in Advance!

14
Feature requests / Re: sf::Text coloring chosen characters?
« on: April 29, 2012, 05:20:34 pm »
I need it for a syntax highlighter and for a chat... :)

It is difficult and a little bit complicated using my solution for large Strings because of this
I ask here for this feature... don't hate me... :P

15
Feature requests / sf::Text coloring chosen characters?
« on: April 29, 2012, 04:26:06 pm »
Hello,

is it possible to implement a function that allows to give choosen Characters a special Color...

The problem is that it is to difficult if i work with hundred of sf::Text Objects...
This is the only solution that i can think of... So with my solution i must split the sf::Text Object
in many part sf::Text Objects...

Is there a way to make this easier?
If not, can you implement a function that allows this?

Because a picture says more than thousend words, thats what i want:


I think a function like these:

setCharacterColor(fromCharacterPos, toCharacterPos, newColor)

would be perfect...

Lg

Pages: [1] 2 3