Shader Pathing

   3048   2   1
User Avatar
Member
32 posts
Joined: Feb. 2007
Offline
Hello again,

I'm trying to route my shaders so they are not dependent on the drives I download the jpg files into. All my Jpgs for my shaders are in a school drive from the school computer (N). How do I make a file with shaders that works independently and can be transfered from drive to drive? (right now in the texture map setting i would have something like, Nground.jpg

Thanks ahead of time. Sorry if this may be too obvious.

Cory
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
I'd probably use an environment variable.

In your case:
ASSETPATH=N:

set your texture paths to $ASSETPATH/ground.jpg

That way you can always redefine ASSETPATH to point to wherever your textures might be.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
7025 posts
Joined: July 2005
Offline
I'd recommend variable idea also.

Don't forget, you don't want to use Jpegs as textures in Mantra! Convert them to .rat format. Your renders will be faster, higher quality and use less memory. You can convert them using the Houdini Command Prompt or just load them in Mplay and save them as the same name but with a .rat suffix.

Cheers,

Peter B
  • Quick Links