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

Pages: [1]
1
Graphics / Premultiplied Alpha Blending
« on: June 07, 2013, 04:35:02 am »
I am currently trying to deal with alpha haloing on transparent textures. I realize this can be fixed in the drawing tool by bleeding colors and adding alpha channels but this seems like a lot of tedious work that can be solved with a few lines of code.

It looks easy enough to premultiply using sf::Image, the issue is the blending mode. As I understand it this is unavailable due to philosophical reasons. While I and others may disagree with this, the problem remains of how to extend this myself.

There does not seem to be any way to override the currently blending behavior besides tricking the cache into thinking it has not changed. I would rather not do this, or recompile the source myself, but I don't see any obvious alternatives. Thoughts?

2
Graphics / SFML 2.0 Help understanding sf::RenderWindow and sf::View
« on: August 02, 2012, 05:03:30 am »
I was curious about the sf::RenderWindow API for accessing its view. Specifically I was wondering why the RenderWindow view cannot be accessed and modified directly. In my application I will be updating the view in potentially every frame, so it seems like a waste to have to copy the entire view object twice to modify one property. Of course it is not that big of a deal given it is not a heavy object. Was this decision made to simplify memory management?

Pages: [1]
anything