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

Pages: [1]
1
Graphics / lines appearing on sprite edges
« on: January 05, 2011, 04:45:57 pm »
Hi,

I have some imported graphics (some that are drawn contiguously on screen to create a dynamic menu), and  have noticed that around the edge of the sprites there is a little line that changes how noticable it is (randomly) as I zoom in/out (quite noticeable on the dynamic menu between items), and occurs even if I overlap the sprites.

Would anyone know why (float rounding effects?), and are there any tips for which is the best method to use for removing these effects, anti-aliasing, blending, smoothing (not exactly sure of the difference between them (?anti-aliasing blends whole screen dynamically each frame, blend/smooth blend the actual sprite/image?)?

Also, do you know how the frame rate is set, is it set automatically by the graphics card within limit set by SetFrameRateLimit, or is there a more precise way of setting it?

Many thanks.

2
General / Stack overflow problem (increase allocated stack size?)
« on: January 04, 2011, 07:19:11 pm »
Hi,

I was wondering if you could help. I have defined a structure that uses quite a lot of memory (120kB), and I need to create at least another 3 of them. When I only create 1, the program works fine, when I add the second I get the errror:

Unhandled exception at 0x01037fd7 in Dungeon_Twister_1.exe: 0xC00000FD: Stack overflow.

Can anyone tell me how/where to increase the allocated stack size. I seem to remember it should be done in the makefile (more a compiler/VC++ option than SFML).

If anyone could tell me how to set/increase the stack size would be great (+ general rules for maximum allocatable stack size..)

Many thanks..

(p.s.:  sfml1.6, Win7-64bit, VC++2008, 6GB RAM)

3
Window / converting from mouse coords to draw coords when using views
« on: January 03, 2011, 02:03:43 pm »
Hi,

Wondering if anyone could help, I have an app with a board that is drawn to screen, then displayed in the app window using a view. I then want to be able to click on the screen, and calulate what part of the board was clicked on.

The view zooming/moving is working great, and I can pick up the mouse coordinates when clicking, but it is selecting the wrong part of the board. I'm guessing this is because I have to take into account the view zoom and movement values.

Could anyone tell me how to convert from the mouse click coords to the sprite coords taking into account the view settings?

Many thanks if you have some tips  :) ...

Pages: [1]