Quirky colour and light behaviour
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
11-17-2004 08:16
Something kinda silly I noticed last night, fooling around with a couple wood boxes.  I dunno if anyone else noticed this, but a prim set to material type 'light' (assuming you have local lighting turned on), will cast the colour of light corresponding to the colour of face 0 on the prim. So if I have a cube, colour the whole thing red except I make face 0 blue, it will cast only blue light. That looks very odd when I put two of these together end-to-end to hide the blue faces.  This also allows one to make 'unlit' objects, ie. those that 'glow in the dark' but don't cast any actual light. Just set face 0 to be black in colour; it won't throw any local lighting, but all the faces will be fully lit. Weird.  I hope that made some sorta sense. I'm too scatterbrained to make much more sense than that. Or I'm just crazy. Has anyone else observed this sorta thing? 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Madiera Westerburg
waiting for apocolypse :D
Join date: 6 Apr 2004
Posts: 836
|
11-17-2004 08:22
which side is face 0?
_____________________
"Unfortunately you cant wipe them out of existence... merely hide the drivel they have to spew"- Kris RitterFrom: Neehai Zapata If the lord was handing out bacterial infections for sinning, you'd be at the free clinic all the time. just when I manage to convince myself I'm a superior being, I walk into a door
|
Willow Zander
Having Blahgasms
Join date: 22 May 2004
Posts: 9,935
|
11-17-2004 08:22
the 0 side... silly mommie...
_____________________
*I'm not ready for the world outside...I keep pretending, but I just can't hide...* <3 Giddeon's <3
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
11-17-2004 09:19
That's interesting. Back when "light glows" was enabled by default (1.2 and earlier I think) the glow color at least was the color of the most visible face. I for one am glad each face does not cast its own light. What a performance-robber that would be. However, I would think that the color of the cast light should be the average of all faces before applying textures. Eh well. Does the texture color play a role? For instance, the standard cube is colored white, but textured uh... woodish. What color is the light that's cast? Up until now I haven't really cared. heh.
|
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
|
11-17-2004 09:26
I hope this is not a bug. It sounds like a neat effect. Thanks for sharing.
_____________________
Vincit omnia Chaos From: Flugelhorn McHenry Anyway, ignore me, just listen to the cow
|
Artillo Fredericks
Friendly Orange Demon
Join date: 1 Jun 2004
Posts: 1,327
|
11-17-2004 09:34
Good questions.... Lindens??? AHEM???
Arti
_____________________
"I, for one, am thouroughly entertained by the mass freakout." - Nephilaine Protagonist --== www.artillodesign.com ==--
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
11-17-2004 15:18
I think it's a rather handy unexpected feature, instead of a bug.  As far as I'm aware, the texture placed on any prim is irrelevant, as far as local lighting goes. It only seems to care about what colour face 0 is, and casts that colour of light. So, interestingly, you could apply a pure black texture to a prim, but set its colour to white, and it would always appear completely black, but would illuminate its surroundings with white light. The following bit of code will set face 0 on any prim to be pure white, if you need help finding which face is which.  default { state_entry() { llSetColor( < 1, 1, 1 >, 0 ) ; } } Another bizarre thing that I never realized I could do before, as well, is change the transparency of individual sides of a prim. I suppose I should've clued in when llSetAlpha() has a parameter to determine which face to apply it to. 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
11-17-2004 15:19
From: Madiera Westerburg which side is face 0? Also, for a cube, face 0 is the upwards facing side, for a freshly-created cube. 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
|
11-17-2004 21:13
It was good to see you demo this yesterday in action, Cross. Cheers. 
|
Trifen Fairplay
Officially Unofficial
Join date: 19 Jul 2004
Posts: 321
|
Woohoo Go Cross!!!
12-12-2004 10:24
Woot Ty!
|
Olympia Rebus
Muse of Chaos
Join date: 22 Feb 2004
Posts: 1,831
|
12-12-2004 14:39
Way cool, Cross. Thanks for sharing  From: Cross Lament Something kinda silly I noticed last night, fooling around with a couple wood boxes.  I dunno if anyone else noticed this, but a prim set to material type 'light' (assuming you have local lighting turned on), will cast the colour of light corresponding to the colour of face 0 on the prim. So if I have a cube, colour the whole thing red except I make face 0 blue, it will cast only blue light. That looks very odd when I put two of these together end-to-end to hide the blue faces.  This also allows one to make 'unlit' objects, ie. those that 'glow in the dark' but don't cast any actual light. Just set face 0 to be black in colour; it won't throw any local lighting, but all the faces will be fully lit. Weird.  I hope that made some sorta sense. I'm too scatterbrained to make much more sense than that. Or I'm just crazy. Has anyone else observed this sorta thing? 
|