Red slime problem

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Torquemada
Posts: 25
Joined: Fri Apr 05, 2013 10:52 pm

Red slime problem

Post by Torquemada »

I am trying to make red slime as opposed to the predefined green slime. The red slime should look identical to the green one except it should be red. I followed guide at http://grimwiki.net/wiki/Model_Retexturing_Tutorial it worked except my red slime isn't red at all. Infact it isn't translucent anymore. When you look at the original green slime it has greenish translucent cover that gives it it's color but that cover is missing in my model, all that remains is the opaque lightbrownish mass, which makes it look more like a lump of clay instead of slime.

Image

I must be missing something because even if I make a copy of the original model and make it reference my custom material which has the same attributes as the original the results are still the same i.e opaque clay instead of slime.

Does anyone have any idea how to do this?
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Red slime problem

Post by Komag »

Neikun made a zillion slimes already, maybe one of them would suit you?
Finished Dungeons - complete mods to play
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: Red slime problem

Post by Leki »

green slime uses hardcoded shader - like healing crystal (you can try to change material in GMT from green_slime to healing_crystal to see effect).
If you want red one - try to change material in GMT from green_slime to zhandul_orb and then in your monster script definition change light vectot from (0,2.0) to (2,0,0) to get red light. As you can see, you have red slime, but without "slime shader effect".
zhandul_orb uses red texture - it's just to see difference between slime shader and "simple material" - it does not fit 100% on slime - you can make your own "red texture", based on green_slime.dds
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Red slime problem

Post by Neikun »

True enough the green slime uses a custom shader. Your best bet is to give it the red_gem material, (Better than zhandul_orb because it has a custom shader too) and just change it's light.
http://grimrock.nexusmods.com/mods/49
My custom slimes.
I have another pack in progress, but it'll be a little while longer before I can release it.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: Red slime problem

Post by Grimfan »

Yeah, I'm going to put in a mention for Neikun's slimes. They are very very good and include a great red slime!
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Red slime problem

Post by Neikun »

I don't even remember if I made the red slime with a light. o:

EDIT: I did indeed. but unlike green_slime, red_gem isn't exceptionally translucent.
Also, you're going to want to add the slime's normal map to the red_gem materials definition.
But bear in mind that will have some impact on the red_gem item.

Code: Select all

defineMaterial{
	name = "red_gem",
	diffuseMap = "assets/textures/env/red_gem_shadetex.tga",
	specularMap = "assets/textures/common/white.tga",
	normalMap = "assets/textures/monsters/green_slime_normal.tga",
	doubleSided = false,
	lighting = true,
	alphaTest = false,
	blendMode = "Opaque",
	textureAddressMode = "Wrap",
	glossiness = 20,
	depthBias = 0,
}
Place this in your red_slime monster definition

Code: Select all

	lightName = "capsule",
	lightColor = vec(2.0, 0.0, 0.0),
	lightBrightness = 5,
	lightRange = 3,
You should end up with something like this:
SpoilerShow
Image
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Torquemada
Posts: 25
Joined: Fri Apr 05, 2013 10:52 pm

Re: Red slime problem

Post by Torquemada »

What I did is make a new model and have it reference a new custom material which is a copy of red_gem, that way I don't have to change red_gem material. It looks ok except it does not have translucent cover and it does not glow in dark like the green slime.

Image
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Red slime problem

Post by Neikun »

Don't make a copy of the red gem material.
You won't notice a difference on the gem, but it makes a huge difference for the slime.
Trust me.
Take the material definition I provided, and place it as is in your materials.lua

What it is gaining from this that the red slime in the pack does not, is the slime's normal map.
Like I sad before, you won't notice it on the gem item at all.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Torquemada
Posts: 25
Joined: Fri Apr 05, 2013 10:52 pm

Re: Red slime problem

Post by Torquemada »

That made all the difference, however I had come to the conclusion that the slime shouldn't glow anyway, it was supposed to be a living puddle of blood :)
Had to rework the hit_slime.dds too since when hitting the slime produces green splatters.
Post Reply