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

Pages: [1] 2 3 ... 5
1
General / Re: Crash after too many objects in screen
« on: October 12, 2017, 12:49:51 pm »
Do you have any references or pointers to elements of your vector?

When you add an element to your vector and it reaches a size larger than n², it resizes and might get moved to an other space in memory, invalidating your previous pointer.

2
Graphics / Re: Image doesn't stand still
« on: January 10, 2017, 04:18:28 pm »
You draw nebunie every frame and display it on your screen.

When your mouse is over your button you still draw nebunie every frame and display it, but you also draw nebunie2 and display it.

So its no wonder you get a flickering.

you should take your position-check out of the event-loop and make the if-statement decide wether do draw your first sprite of your last.

pseudo code:

clear()
if (mouse over button)
{
  draw(sprite2)
}
else
{
  draw(sprite1)
}
display()
while (eventloop)
{
  check mouse button
}

3
SFML projects / Re: Faux Car
« on: May 20, 2016, 01:49:33 pm »
Nice.
Makes me want to chase some trees, who think they could run away from me ;-)

4
Graphics / Re: Blur shader not working - Just a grey "cross"
« on: April 19, 2016, 12:32:57 pm »
gl_TexCoord[0].x ranges from 0.0 to 1.0 (left to right of your texture) (not from 0 to texture-width).

You should divide your blur_radius by your texture-width.

5
Graphics / Re: Getting nearest sf::RectangleShape
« on: April 04, 2016, 06:08:10 pm »
AABB describe a Rectangle which is aligned to X and Y axis.

Google has some usefull links:

https://www.google.de/?gws_rd=ssl#q=distance+aabb+point

6
SFML projects / Re: Pointless Wars - [Turn-Based Pointless Strategy]
« on: March 22, 2016, 03:00:02 pm »
Obviously not! 12pm is lunchtime. Civilized warlords take this into account. bur!
Yes! True warlords conquer at tea-time, like Caesar did in Britain (and we all know that Astrix is historically accurate  ;))

7
Really great project you have here.

I'm just wondering about your depth-rules.
Shouldn't it be enough for a top down 2d-game to sort the draw-order by Y-coordinate?
Things at the top get drawn before things at the bottom.

8
General / Re: Window xlib event issue? Solus Linux
« on: February 02, 2016, 07:58:42 am »
AFAIK the problem lies with Mutter (Gnome's window manager).
If an application doesn't respond (for SFML this should be PollEvent()), Mutter shows your message.
So if you poll your events on startup, then load all your assests it might be already too long for Mutter.

9
General / Re: Window xlib event issue? Solus Linux
« on: February 01, 2016, 10:29:51 am »
As far as I can see, Solus Linux uses Gnome_Desktip.

I rember having a problem like that with Gnome-Desktop under Debian while loading.

Been some time, so it might not be helpful to your problem.

I think the problem was, that loading all my assests took a few seconds, so Gnome though my application was not responding.
I fixed that issue by calling PollEvent() before I loaded the assests so Gnome saw my application was responding.


10
Window / Re: Short flicker during program load when on the Main Display
« on: January 21, 2016, 11:59:59 am »
Just a wild guess:
Is your graphics-driver up to date?

11
Graphics / Re: Global blur
« on: January 08, 2016, 12:46:46 pm »
Did you try to use a RenderTexture instead of capture?

Draw everything you have to a RenderTexture instead of a RenderWindow and then draw a Sprite with that RenderTexture and your blur.

12
Graphics / Re: Issues while displaying Indian text (Malayalam)
« on: November 03, 2015, 04:28:53 pm »
Did you try different fonts or just that one ml.ttf?

13
Window / Re: Can't check LControl or RControl
« on: October 05, 2015, 12:29:39 pm »
You should not mix pollEvent and isKeyPressed.

In your Key-Event, you have members for "alt", "control" and "shift"

http://www.sfml-dev.org/documentation/2.3.2/structsf_1_1Event_1_1KeyEvent.php

14
SFML projects / Re: Kroniax available in the Play store!
« on: September 14, 2015, 10:31:15 am »
Ah, I see. weird that they don't force admob to show some notification in banners till accepted.
So the user could block the ads by not accepting the notification in the banner?  ;)

15
Feature requests / Re: Ftp
« on: August 25, 2015, 10:56:21 am »
Quote
Add a FTP server in SFML.
This is really a nice, useful and complete description of your request. Thanks.

My sarcasm-detector is going crazy.
But I'm not sure everyone has on of these (though they are really usefull).

Pages: [1] 2 3 ... 5