default textures

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

default textures

by bobomb » Sun Dec 13, 2015 18:18

I was wondering if a lua method could be exposed to use a texture generated in the same way that textures for missing textures are created but being able to specify the color of the texture instead of it being randomly generated.
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: default textures

by Napiophelios » Sun Dec 13, 2015 18:46

If you are wanting to specify the color of missing textures instead of random colors, IDK.

If you are wanting to create textures for a mod without providing them, out of thin air so to speak,
yes you can. You will need to use the texture modifiers like "[combine" and "[colorize"

check out these post for an example how we did it for Don's corners mod
viewtopic.php?p=177316#p177316
viewtopic.php?p=177316#p178383
viewtopic.php?p=177316#p177391
 

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

Re: default textures

by bobomb » Sun Dec 13, 2015 22:31

i think that is as good as it gets, thanks.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: default textures

by Hybrid Dog » Sat Dec 26, 2015 09:56

 

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

Re: default textures

by bobomb » Sat Dec 26, 2015 17:08

so the color of an entity can be changed after mod load but not a node?
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: default textures

by Hybrid Dog » Sun Dec 27, 2015 15:42

bobomb wrote:so the color of an entity can be changed after mod load but not a node?

l guess if the node's textures become changed, it only has the new textures after the client rejoins
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 31 guests

cron