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

Pages: [1]
SFML projects / Make It Pixel! A pixel art generator
« on: July 15, 2022, 09:14:05 am »
Hello, everyone!

After some time looking for pixel art generators, I realized none had all of the features I wanted for mine: so I decided to create it myself  ;)

It is called Make It Pixel! and here you have an example of what it does.

Current features

* Intelligent and customizable handling of color and palettes.
* Configure color selection during downscaling.
* Configure color quantization and dithering.
* Fully customizable both by file and console.
* Process dozens of files with in a single run.
* Fully documented.

Future features

* Parameters to generate pixel art outlines using border detection.
* Add options to apply blur on a preprocessing step, to reduce noise.

I used SFML as the graphic library, to manage color and images.
Although I've still not made the release, because I want to clean it up a bit, it's ready to use!

Repository: https://github.com/MiguelMJ/MakeItPixel
Documentation: https://github.com/MiguelMJ/MakeItPixel/wiki

Give it a little star if you like it and let me know your thoughts ;D
Feature requests accepted on the issues.

SFML projects / Re: Candle - 2D basic lighting for SFML
« on: March 24, 2021, 01:23:39 pm »
To update the light you call castLight, so you can refresh it whenever you want. If you don't want to do it every frame, you could use a timer with sf::Time and sf::Clock, for example  ;D .

SFML projects / Re: Candle - 2D basic lighting for SFML
« on: February 18, 2021, 05:25:16 pm »
It depends on the disposition, as lights with a lot of edges (light blockers) in range would have larger computations to perform. I've not done exhaustive testing, but I know that it can handle several dozens of each one without problem.
With the demo program you can test the performance in your own machine, btw  ;D.

SFML projects / Re: Candle - 2D basic lighting for SFML
« on: February 16, 2021, 11:43:23 pm »
I'm glad to announce that the next version of Candle is here! Candle v1.0 is a complete revamp of the original one, with even easier integration, new light types and more customizable light sources and fog areas. It is also better optimized. It also has more and better documentation and a series of tutorials to make it easier to use.

Source code: https://github.com/MiguelMJ/Candle
Official documentation: https://miguelmj.github.io/Candle
Tutorials: https://miguelmj.github.io/Candle/tutorials.html

SFML projects / Re: Candle - 2D basic lighting for SFML
« on: December 18, 2020, 12:12:46 pm »
Of course! Use it how you want. You don't need to give credit, but it would be appreciated anyways  ;D. Right now I can't work much on it because of university  :-\  but I can review pull requests and answer issues. When I have some time I'm definitely going to get back to work on it.

And thanks!

SFML projects / Re: Candle - 2D basic lighting for SFML
« on: September 26, 2020, 02:23:58 pm »
Each light source cast its light independently against the shadow casting segments and borders of the area, to calculate the area they iluminate.

Then they pierce the fog with an alpha substracting blending mode and then are drawn with the Add blend mode. This way, different light source actually accumulate.

But all of this happens under the hood, the different lights integrate seamlessly with a single draw call!  ;D

SFML projects / Candle - 2D basic lighting for SFML
« on: September 26, 2020, 03:04:52 am »
Candle - 2D lighting for SFML
Hello! I recently created a library implementing some basic algorithms of shadow casting and field of view. It is easy to integrate, it has no dependencies other than SFML itself and it's open for further development. The code comes with a demo to test the main features, which are dynamic lights, fog and shadows. Any feedback is appreciated, thank you!

Code: https://github.com/MiguelMJ/Candle
Full documentation: https://miguelmj.github.io/Candle

Pages: [1]