Extra "default" light group.

General discussion regarding exporter development in general.

Moderators: Ratow, coordinators

Extra "default" light group.

Postby pciccone » Fri Sep 30, 2011 10:29 am

Hi.

When generating the following code (.lxo) I get an extra "default" light group in Lux. The group has no effect on the scene but it's confusing to have it. I can't seem to find a way of removing it. The mesh light is the only light in the scene:

Code: Select all
AttributeBegin

LightGroup "My Lights"

AreaLightSource "area" "texture L" ["Default_9::L"] "float power" [100] "float efficacy" [17.0] "float gain" [1]

Shape "mesh" # 4 vertices
"point P" [
-2.265262 -0.851049 2.839693
-0.851049 -2.265262 2.839693
-1.334738 -2.748951 0.960307
-2.748951 -1.334738 0.960307
]
"integer triindices" [
0 1 2
0 2 3
]
"normal N" [
0.663341 0.663341 -0.341442
0.663341 0.663341 -0.341442
0.663341 0.663341 -0.341442
0.663341 0.663341 -0.341442
]
# 4 uv entries
"float uv" [
0.000000 0.000000
1.000000 0.000000
1.000000 -1.000000
0.000000 -1.000000
]
AttributeEnd
# Object Plane 2
AttributeBegin
NamedMaterial "Default_10"
Shape "mesh" # 4 vertices
"point P" [
-0.500000 -0.500000 0.000000
0.500000 -0.500000 0.000000
0.500000 0.500000 0.000000
-0.500000 0.500000 0.000000
]
"integer triindices" [
0 1 2
0 2 3
]
"normal N" [
0.000000 0.000000 0.998311
0.000000 0.000000 0.998311
0.000000 0.000000 0.998311
0.000000 0.000000 0.998311
]
# 4 uv entries
"float uv" [
0.000000 0.000000
1.000000 0.000000
1.000000 -1.000000
0.000000 -1.000000
]
AttributeEnd


Thanks in advance.
User avatar
pciccone
Developer
 
Posts: 686
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: Extra "default" light group.

Postby jeanphi » Sun Oct 02, 2011 2:17 pm

Hi,

That's because a "default" light group is automatically added before the parsing starts in case a light doesn't specify a light group. That could obviously be enhanced.

Jeanphi
jeanphi
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: Extra "default" light group.

Postby pciccone » Sun Oct 02, 2011 3:02 pm

So, if I understand this correctly, this is a Lux bahavior and there is nothing I can do to prevent it? Or is there?

Thanks in advance.
User avatar
pciccone
Developer
 
Posts: 686
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: Extra "default" light group.

Postby jeanphi » Sun Oct 02, 2011 3:24 pm

Hi,

Right now there's nothing you can do, but the current behaviour can be changed.

Jeanphi
jeanphi
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron