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

Pages: [1]
1
Graphics / Unable to load images
« on: May 20, 2009, 02:31:31 pm »
Quote from: "Tank"
Try to load the image using an absolute path to make sure it isn't path-related.


Ah, of course, should've tried that earlier... anyway, it works. Thanks :)

So the problem is that the base path isn't the location of the binary. Could this be changed? I don't want to ship a game that uses absolute paths...

2
Graphics / Unable to load images
« on: May 20, 2009, 01:02:04 pm »
When I try to load an image using LoadFromFile(), I get the following error message:

Failed to load image "protagonist.png". Reason : can't fopen

The image is located in the same directory as the binary (something I eventually want to avoid). I've also tried relative paths without success.

I'm developing using Xcode, and my SFML version is 1.4. I've tried other image formats as well (though this is unlikely the problem, since it complains about that it can't even open the file).

Any ideas? All help is appreciated!

3
Graphics / How does Zoom() work? [PARTIALLY SOLVED]
« on: January 08, 2009, 01:57:53 am »
I want my entire game to be displayed with a 2x magnification, so I created a view with measures 0.5 times those of the window, and called Zoom(2) on it.

Without the zoom, (0,0) was located in the top left corner, which made sense to me. With the zoom however, the in-window position of (0,0) was changed to a seemingly random one (though same every time, of course), while I expected it to remain in the top left corner.

How is (0,0) calculated, after a zooming has been performed? I'd like it to stay in the top left corner, but in order to do any calculations for moving it I have to understand how the current system works.

Also, is there any way to make the images remain sharp, instead of being blurred, after the zoom?

EDIT: main question solved. The problem was that I both set the scale factor to 2 and used a view with a quarter as big as the RenderWindow.

My second question (blurred images) remains though.

4
General discussions / SFML 1.4
« on: January 07, 2009, 11:43:10 pm »
The frameworks that are included in with the SDK seem to be invalid. The They don't follow the conventional pattern for frameworks (with the aliases in the root), and sfml-audio had some files with truncated names in it. Also, I couldn't get it work when trying to build a project linking to them, while it worked perfectly when I had built them myself.

5
General discussions / SFML 1.4
« on: January 07, 2009, 09:30:25 pm »
Quote from: "Laurent"
Everything you need is online.


Wonderful! Thanks!

6
General discussions / SFML 1.4
« on: January 07, 2009, 08:29:12 pm »
Quote from: "Laurent"
The Xcode tutorial is already online ;)


When will the files be uploaded? I've been looking around for game libraries, and SFML seems to be the one I need, so I'm quite excited :)

Pages: [1]
anything