shadtex textures; how are they used in the original assets?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

shadtex textures; how are they used in the original assets?

Post by Neikun »

I'm looking through the original Grimrock textures and I see some of the files have shadtex in their names. It only crops up on objects like the green slime and red gem, healing crystal and ice shards.
And yet- I don't understand how the models are referencing these images because it's not included in the material definition.
"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!
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: shadtex textures; how are they used in the original asse

Post by Batty »

Been wondering this too because I've tried to make new gems with different colors but the nice swirly effect is lost when you change the dif texture.
User avatar
juho
Posts: 238
Joined: Mon Feb 27, 2012 1:18 pm

Re: shadtex textures; how are they used in the original asse

Post by juho »

They use a custom shader. The shadertex.tga acts kind of like an environment map that rotates.
Follow me on Twitter: @JuhoMakingStuff
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: shadtex textures; how are they used in the original asse

Post by Neikun »

But how does the object reference it without being in the material definition?

The only material that lists it anywhere is the red_gem
"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!
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: shadtex textures; how are they used in the original asse

Post by antti »

Neikun wrote:But how does the object reference it without being in the material definition?

The only material that lists it anywhere is the red_gem
Currently it's just hardcoded instead of being supported with the material system so it's not moddable. Back then we didn't know we were going to add modding support so we took a lot of shortcuts like these. :)
Steven Seagal of gaming industry
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: shadtex textures; how are they used in the original asse

Post by Neikun »

I like that word "currently"
Thanks for unfogging that little mystery guys. :3
"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!
BeNNyBiLL
Posts: 40
Joined: Mon Oct 08, 2012 11:00 pm

Re: shadtex textures; how are they used in the original asse

Post by BeNNyBiLL »

Allow us write our own shaders. Its a good idea, honest! :mrgreen:
AmiDARK
Posts: 55
Joined: Thu Apr 19, 2012 6:07 pm
Location: Aix en Provence, France
Contact:

Re: shadtex textures; how are they used in the original asse

Post by AmiDARK »

Simply having access to shader textures may be enough ...
Post Reply