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

Pages: [1]
1
Window / SFML 2, latest GIT, c++ SetFrameLimit not working
« on: January 31, 2012, 03:53:08 am »
SetFrameLimit is not providing a stable fps, for example

SetFrameLimit(60) will provide an fps ranging from 120 to 57

Expected variance of 57-62 instead of an 57-120, fps will spike to 120 infrequently but consistently hits 70-80 fps

Running Windows 7 (x64) 32 bit program, latest Git dump.

2
General discussions / My discoveries whilst using SFML
« on: August 31, 2009, 11:46:56 am »
Hi, i'm an avid developer currently working on a 2d mmorpg.

along my travels i have come to rest on the wonderful api that is SFML.

now i just wish to post a few troubles i've had with the engine

Firstly, decimals and rendering.

when drawing to the screen, the float x and y should be cast to int.

why?

well, if you don't you'll experience strange rendering, positional and tearing glitches. where part of the sprite tears, or is compressed.

IMHO this should be fixed, as for me atleast it was confusing that when i started moving my characters they all of a suden became distorted.

this should ALSO be applied to view co-ordinates, as this has the same effect.

I would also ask, why sprite's require float X and Y coordinates, as from my experience you cant have half a pixel on the screen, as that doesn't make any sense.

If float variables are needed, atleast have an option when drawing to use non-rounded variables, or explicitly in the documentation refer to this drawing behaviour.

Another issue i have had with SFML is the font system, which in my opinion is a bit retarded...

firstly, i don't see why you couldnt just add an option to disable smoothing for sprites, it took me all of 2 minutes to add the code to the SVN release. 2 MINUTES, and it fit into the rest of the API

font->SetSmooth(bool Smooth);

Heres the code if you are indeed to busy

(goes into font.hpp)

void SetSmooth(bool Smooth);

(goes into font.cpp)

void Font::SetSmooth(bool Smooth){
texture->SetSmooth(Smooth);
}

i mean, really?

Other then this i have no REAL issue with the engine, it has done what it was supposed to do, at perfect speeds.

and to this i thank you Laurent :D as i'm sure most of the SFML community does.

Please Reply people if you would like to point out my stupidity, i love to learn and love criticism :D

3
Graphics / Position of an object whilst using SetScale
« on: August 30, 2009, 11:15:39 am »
when i set the scale of an object with center (0,0), its x and y position are changed :S

This is in the SVN sfml release

4
Graphics / image tearing???
« on: August 26, 2009, 09:52:39 am »
my game's sprites at time's tear

as seen here: (note his head)



the tearing only occurs when he is standing still. also note that the head sprite does not change (the head is a different sprite). what could be the cause of this? i was wondering if was to do with float point decimal positions. i.e x = 3.5 or something

5
General discussions / freeing image memory
« on: July 22, 2009, 12:58:04 pm »
How would i go about freeing an image from the RAM?

i.e you load an image, but how do you delete it?

i spose its not as simple as

delete img;

6
SFML projects / Squeebs, a 2d comic mmorpg
« on: June 09, 2009, 02:52:23 pm »
Hi, i'd just like to show you all this mmorpg i'm making.

I choose to use SFML as it allows me to dynamically load sprites on runtime, which is a must for my program~!!!

you see it features a dynamic updater that updates files from a site so that all the game content is kept up to date whilst the game is running~!!

the site for the game is: http://www.squeebs.net

the FORUM for the game is:http://www.squeebs.net/forums

its a comical game that I hope will tread new waters in mmorpg gaming.

i'm only 17 and the only developer on our team so development is slow ^.^

please, tell me what you think!!!

I can be contacted at dinocool300@hotmail.com if you are interested in possibly helping out!

DOWNLOAD:http://squeebs.coderzilla.com/game/squeebsrev3.rar

7
Graphics / sf::String->SetAlign()?
« on: May 26, 2009, 07:53:37 am »
I don't know if this is a feature request but anyways, i recently just upgraded my engine from HGE to SFML :D and was wondering if anyone had a piece of code to align the text to the center, all i have so far is

Code: [Select]

        //center
if (align == 2)
string.SetCenter((strlen(text.c_str())*size)/2,0);
        //right
if (align == 1)
string.SetCenter((strlen(text.c_str())*size),0);


But it doesn't work the way it should... any advice???

Pages: [1]