reproducing light effect

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

reproducing light effect

Post by bongobeat »

Hi all,

Plz can someone explain how to reproduce the light effect of the magic orb?

this orb:
SpoilerShow

Code: Select all

defineObject{
		name = "magic_orb",
		class = "Item",
		uiName = "Orb of Radiance",
		model = "assets/models/items/apprentice_orb.fbx",
		description = "A smooth orb that radiates shimmering blue light. A tingling sensation passes through your body when you touch it.",
		skill = "spellcraft",
		requiredLevel = 5,
		gfxIndex = 69,
		attackMethod = "castRuneSpell",
		willpower = 2,
		energy = 15,
		impactSound = "impact_blunt",
		-- special: faster spell casting
		weight = 2.0,
	}
I wanted to add this effect on a mage sword
but i have no idea how
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: reproducing light effect

Post by Komag »

I seem to recall that we can't, but it's been a while
Finished Dungeons - complete mods to play
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: reproducing light effect

Post by AdrTru »

Your problem is quite difficult.
Material Of Magic Orb is linked to model - assets/models/items/apprentice_orb.model it is apprentice_orb

Code: Select all

defineMaterial{
	name = "apprentice_orb",
	diffuseMap = "assets/textures/items/apprentice_orb_dif.tga",
	specularMap = "assets/textures/items/apprentice_orb_spec.tga",
	doubleSided = false,
	lighting = true,
	alphaTest = false,
	blendMode = "Opaque",
	textureAddressMode = "Wrap",
	glossiness = 20,
	depthBias = 0,
}
If you want to set this material for sword, you will must opened model of this sword in some 3D editor bledner/Max3d and edited this model. Otherwise your sword will be recolored all ( included hadle part ).
Can you help with it? How kind of sword do you want to use as mage sword?
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: reproducing light effect

Post by Komag »

He's just talking about the light, not the texture
Finished Dungeons - complete mods to play
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: reproducing light effect

Post by msyblade »

It has been awhile, but I believe you can define what you want to have the glow AS the orb (NOT clone). Point it to the model you want instead of the orb, and i believe that model will have the glow, but you will lose the original orb.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: reproducing light effect

Post by bongobeat »

thanks for your answer

yes it's only the light effect i wan to add to any custom items.

mhhh, I don't want to lose the original orb, i'm using it.

what do you mean by pointing? how?
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: reproducing light effect

Post by msyblade »

I just mean to use "defineObject" instead of cloneObject, and define a new orb. But in the path that tells it where to find the model, change it to the path to your item.

Or to simplify: on your custom object definition, try just changing it's name to the orb. ie:"apprentice_orb" or whatever.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: reproducing light effect

Post by bongobeat »

well I have tried to define a new object, but the light effect is not applied.
what a pity! :(
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: reproducing light effect

Post by Komag »

The only way to do it is to not have an orb, but defineObject to replace the orb
Finished Dungeons - complete mods to play
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: reproducing light effect

Post by bongobeat »

as msyblade tells:

I have redefine a new orb and replace the model and texture, works, but the other orb is lost with the new item!
SpoilerShow

Code: Select all

defineObject{
		name = "magic_orb",
		class = "Item",
		uiName = "Orb of Radiance",
--		model = "assets/models/items/apprentice_orb.fbx",
		model = "mod_assets/pandafox_assets/black_armor/models/black_helmet.fbx",
		description = "A smooth orb that radiates shimmering blue light. A tingling sensation passes through your body when you touch it.",
		skill = "spellcraft",
		requiredLevel = 5,
		gfxIndex = 93,
		attackMethod = "castRuneSpell",
		willpower = 2,
		energy = 15,
		impactSound = "impact_blunt",
		-- special: faster spell casting
		weight = 2.0,
	}

defineMaterial{
	name = "apprentice_orb",
	diffuseMap = "mod_assets/pandafox_assets/black_armor/textures/black_helmet_dif.tga",
	specularMap = "mod_assets/pandafox_assets/black_armor/textures/black_helmet_spec.tga",
--	diffuseMap = "assets/textures/items/apprentice_orb_dif.tga",
--	specularMap = "assets/textures/items/apprentice_orb_spec.tga",
	doubleSided = false,
	lighting = true,
	alphaTest = false,
	blendMode = "Opaque",
	textureAddressMode = "Wrap",
	glossiness = 20,
	depthBias = 0,
}
well is there another way to define a new light and customise it like an item?

like the temple light:
SpoilerShow

Code: Select all

defineObject{
	name = "temple_ceiling_lamp_floor",
	class = "LightSource",
	lightPosition = vec(0, 2, 0),
	lightRange = 8,
	lightColor = vec(0.1, 0.99, 0.1),
	brightness = 10,
	castShadow = true,
	particleSystem = false,
	placement = "floor",
	editorIcon = 88,
}
My asset pack: viewtopic.php?f=22&t=9320

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