Page 1 of 2

[Mod] Paintings, Pictures and Animations [gemalde]

PostPosted: Wed Jan 30, 2013 19:48
by Casimir
Sorry to release the... 5th (?) paintingmod. But I promise that one is different from the others.

So this adds paintings that you can place on walls.

github: https://github.com/CasimirKaPazi/gemalde
download: https://github.com/CasimirKaPazi/gemalde/archive/cc6189e6f69d3861655db0dda12b1a0b889fc16b.zip

Features:
- pictures overlap (bigger than one node; like in... you know)
- maximal size: 3x3 nodes
- maximal size in pixel: none
- adding more paintings is very easy (no lua required)
- switch through paintings by rightclick on it
- switch backwards through paintings by crafting (reduce paintings number by one)
- place several paintings into the crafting grid to reset them to #1 (stack them easier)
- unlimited number of paintings
- animated paintings
- any number of frames (default 8)


Craft still paintings:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
paper paper
paper paper
paper paper

Output: Painting #1


Craft animated paintings:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
book book
book book
book book

Output: Animation #1


Backwards (same for Animations):
Input: Painting #9
Output: Painting #8


Reset (same for Animations):
Input: Painting #9, Painting #55, Painting #42, Painting #8, Painting #7829
Output: 5x Painting #1
This works for up to 9 paintings.


How to add new (still) paintings:
Take a .png-file. Make sure it is square in size. Rename it to "gemalde_x.png" where x is the number of the painting. The mod automatically detects it and you will have it in the game. Make sure you have no gaps. E.g.: 1234-678 would only recognize the first four.

How to add new animated paintings:
Just like above, but rename the .png-file (no .gif) to "gemalde_animated_x.png"
Important: Standard is 8 frames, to use a different number for a specific painting open animated.lua and add the number there.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--    For other numbers of frames use the following. x is the paintings number. a is the frames count. b the time per frame.
local frames = {
--   {x, a, b},
     {1, 16, 0.125}, -- 16 frames for the first animated painting
}

Do not forget the comma.


Screenshots:
Image
http://screenshot.ru/images/2013/10/24/YgRe14C.png
This is 3872x3872 pixels and 8.8MB and it works without problems.


old download:
http://ompldr.org/vaGlwcw/gemalde20130219.zip
http://ompldr.org/vaGg3YQ/gemalde20130215.zip
http://ompldr.org/vaGZldg/gemalde20130211.zip
http://ompldr.org/vaGFjNg/gemalde20130130.zip


Changelog:
20130530
- fixed paintings overlapping with nodes behind
- new paintings (omsk bird)
- removed paintings

20130219
- added option to change animation-speed
- fixed bug in using frame_count
- fixed texturebug when pictures overlap each other
- workaround to fix wrong placed pictures

20130215:
- animated paintings
- craft to reset multiple paintings to #1 to make stacking easier
- new awesome picture

20130211:
- removed image limit
- new paintings


licence/license:
GPLv3 or later for code
for pictures see licence_still.txt and licence_animated.txt
everything else is cc-by-sa

depends: default


The core code is based on signs by xyz and PilzAdam.

PostPosted: Thu Jan 31, 2013 05:51
by RAPHAEL
Will have to try this out sometime when I have more time to test.

PostPosted: Thu Jan 31, 2013 10:47
by jojoa1997
awsome mod but i suggest better textures are needed

PostPosted: Thu Jan 31, 2013 10:59
by kaeza
Nice!
You should add some nice paintings from the Edo Period (The Great Wave off Kanagawa perhaps?)

PostPosted: Thu Jan 31, 2013 11:42
by Casimir
At the beginning I used the Great Wave, but it seemed to mainstream to me ;)
The pictures used are just examples. I assumed that everyone uses own pictures (that's what I wrote it for). If you have some, feel free to post them here (with licence of course).

PostPosted: Mon Feb 11, 2013 04:37
by Casimir
New version.
Now you can add as many paintings as you want (before it was limited to nine). And some new pictures included.

PostPosted: Mon Feb 11, 2013 06:32
by Mito551
kaeza wrote:Nice!
You should add some nice paintings from the Edo Period

+1

PostPosted: Mon Feb 11, 2013 07:09
by 4aiman
+1
How about random download of pictures from some free online galleries? In this mod, I mean. A player will have a node to select "category" and some random picture from that "category" would be downloaded & shown. May CURL be with us ;)

PostPosted: Mon Feb 11, 2013 18:20
by Inocudom
You should try to make it so that there is only one node from this mod in the inventory. You could have the player right-click the base node and use that to select a picture. The info concerning which picture was selected can be stored in the same manner that messages on signs are.

