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 - Joshua Flynn

Pages: 1 [2]
16
Network / Help with downloading a text file off a website [Solved]
« on: July 16, 2011, 06:48:29 pm »
Hello.

I am trying to use either the HTTP or FTP examples (but I don't really understand them), but a valid webpage is returning 1001 (Connection Failed).

The page I want to access is here:
http://www.swpc.noaa.gov/ftpdir/lists/ace//20110715_ace_mag_1m.txt

But it's being reported as a 1001. I know if I can access it successfully, all I would merely have to do is merely copy from .Body into a file, which is simple enough.

What modifications do I need to make (note, I tried modifying the website address but only got 1001) to the HTTP (or FTP?) example to get it to successfully obtain the text file?

Thank you.

17
Graphics / Sprite scaling/resize relativity issue
« on: May 23, 2011, 12:18:10 am »
Hello,

I've got a window of a specific size (512 x 512), and any images whose height is lower than this (256) or greater than this (1024, 2048), have their sprite rescaled to match the 512 requirement.

The problem is, I find the scale/resize system relative rather than absolute, so, for example:

If I load an image that is 256 to sprite, and resize/scale sprite to fit 512, and then I reload another image (also 256), and then resize/rescale sprite - instead of sprite still being 512, sprite becomes 1024, 2048 etc etc.

How do I make it so the scaling of sprite is reset to normal?

Thank you.

18
Graphics / If Image.Create can only work in powers of two, why...
« on: April 26, 2011, 02:09:46 pm »
...Can I set a render window size to 755 by 3, and load an image that is 173 by 371?

I don't understand why creating has to conform to the powers of two, but already created images that are loaded and render windows, don't?

Either the graphics card can render non-powers of two, or it can't. But it cannot logically be both or neither.

I really need to be able to create images that are a non-power of two to be able to properly render a graph.

So my help question is thus:

What part of the SFML code do I alter and recompile to disable the power of two lock that appears to be completely unnecessary?

Or, alternately;

How do I create a non-power of two image.

Pages: 1 [2]