connect light to shader 2005-03-11 - By Alan Jones
Back Ahhh you're wussing out with the easy way ;-) I figured he was after a non-pass based solution - after all the question isn't really challenging if you use passes.
Do you think a pass-through shader could pull it off?
Cheers,
Alan.
On Fri, 11 Mar 2005 14:12:48 +0100, luc froehlicher <lulu@(protected)> wrote: > this is very easy with passes : > -one pure lambert > -one with only specular soft and one light > -one with only sharp specular and the other light > add everyone in FXtree. > > luc > > > Alan Jones wrote: > > >Hi Vic, > > > >Standard I'd say you can't. You could mess around with building a > >shader with some rendertree nodes based on manipulating the incidence > >with a given light, but that would be some stuffing around. > > > >As far as coding shaders for it I'm not sure about a passthrough > >shader - it would require messing mental ray's scene database to alter > >the array - which of course you'd need to restore afterwards. Possibly > >doable, but I couldn't say for sure without trying it. > > > >Or you could build your own surface shader and have a light list as > >one of it's parameters. This would definitely work with little > >challenge. Actually, *insert pause for brainwave*, you might not even > >need to code your own shader - just modify the existing phenomenon > >inside the phong spdl to expose a light list. > > > >Cheers, > > > >Alan. > > > > > >On Fri, 11 Mar 2005 10:03:42 +0000, Chris Marshall > ><chris@(protected)> wrote: > > > > > >>Vic, > >>Could you give a bit more information about what you want to do? > >>Thanks, > >>Chris > >> > >> > >>-- -- Original Message -- -- > >>From: Victor Luckysov <vic@(protected)> > >>To: XSI@(protected) > >>Sent: Fri, 11 Mar 2005 08:59:47 +0000 > >>Subject: connect light to shader > >> > >> > >> > >>>Hi All! > >>> > >>>How I can connect light to shader ? > >>>is it possible? > >>> > >>>p.s. see the picture in mail. > >>> > >>>/vic/ > >>>senior animator > >>>dr.Picture Studios www.drpicture.com > >>>personal web: www.vic3d.com > >>> > >>> > >>> > >>--- > >>Unsubscribe? Mail Majordomo@(protected) with the following text in body: > >>unsubscribe xsi > >> > >> > >> > >--- > >Unsubscribe? Mail Majordomo@(protected) with the following text in body: > >unsubscribe xsi > > > > > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|