dynamic image loading

bobomb
Member
 
Posts: 101
Joined: Sat May 23, 2015 20:28
GitHub: bobombolo
IRC: bobomb

dynamic image loading

by bobomb » Sat Apr 09, 2016 19:34

I know that it is basically not possible to load an image into the game that was not there (in the textures folder) at time of game launch and mod initialization, even for images only used in the formspec. However, that was the status of things before the minimap was introduced. my question is: since the minimap is now part of core, has something changed to allow the loading of images that were not loaded as textures? I am only interested in doing this in the formspec, but if it is possible to change textures of nodes in the game now, which I doubt, that would be nice to know too...
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

Re: dynamic image loading

by celeron55 » Tue Apr 12, 2016 12:12

Work could be done towards allowing the server to push updated or generated images to the clients at runtime. There are problems with that like the fact that the Minetest client has no means to ever delete any images, but even if that isn't solved, it would still allow updating player skins without restarting, or whatnot.

The minimap doesn't relate to this at all.
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: dynamic image loading

by twoelk » Tue Apr 12, 2016 15:01

hmm...
costumer comes into shop on server ingame,
paints a decor on some canvas and
the tailorplayer/npc crafts a playerskin using the just created pixelpic.
The customer puts the newly created skin on and
the tailor makes a screenshot.
The tailor then puts the screenshot into a frame and hangs it into the shop window
for all to see........
droooool


oops - gotta wake up -
seem to have been fallen asleep -
dreaming weird stuff
 

bobomb
Member
 
Posts: 101
Joined: Sat May 23, 2015 20:28
GitHub: bobombolo
IRC: bobomb

Re: dynamic image loading

by bobomb » Tue Apr 12, 2016 20:55

yes drool.

customer uses an item called a treasure map, it shows up on in the formspec. customer recrafts the treasure map with lemon juice and then uses the map again, new information that was written in invisible ink becomes visible.

customer goes to shop to buy special glasses, when he puts them on the textures in the world change only for him, night vision, thermal, xray, etc.

customer buys some mystery mushroom soup, customer gets sick/high, textures cycle through a rainbow of colours until the customer vomits.
 

bobomb
Member
 
Posts: 101
Joined: Sat May 23, 2015 20:28
GitHub: bobombolo
IRC: bobomb

Re: dynamic image loading

by bobomb » Tue Apr 12, 2016 20:58

 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: dynamic image loading

by TenPlus1 » Wed Apr 13, 2016 07:49

bobomb: the map change an easily be done by switching out the item, but as for the nausea effects, you could either place a hud overlay to simulate that effect or minetest really needs to incorporate shaders to adjust the client-side drawing of the world (stretch, colour, polarize etc).
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 10 guests

cron