« Reply #12 on: March 14, 2017, 08:23:05 pm »
Put the gems/metalclasps ect on a separate layer (transparent layer) directly over where you want them to appear on the preset. Now save it as a separate layer from the preset so it's just a large transparent square with the jewelry drawn on it.
Using code like this [<---Like this but not the same]
material Preset#_Mat
{
receive_shadows off
technique
{
pass
{
lighting on
scene_blend alpha_blend
texture_unit
{
texture PresetSideBodyComponant-X.png
}
}
pass
{
lighting on
scene_blend alpha_blend
specular 0.5 0.5 0.5 1 128
texture_unit
{
texture JeweleryLayer.png
}
}
pass
{
lighting on
scene_blend alpha_blend
texture_unit
{
env_map spherical
texture semitransparentgold.png
}
}
}
}
And for the semi transparent gold or whatever you can use a texture. It could even be pictures of fluffy clouds on a sunny day it doesn't really matter that much. As long as you have made it & saved it as being largely transparent so you can see through it.
The jewelry layer would be the jewelry you draw/copypasted and it should appear on top of the preset later. With all the layers it should now sparkle. Just make sure you name all the pictures in a way that makes sense to you & your coding our you'll have a marshmellow.
Edit: sometimes the layers don't co-operate and you'll have to reverse the order of the gold & jewels but i don't think you'll have that problem this time.
« Last Edit: March 14, 2017, 08:25:22 pm by Kuri »
Logged
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it? With gold and pieces from other dishes?
"Because it was my favourite & I like it"