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

Pages: [1]
1
General discussions / Who Are You? (the obligatory interview thread)
« on: October 12, 2011, 09:23:09 pm »
I am Ofer,
I am making games in my free time and work in university on 3D Scanners for my living.
That's it.

2
General discussions / End user requirements.
« on: October 12, 2011, 08:33:43 pm »
What does SFML requires to have on the end user computer in order to work?
I have been running the application on an end user and I got a white screen, I think he had something missing but I don't know what.

3
Graphics / I don't understand scaling or drawing.
« on: October 04, 2011, 12:05:46 am »
Oh I remember why I am not using SFML 2.0.
It doesn't have a solution for VS, and I don't feel like creating one. :/
I don't want to use CMake and the likes of it.
There are no binaries for VS2010 by the developer of SFML 2.0, right?

4
Graphics / I don't understand scaling or drawing.
« on: October 03, 2011, 09:20:15 pm »
Yea, I found out your "trick" with 0.375 caused it.
Should I use SFML 2.0?

5
Graphics / I don't understand scaling or drawing.
« on: October 03, 2011, 08:19:56 pm »
Hi,

I have set up SFML for drawing 2D graphics purposes.
I can draw my sprites in what seem a good position, but when I scale them, they seem misplaced.
The thing is, I developed a game with a graphics module abstraction. So I first developed it with DX9 D3DXSprite underneath the graphics module.
Now I am adding SFML to the module. Everying SEEM to work the same, except for scaled sprites. Sprites which have scaling of 1 SEEM to work ok.
The issue is that I have a life bar by putting a top part, and a bottom part and filling it in the middle. The part in the middle is actually a sprite with some width and a height of 2. I then scale the sprite to fit the amount of life, taking into account the height of the image.
Well, the issue is that in SFML, the scaled sprite doesn't seem to be placed correctly.
I have tried to play with the SetCenter, SetPosition, even Move(which I am not sure what it is doing), but no luck. It just doesn't work.
I looked at the matrix by inheriting sf::Sprite, it looked lake the scaling is correct and the position is where the top of the sprite should be(I think).
Is there any place with documentation of an equation of what SetCenter, SetPosition exactly do?

Thank you

Pages: [1]
anything