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

Pages: [1]
1
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).

2
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



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.

3
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?

4
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]
anything