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

Pages: 1 [2]
16
Graphics / Anti-aliasing, not working correctly
« on: October 03, 2009, 08:17:41 pm »
Quote from: "Laurent"
Hum... did you notice that I'm not developing SFML just for you? ;)


Well of you're course not, you asked me why I felt that smoothing set to true by default is annoying and i explained. I dont expect you to change it for me, i could do that myself if i could be bothered.

Quote
No. Can you show me a piece of code that reproduces this bug, so that I can try myself?


Code: [Select]
INT WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nShowCmd )
{
sf::RenderWindow Window( sf::VideoMode( 800, 600, 32 ), "Slow Start Application" );

sf::Shape Rectangle = sf::Shape::Rectangle( 0, 0, 200, 100, sf::Color( 255, 50, 50 ) );
Rectangle.SetCenter( 100, 50 );
Rectangle.Move( Window.GetWidth( ) / 2, Window.GetHeight( ) / 2 );


sf::Event Event;
while ( Window.IsOpened( ) )
{
while ( Window.GetEvent( Event ) )
{
if ( Event.Type == sf::Event::Closed )
Window.Close( );

if ( Event.Type == sf::Event::KeyPressed && Event.Key.Code == sf::Key::Escape )
Window.Close( );
}

Window.Clear( );

Rectangle.Rotate( 0.1f );
Window.Draw( Rectangle );

Window.Display( );
}
}

Yeah so, when you run this piece of code, the rectangle rotates slowly for half a second, and then picks up speed and everything runs normally, as ive said its not a major problem (its only a slight speed increase in this demo) but it is there, and it may just be my computer, but I never noticed this while working with DirectX and GDI/GDI+. The problem is more apparent in my Bouncing Ball Demo whiped up yesterday to test SFML but maybe because theres more than one sprite in that demo.

17
Graphics / Anti-aliasing, not working correctly
« on: October 03, 2009, 07:18:43 pm »
Because I would rather not have to turn off the smoothing each time I load an image, it just tedious. If i want an image anti-aliased i will do it in my editor, same thing goes for my aliased graphics.

I would prefer it if sf::Image::myIsSmooth is false by default because as far as i can see im not going to need the APIs "smoothing" capabilties.

Thats why. :)


EDIT: By the way, have you noticed SFML starts slowly for about 1/2 - 1 second, try creating a simple application which starts an sf::Sprite moving in some way (rotating, scaling, translating) and pay particular attention to the start of the program and the speed at which the sprite transforms.

Most of the time, this isnt going to be problem though it still should be fixed if this is a bug.

18
Graphics / Anti-aliasing, not working correctly
« on: October 02, 2009, 10:55:51 pm »
Hi all, just started using SFML as i needed a simple API capable of creating multimedia applications (such as games) quickly and so far im very impressed.

But im in a spot of trouble here. When i create a png image with anti-aliasing in my image editor and then use it in SFML its not quite as smooth as it was in the image editor.. to give you better idea of what i mean, heres an image of my troubles. On the left we have a screen shot of a ball print screened from my application and on the right is the same ball in my image editor.



Ive tried changing the anti-aliasing settings in the WindowSettings class when creating my window and have also tried to sf::Image::SetSmooth but nothing..

Whats going on here?

Thanks in advance! :D


EDIT: ... Nevermind, seemed as though i needed to sf::Image::SetSmooth( false ), hmm thats going to be annoying... anywho sweet API thanks laurent :D

Pages: 1 [2]