PDA

View Full Version : In the dark about illuminate()


JSensebe
01-23-2005, 08:55 AM
I'm writing a shader in LScript, and it gives me "invalid object method: illuminate()"

I have no idea what's wrong. Here's the line:

visible = sa.illuminate(light, P);

sa is the shader object, light is a light and P is a vector (a copy of sa.wPos).

NanoGator
11-09-2005, 02:59 PM
I'm writing a shader in LScript, and it gives me "invalid object method: illuminate()"

I have no idea what's wrong. Here's the line:

visible = sa.illuminate(light, P);

sa is the shader object, light is a light and P is a vector (a copy of sa.wPos).

I realize I'm like 12 months too late, but 'illuminate' doesn't need the sa in the front of it. It's a function, not an object agent. (GRrr.)

NanoGator
11-09-2005, 03:13 PM
I realize I'm like 12 months too late, but 'illuminate' doesn't need the sa in the front of it. It's a function, not an object agent. (GRrr.)

For the record: if I put this in the process function, crasho. Doesn't matter which v of LW I use. Any advice?

Anti-Distinctly
08-04-2008, 01:59 PM
I'm getting the same result with raytrace.

Anti-Distinctly
08-04-2008, 02:10 PM
Can anyone else confirm this? (i.e. either of those ray tracing functions are broken)

Weepul
08-04-2008, 11:37 PM
Yup. Though my experience with LScript crashing with raytrace in shaders was a few years ago.

Anti-Distinctly
08-05-2008, 04:17 AM
I bugged the lovely Lightwolf last night and it crashes on his pc. I think it' safe to say it's a bug. But a vintage one...

adamredwoods
08-05-2008, 01:30 PM
Let NT know and they will fix it in the next release.

Anti-Distinctly
08-05-2008, 03:27 PM
Fogged. Case 15296

Anti-Distinctly
08-07-2008, 06:25 AM
Which is apparently now fixed. That was quick. Thank you NT :)