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

Pages: [1]
1
Or probably even better to link to the archived page: https://jsfml.sfmlprojects.org ;)
It is even better!  :D

2
I propose to replace the hyper reference to the official website of JSFML with its Git repository.

Since its official website stopped working (its Registry Expiry Date: 2016-08-21) and, based on this topic - http://en.sfml-dev.org/forums/index.php?topic=19681.0, to renew the registration of the site admin (pdinklag) will no longer be.

Therefore, I propose to replace the hyper reference http://jsfml.org/ to https://github.com/pdinklag/JSFML in the chapter buildings of the official website (http://www.sfml-dev.org/download/bindings.php).

3
SFML projects / Re: Simple Tile Creator
« on: August 09, 2016, 08:34:49 pm »
Note that you can do the same thing (and more) with Imagemagick : http://www.imagemagick.org/Usage/montage/#montage

It just motivates me to do better.  :D

4
SFML projects / Re: Simple Tile Animator
« on: August 08, 2016, 12:41:45 pm »
I'm not sure it should have "animator" in the title as it doesn't actually animate anything  :P
Yes. You are absolutely right. I have invented few names for this software.
  • Simple Tile Creator
  • Simple Tile Assembler
  • Simple Tile Animation Creator
  • Simple Tile Animation Assembler
  • Tile Creator
  • Tile Assembler
  • Tile Animation Creator
  • Tile Animation Assembler
Which one is the most successful?

You may want to consider how the image will end up if there are many frames: does it only stick to a single column/row?

The amount of wasted space when mixing differently sized images can be rather...wasteful. You may want to consider if keeping them in order is more important than re-arranging them and packing them more tightly as orders can be re-assembled after loading. You could even save a text file (or xml/json) with the rectangles of each packed image  ;)

I will try to realize this in future versions.

5
SFML projects / Simple Tile Creator
« on: August 08, 2016, 10:11:27 am »
Short Summary:  Simple Tile Creator is a program, that assembles a sequence of images into one image.

Description

Simple Tile Creator is a simple program with open source software, distributed under the New BSD license. It is using SFML 2.3.2 for loading, handling and save images. Allows you to create tile animation files from a number of files-frames. In addition, it can create tile animation with various size and extensions (All extensions of images that supports SFML 2.3.2) of frames.

Usage

Here is YouTube video-tutorial "How to use it?"

That manual in text format:
  • Arrange the pictures in order. For example: "first frame, second frame, third frame, etc.", and not as "second frame, tenth frame, seventeenth frame, etc."
  • Select frames
    • To create vertical animation, it is necessary to use the mouse to drag them into the program "SimpleTileCreatorVertical.exe"
    • To create horizontal animation, it is necessary to use the mouse to drag them into the program "SimpleTileCreatorHorizontal .exe"
    (NOTICE: The cursor should fall on the first frame)
  • The program will create a "output.png" file and will display a message: "Render is completed!". This file is assembled tile animation.
    (IMPORTANT: Before assembling another tile animation you should be satisfied that the previous animation has been renamed and/or moved).
Examples

(click to show/hide)

(click to show/hide)

Feedback

You can always leave your suggestions, questions or bug reports below. In free time I will try answer them.  :)

Links

Simple Tile Creator in SourceForge
Simple Tile Creator License

Logos

(click to show/hide)

(click to show/hide)

Сonclusion
Simple Tile Creator , albeit simple program, but in my opinion it is very useful.

6
Are you sure the error occurs where you say it does?
Your loop iterations are wrong. The image size goes from 0 to size - 1, yet you iterate from 0 to size (< vs <=), as such setPixel will get out of bounds and you get undefined behavior.
Oh Yes! You are absolutely right! Sorry for my carelessness.  :D

7
Hey,
when I try to run program (its code below), I get an Application Error.

Here is the English translation of error text:
The instruction at "0x7c910fda" addressed at "0xffff0048". The memory could not be "written".

Here is the code of the program:
main.cpp:
#include <SFML/Graphics.hpp>

int main()
{
    sf::Color pixelColor;

    sf::Image image;
    if (!image.loadFromFile("pic.jpg"))
        return EXIT_FAILURE;

    for (int i=0;i<=image.getSize().x;i++) {
        for (int j=0;j<=image.getSize().y;j++) {
            pixelColor=image.getPixel(i,j);
            image.setPixel(i,j,sf::Color(pixelColor.r,pixelColor.g,255));
        }
    }

    if (!image.saveToFile("pic2.jpg"))//Here is the error
        return EXIT_FAILURE;

    return EXIT_SUCCESS;
}
 
With the help of debug I figured out that this error occurs here:
if (!image.saveToFile("pic2.jpg"))//Here is the error
        return EXIT_FAILURE;
 
How to fix it?

8
General discussions / How can I say about the author of SFML?
« on: August 01, 2016, 08:52:44 pm »
I have developed a program for personal use (I'm not going to publish it), but I going to record and publish a video where the program will be featured.
What to do? Write in the description: "Special thanks to Laurent Gomila for provided by the Simple and Fast Multimedia Library (SFML)"? Or to the begin of video put the SFML logo with name of author? Or something else?

Pages: [1]