asset definition

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

asset definition

Post 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.\"",
}
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: asset definition

Post by AdrTru »

http://www.grimrock.net/modding/asset-pack/

Download it. unpack and use :)
It is good for study object... definitions too.
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: asset definition

Post 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
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
maneus
Posts: 246
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Re: asset definition

Post 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.
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: asset definition

Post by bongobeat »

Thanks a lot! :D
I should had think about that! :mrgreen:
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
Post Reply