Jump to content

(Entropy + Houdini) Post-include for AreaLight set


Recommended Posts

(sorry for my poor english)

I'm setting an areaLight and having trouble post-including.

A sample declaration for an area light source is shown below: (exerpts from techref.pdf for entropy)

------------------------------

AttributeBegin

Attribute "light" "nsamples" [16]

AreaLightSource "arealight" 1 "intensity" [30]

"string shadowname" ["shadow"] "float shadowbias" [.15]

#above 3 lines are pre-included okay.

Translate 4 2 4

Rotate 90 1 0 0

Rotate 60 0 1 0

Rotate -20 1 0 0

Scale 1.5 1.5 1.5

Surface "constant"

Patch "bilinear" "P" [-1 1 0 1 1 0 -1 -1 0 1 -1 0]

AttributeEnd

Illuminate 1 1

# But above 1 line is resisting Post-included.

-------------------------------

First part is pre-including okay. But the second part is not working.

So I had to include "Illuminate 1 1" by hand.

I think geo tile's post-include is not working at all. Cam or light's post-include is working properly, but it doesn't do the trick for areaLight setting.

What is the proper way to include the "Illuminate 1 1" ?

Thanks for advance :)

Link to comment
Share on other sites

Hmm... Looks like it's a lot more complicated than I thought. :( I am not certian how to automatically change the LightSource into AreaLightSource. If this is SOP, we *might* be able to use Attribute or Attribute Create SOP to change things around.

Welp, I guess we'll have to wait or Jason or someone else who knows.

Just wait a bit longer for everyone to get back from Siggie.

Link to comment
Share on other sites

the arealight shader, the geometry, and the illuminate statement go before the world begin.

I made an object subnet, all the geometry you put into the subnet gets turned into an include rib.

There's the the subnet.ds, a couple of command files, and a perl script that cleans up the .rib file.

It dumps out your lights and area light geometry into a .rib, mulches it into a useable form with the perl script,

then sets up a light source to use this include .rib at the beginning of your rib files, with area lights.

The gzipped tar file is 2.6k, I can e-mail it to you if you want it. It's less than perfect, I was going to clean it up

and put it on odforce, but with recent developments, there's sort of no point. :( If you want any of it, just e-mail me.

ivan@hero.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...