NPR Shader Conversion

Posted By: M3PHiSTOPH3L3S

NPR Shader Conversion - 02/05/04 04:27

Hello again. I've converted the RenderMonkey NPR Shader for use with A6 vs11 and ps14. I havent released a screenshot for it yet, but that is only because the tests I used it on did not look very good. It seems as though something needs to be changed, but its working. The shader uses no skins. Just add it and assign NPR to a model. BTW I would love to see if someone could show a cool example of this. Anyways you can find the Shader at the bottom of my page.

M3PHiSTO
Posted By: EX Citer

Re: NPR Shader Conversion - 02/05/04 04:59

Hi, what meaqns NPR? And how will/shall it look like?
MfG EX
Posted By: Drew

Re: NPR Shader Conversion - 02/05/04 05:33

NPR- Non Photorealistic Rendering.

TOON SHADER!!!

Thank you!
Posted By: Drew

Re: NPR Shader Conversion - 02/05/04 05:52

hmmm...it worked, but not fully.
My model was solid red, non shaded...but there was no edge line, or toon line. Maybe its going transparant...is the black 0,0,0...maybe it should be a dark grey 5,5,5
How do you change the colors used?

Posted By: M3PHiSTOPH3L3S

Re: NPR Shader Conversion - 02/05/04 05:55

Now ive updated my site with a screenshot. It seems you just have to tinker with the settings (which are all labled) to get the right effect your after. The screenshot is just of some terrain and i adjusted the color values of the shader along with the cutoff values. The only problem is getting your lightpos set properly. I think it would be cool if you could set it in a way that it could dynamically detect the closest light and use its pos instead. This however, is just a pipedream i think.

@Drew: told ya I'd get you your NPR shader.

I am also going to try the mettalic NPR aswell. Now we just need stencil buffers . Anyways enjoy.

M3PHiSTO
Posted By: fuxerz

Re: NPR Shader Conversion - 02/05/04 06:12

well done M3PHiSTO
it would be even better if we could use an image for color.
Posted By: EX Citer

Re: NPR Shader Conversion - 02/05/04 06:17















Hmm, the fur shader is too fury, can someone tell me how to make it a bit more hairy? Now she looks like a plastic doll...
Well, the npr shader looks like a plastic toy, somehow nice, but not as needfull yet, as metal (metal + enviromentmap shading would be cool (pseudo reflectioN)). And I made two censored original shots. I hope everyone can see that the eyes are not implemented there. She can roteate the head on important Items (very thanks to bones animation) and she can fokus her eyes on important something (camera). And more... And the clothes are missing yet (no time yet)
MfG EX
Posted By: M3PHiSTOPH3L3S

Re: NPR Shader Conversion - 02/05/04 06:50

@Drew: the model being solid red has to do with the lightpos probably. I couldn't really figure out how to set it well. You can change the ambient,diffuse,and specular in the Constant declarations. That is also where the light pos is configred.

@EX Citer: I believe Ventilator created a alternate version of the fur shader for THE wiki( ) which I believe has the ability to scale the noise texture for finer fur.

I did also notice that it seems as though the darkest of the three colors in the npr shader seems to be slightly transparent. This can probably be fixed with adding "my.transparent=off;" in the action--not really sure if I threw it in or not...

M3PHiSTO
© 2024 lite-C Forums