Page 1 of 1

asset definition

Posted: Sun Oct 13, 2013 12:23 pm
by bongobeat
Hi all,

someone can tell me where I can find the material definition and the texture file of this object? I want to retexture it, but I can't found it.
SpoilerShow
defineObject{
name = "machine_junk2",
class = "Item",
uiName = "Steam Canister",
model = "assets/models/items/machine_part/machine_part_junk2.fbx",
gfxIndex = 101,
weight = 7.5,
scrambleText = "\"A container for corrosive gases. It's beyond repair.\"",
}

Re: asset definition

Posted: Sun Oct 13, 2013 12:55 pm
by AdrTru
http://www.grimrock.net/modding/asset-pack/

Download it. unpack and use :)
It is good for study object... definitions too.

Re: asset definition

Posted: Sun Oct 13, 2013 5:31 pm
by bongobeat
AdrTru wrote:http://www.grimrock.net/modding/asset-pack/

Download it. unpack and use :)
It is good for study object... definitions too.
aoww
I have it already, but I cant find the definition of this object in it :?

I got only the item definition

Re: asset definition

Posted: Sun Oct 13, 2013 5:58 pm
by maneus
The texture is the "cube" texture find at: assets/textures/monsters/mechnical_cube_dif.tga

The material definition is:

Code: Select all

defineMaterial{
	
name = "cube",
	diffuseMap = "assets/textures/monsters/mechnical_cube_dif.tga",
	specularMap = "assets/textures/monsters/mechnical_cube_spec.tga",
	normalMap = "assets/textures/monsters/mechnical_cube_normal.tga",
	doubleSided = false,
	lighting = true,
	alphaTest = false,
	blendMode = "Opaque",
	textureAddressMode = "Wrap",
	glossiness = 70,
	depthBias = 0,
}


If I not know, what material an object has, I open it in the GMT and there I can find what material it is.
Then I look at the material.lua in the asset folder and so I see where I can found the texture.

Re: asset definition

Posted: Sun Oct 13, 2013 9:53 pm
by bongobeat
Thanks a lot! :D
I should had think about that! :mrgreen: