Weapon Creation - light component and texture issues.
Posted: Mon Nov 10, 2014 2:41 am
Hi everyone. I've been working on a lantern item in a Zelda theme which acts as a torch when held, and as a special attack creates a fireburst spell.
1) I have created a custom model (based on the wall lanterns), but I'm having some texture wrapping issues as you can see below.
The texture mapping is set to "Wrap" (i believe it only repeats the texture 3 times). How can i get it to cover the entire model, or is the error in the model itself?
2) I am not sure what the coding is to add the light property to the object. Current object definition is attached below.
3) The version of Photoshop I have (elements 5) does not support alpha channel masks so my icons are stuck with white backgrounds. Is there any other software that does? (preferably free?)
Thanks for your help
1) I have created a custom model (based on the wall lanterns), but I'm having some texture wrapping issues as you can see below.
The texture mapping is set to "Wrap" (i believe it only repeats the texture 3 times). How can i get it to cover the entire model, or is the error in the model itself?
2) I am not sure what the coding is to add the light property to the object. Current object definition is attached below.
SpoilerShow
Code: Select all
defineObject{
name = "hand_lantern",
baseObject = "base_item",
components = {
{
class = "Model",
model = "mod_assets/models/sx_lantern.fbx",
},
{
class ="Item",
uiName = "Lantern",
gfxAtlas = "mod_assets/textures/items_atlas.dds",
gfxIndex = 0,
gfxIndexPowerAttack = 1,
secondaryAction = "Fire_Blast",
impactSound = "impact_blade",
weight = 1.5,
traits = { "item" },
description = "An old oil lantern.",
},
{
class = "MeleeAttack",
attackPower = 5,
accuracy = 5,
--attackSound = "swipe_bow",
cooldown = 2.0,
baseDamageStat = "strength",
damageType = "physical",
},
{
class = "CastSpell",
name = "Fire_Blast",
uiName = "Fire Blast",
spell = "fireburst",
repeatCount = 0,
cooldown = 6,
energyCost = 30,
},
},
editorIcon = 24,
}
Thanks for your help
