Creating custom shader PPG

General discussion about 3D DCC and other topics
User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Creating custom shader PPG

Post by Maximus » 24 Feb 2013, 00:10

Hey guys, I always wondered how to create some custom Shader PPG.
Is there some detailed info on how to achieve this? Lets say i want to compile my own Architectural Material with my own settings, PPg names and custom things.
How would i do it? Is somewhat simple or it requires pain and suffering?

Thanks

Max

angelous4x
Posts: 133
Joined: 06 Nov 2011, 04:24
Location: new York

Re: Creating custom shader PPG

Post by angelous4x » 24 Feb 2013, 02:15

if its just to make your own default setting it isn't too hard. i never really built my owe shader but for example I didn't want to not have alpha on with my AO shader as defalut. so i just set that value to 1 saved it and Boom, I don't need to always worry about forgetting to turn it off.

first duplicate the shader as a back up just in case. ;)

and just in the shaders PPG, you could right click on the shader name and a scripted editor and you could change the settings to any one you like. then save it, you can make your own presets.

hope this helps.

Moderator edit: removed duplicate post - HB

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: Creating custom shader PPG

Post by Maximus » 24 Feb 2013, 03:18

Yeah, sorry if I wasnt that clear, changing values on actual shaders is quite simple with editing the original file, I wanted to make PPGs and organize the actual set of parameters as i Like, maybe add or remove tabs, custom PPG.

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 22:38
Location: St. Thomas, Ontario

Re: Creating custom shader PPG

Post by Daniel Brassard » 24 Feb 2013, 04:05

do you to do it the new way via shaderdef or the old way vie ppg?

The new way is now recommended by Softimage.

http://download.autodesk.com/global/doc ... =d30e21361

Myself I did found that a bit confusing until i dug deeper into shader writing with Mental ray. Then it's started to make sense.

Good information on shader writing (oldy but goody):

http://www.nanomation.co.uk/Programming-101.html
http://www.nanomation.co.uk/Programming-102.html

http://accad.osu.edu/~smay/RManNotes/ this is a must read, you will find an explanation of the layering system .... ring a bell ..."mila layering system"

Brad Christensen did a translate of the RenderMan notes to mental ray available at
http://www.mymentalray.com/component/co ... ?itemid=55

Hope that help!
Last edited by Daniel Brassard on 25 Feb 2013, 18:48, edited 4 times in total.
$ifndef "Softimage"
set "Softimage" "true"
$endif

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: Creating custom shader PPG

Post by Maximus » 24 Feb 2013, 04:51

Daniel Brassard wrote:do you to do it the new way via shaderdef or the old way vie ppg?

The new way is now recommended by Softimage.
I dont know how to do it, i'm trying to understand how to do it, hopefully its not gonna be a pain.
whatever way it works better with less headhaches :)

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Creating custom shader PPG

Post by rray » 24 Feb 2013, 11:45

There's a good sample for the new shader registering method in the sdk folder iirc
softimage resources section updated Sep 26th 2026

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 09:02
Location: Montreal Canada

Re: Creating custom shader PPG

Post by xsisupport » 24 Feb 2013, 13:11

Give the shader wizard a spin. Start with a simple shader that returns red for everything, or something stupid like that.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage