[Sidefx-houdini-list] baking coverage into point particles
keyframe at rogers.com
Thu Dec 10 12:20:31 EST 2009
There is nothing preventing you from making an illuminance loop, storing at the result as a point attribute, which CAN later be used in the shader.
The problem is that often you don't have (nor do you want, I suspect) nearly enough points in your geoemetry to make a bake of that sort worthwhile.
Loki Visual Effects
p: 416.532.5654 // c: 416.803.0682 // www.lokivfx.com
----- Original Message ----
From: Michael K. O'Brien <mobrien at pixar.com>
To: sidefx-houdini-list at sidefx.com
Sent: Thu, December 10, 2009 12:12:56 PM
Subject: Re: [Sidefx-houdini-list] baking coverage into point particles
Thanks, I'll give it a go.
Houdini is really good about allowing data to jump between contexts. It would
be really cool if Houdini was able to better integrate rendering/shading logic
into the interactive contexts.
The vop stuff goes part of the way, but it would be great if you could do
things like run the illuminance loop from sops w/out having to fire up mantra
to do it. Something to think about.
>-- On Thu, Dec 10, 2009 at 12:08:19PM -0500, Mark Elendt wrote:
> On Thursday Dec 10 at 08:28, Michael K. O'Brien wrote:
> > > Or do you need it geometrically?
> > > If you have a DSM/DCM, you should be able to sample the data in a VEX
> > > SOP.
> > That sounds promising, I'll have to figure that out. I'm not really all that
> > familar with Mantra. Are there any things I need to worry about?
> The tricky thing will be to get the point into the space of the shadow
> map. Aside from that, the VEX code would be something like:
> bake_coverage(string map=""; export float coverage=0;
> float spread=0, bias=0, quality=1)
> if (map != "")
> vector pp = transform_into_light_space(P);
> vector opacity;
> opacity = shadowmap(map, pp, spread, bias, quality);
> coverage = max(opacity);
> If you have a deep camera map, you can get other variables out of the
> map too (using the "channel" keyword argument to the shadowmap
> The shadowmap call expects mantra NDC coordinates:
> P.x in (0, 1)
> P.y in (0, 1)
> P.z the z-distance from the light source
> all in the space of the light.
> You might be able to transform based on the Houdini light, or
> alternatively, you can use teximport() to extract the projection
> values out of the DSM. I don't know of any code out there that does
> the automatic transformation though.
> > > There may be other solutions (with either VEX ray-intersection (yes
> > > there is ray intersection in SOPs) or the Ray SOP).
> > >
> > > How many points?
> > 100k ish.
> Mark Elendt
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
Michael O'Brien Tools
Pixar mobrien at pixar.com
Censorship is the mother of metaphor.
-Jorges Luis Borges
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list