PDA

View Full Version : Can't get shaders to work, please help



calky360
July 8th, 2007, 03:26 PM
Ok in the help files there is a creating shader file tutorial and I followed that but I chose different materials, I usded this template: "tex_bump.shader_template"
Once I made the shader I named it cliffs.shader and I saved it in the following directory:
"...\halo 2 map editor\tags\scenarios\shaders\multi\ambush_tower" (my map is called ambush tower)

Then I made a notepad file for the .shader_collections file and in the notepad I wrote "amb scenarios\shaders\multi\ambush_tower" (the amb was just abreviated for ambush like in the tutorial they wrote mylev instead of mylevel)
then i saved that file as "ambush_tower.shader_collections" and i saved that in the "...\halo 2 map editor\tags\scenarios\shaders" folder which is the same folder as the "shader_collections.shader_collections" file.

Now in 3ds, in the map editor I click on the sub material button, then I click the browse button next to where it says difuse, then I choose bitmaps and open the file which was the base_map in my shader "Cliff_color.tif" this is from the burial mounds folder which I downloaded. Now I'm not 100% sure what to name it I chose
"amb cliffs.shader" I have tried a few different name and always get the same error.

When I export I get this message

"[ERROR] An invalid material ('03 - Default', sub-index 5) is used by one or more objects in your scene.
Export Finished.
1 errors, 0 warnings"

and then when I compile it says that it can't find the shader for the file and then in sapien where the shadier should be it is rainbow coloured.

Any help please, like exactly what to name the file in max, also the bump_map file in the shader also wasn't in the original h2ek it was downloaded as with the base_map.

et_cg
July 8th, 2007, 05:16 PM
It sounds like you have polygons that tool's having a problem with...

Back in the day, it would tell you an error similar to that if you had a shader that had no real definition in the material editor.

I don't know why it'd be doing this to you here, on H2... but you may want to check all of your faces again and apply shaders to all of them.

Once again, I wouldn't know why h2tool would be doing this to you. But I'm sure other's have answers that I don't.

Lightning
July 8th, 2007, 05:31 PM
Your material only needs to be named "amb cliffs", you do not need the shader extension.

et_cg
July 8th, 2007, 06:53 PM
I'm retarded. I'm sorry I didn't catch that.

Good job lightning. Exactly what he said.

calky360
July 8th, 2007, 09:19 PM
Thank you so much litning it worked great straight away, now I just gotta make shaders for my other 10 materials, I could of sweared that I tried that before but thankyou still.