Line Width depending on camera distance

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  09 September 2011
Post Line Width depending on camera distance

Hi everybody,

I have a toon shader character, but the line don't do thick and thin, so when i'm far away, the character look like a little black hole...

I've done a small rigged camera that control the line witdh depending on the distance of the camera...

but the interpolation is linear! nooooo!

[font='Times New Roman,serif', 'serif']; pt_dl3dtoonshader_contour10.width = hermite(0.2,0,0,0, smoothstep(0,31, distanceLine.distance));[font='Times New Roman', 'serif'][/font][/font]

I want the interpolation to be exponential but i don't know what to add and where to add it...
I've tried to add an exp(2) in front of the whole line but that seem to do... nothing...
maybe there's an easier way to do this?

Sorry for my poor english,
Thanks to all

  09 September 2011
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:39 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.