Retexture objects
Posted: Thu Nov 06, 2014 12:04 am
Hello
I have created some diffusemaps for a new level Im working on. (walls and floor) but i cant get them to load. Tried to follow the retexturing-guide on wiki posted here but it mostly focused on retexturing one of the monsters.
I have:
1. created the textures
2. copied the "dungeon_wall_01" model from the log1 assets dir to my dungeons assets dir, and renamed it dungeon_wall_02
3. created a new material in the materials.lua:
defineMaterial{
name = "dungeon_wall_02",
diffuseMap = "mod_assets/textures/dungeon_wall_02_dif.tga",
specularMap = "assets/textures/monsters/brickwall_stone_root_spec.tga",
normalMap = "assets/textures/monsters/brickwall_stone_root_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 65,
depthBias = 0,
}
4. Used the toolkit to assign this material to my "dungeon_wall_02" model (copy of dungeon_wall_01) and saved it
5. Edited the "tiles.lua" with this:
cloneObject{
name = "dungeon_wall_02",
baseObject = "dungeon_wall_01",
model = "mod_assets/models/dungeon_wall_02.fbx",
}
When I start up the dungeon editor I get the following error and I cant load my dungeon:
"Attempt to call global ´cloneObject´ (a nil value)"
Im new to this and if anyone would guide me it would be much appreciated. Spent 6 hours on this now so.. I suspect step 5 is the problem but I cant find any guides on this
I have created some diffusemaps for a new level Im working on. (walls and floor) but i cant get them to load. Tried to follow the retexturing-guide on wiki posted here but it mostly focused on retexturing one of the monsters.
I have:
1. created the textures
2. copied the "dungeon_wall_01" model from the log1 assets dir to my dungeons assets dir, and renamed it dungeon_wall_02
3. created a new material in the materials.lua:
defineMaterial{
name = "dungeon_wall_02",
diffuseMap = "mod_assets/textures/dungeon_wall_02_dif.tga",
specularMap = "assets/textures/monsters/brickwall_stone_root_spec.tga",
normalMap = "assets/textures/monsters/brickwall_stone_root_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 65,
depthBias = 0,
}
4. Used the toolkit to assign this material to my "dungeon_wall_02" model (copy of dungeon_wall_01) and saved it
5. Edited the "tiles.lua" with this:
cloneObject{
name = "dungeon_wall_02",
baseObject = "dungeon_wall_01",
model = "mod_assets/models/dungeon_wall_02.fbx",
}
When I start up the dungeon editor I get the following error and I cant load my dungeon:
"Attempt to call global ´cloneObject´ (a nil value)"
Im new to this and if anyone would guide me it would be much appreciated. Spent 6 hours on this now so.. I suspect step 5 is the problem but I cant find any guides on this