PostPosted: Wed Feb 13, 2013 20:55
by Inocudom
Is this mod still being worked on? The pictures face sideways sometimes and animated .gif support, if possible, would be a nice addition.

PostPosted: Wed Feb 13, 2013 21:30
by Casimir
Inocudom wrote:The pictures face sideways sometimes

Can you explain that more precise, or post a screenshot?

I'm working on the other two things.

PostPosted: Wed Feb 13, 2013 21:34
by BZab
Is it compatible with latest git? :D

PostPosted: Thu Feb 14, 2013 00:44
by Inocudom
The pictures are sometimes perpendicular to the surface they are placed on (a picture ends up rotated on the vertical axis by 90 degrees relative to the surface it is placed on.)

PostPosted: Thu Feb 14, 2013 14:31
by Casimir
@BZab
Should be.

@Inocudom
Just the visible picture or the selectionbox too?

PostPosted: Thu Feb 14, 2013 18:07
by Inocudom
Casimir wrote:@BZab
Should be.

@Inocudom
Just the visible picture or the selectionbox too?


Just the visible picture. When the node is right-clicked on, the next picture that comes up is in the proper orientation.

PostPosted: Thu Feb 14, 2013 22:56
by Casimir
Tomorrow I will make an update adding animated pictures. So if someone wants some animation in there, just post them here.

@Inocudom
I think I know the reason for this, but at the moment no solution.

PostPosted: Fri Feb 15, 2013 10:28
by BorisGrishenko
With this mod....WE CAN CREATE MUSEUMS ON SERVERS!

PostPosted: Fri Feb 15, 2013 21:30
by Casimir
New Version:
- animated paintings
- craft to reset multiple paintings to #1 to make stacking easier
- new awesome picture

New Crafts:

Backwards (same for Animations):
Input: Painting #9
Output: Painting #8

Reset (same for Animations):
Input: Painting #9, Painting #55, Painting #42, Painting #8, Painting #7829
Output: 5x Painting #1
This works for up to 9 paintings.

PostPosted: Tue Feb 19, 2013 13:11
by Casimir
New version in first post.

@Inocudom
I added an ABM that should fix that. It checks every five seconds if the picture is placed correct. Not a nice solution but it should work.

PostPosted: Thu Feb 21, 2013 14:08
by Bas080
I like your paintings mod. No need to dig and place if you want to change the image.

I would like it more if big and small images have different crafts.

Image

PostPosted: Fri Mar 08, 2013 12:45
by Shoggoth
I like this mod, it is great. Now I can use my ugly photos to build a gallery.

If I run the command /clearobjects all 'gemalde' are invisible and I have to rearrange them anew. Is this a bug or feature ? (:

PostPosted: Fri Mar 15, 2013 05:58
by bentleysb
It would be great if you could place the paintings on the ceiling and floor. I was looking to use this to make decretive control panels but can’t have them on anything but walls at the moment. Also it would be nice to have this so as to be able to put murals on the ceiling or to make some awesome rugs.

PostPosted: Tue Apr 16, 2013 11:09
by jojoa1997
You cant. But minetes does have a way you can get image pixels PxP 16x16 32x32 and you could use that to set the nodebox size

PostPosted: Tue Apr 16, 2013 11:55
by lonely
AWASOME! I can switch the size either. Cool mod.

PostPosted: Mon May 20, 2013 18:24
by Casimir
Bas080 wrote:Image

Do you want me to include this? What is it showing?

Shoggoth wrote:If I run the command /clearobjects all 'gemalde' are invisible and I have to rearrange them anew. Is this a bug or feature ? (:

Kind of both. If you run /clearobjects you do that for some purpose I don't know, so I don't want to work against this. I want the mod to do what you want, and not to lead a life on it's own. Ask your self why you use that command so often, you might can fix that reason.

bentleysb wrote:It would be great if you could place the paintings on the ceiling and floor.

Since this is using entities it is currently not possible, because you can not change the pitch of an entity.

PostPosted: Thu May 30, 2013 19:29
by Casimir
Now on github. See first post.

PostPosted: Tue Jun 04, 2013 18:04
by Casimir

PostPosted: Tue Jun 04, 2013 18:13
by Inocudom
This mod is pretty useful for creating not only paintings, but also short movies for movie theaters. Come to think of it, you could make picture frame nodes and movie screen nodes to contain pictures and movies.

PostPosted: Tue Oct 22, 2013 20:48
by Element
very nice

PostPosted: Wed Oct 23, 2013 15:15
by Casimir
Now thanks to sokomine it will be possible to place paintings over head and on floor.
Image
But that now has the same problem I encountered. The engine does not know how to render them when two pictures are at the same place. In the mod I solved it with placing every entity with a small random offset.
Image