Adding the sun to image based lightingenvironment

Hi,

I think Lars is right, the problem is probably the sphere. Usually, when you define an IBL sky it's better to use a source object instead of a sphere (just like when you define a normal sky with gensky). That is probably also why adding the sun source is not making any difference, if you are measuring from inside the sphere (the source is outside).
You can try:
env_glow source sphereenv
0
0
4 0 1 0 180 <--- (replace with appropriate vector for the chrome ball orientation, and angle covered)
Does this make sense, or am I missing something?
Regards,

Santiago

ยทยทยท

________________________________

From: [email protected] on behalf of Anne Iversen
Sent: Fri 20/11/2009 21:41
To: radiance-general
Subject: [Radiance-general] Re: Adding the sun to image based lightingenvironment

Hi Lars,
Yes - have tried both - and no difference. I get however an oconv warning that my srcs.rad file is empty. The experience I have with this warning is that it is related to a missing material description, which in this case is included in the Environment.rad.

oconv Environment.rad > iblmksource.oct

mksource -a 0.5 iblmksource.oct > srcs.rad

oconv -i iblmksource.oct srcs.rad > ibl1.oct

/Anne

Hi!

lum_sun source sun
-rx 90 -rz 8 -ry 0

0

4 0.6410 0.5537 -0.5315 0.5323

Does this pass oconv without error messages? I think you just need to
remove everything in the second line except the zero here, so it becomes

lum_sun source sun
0
0
4 0.6410 0.5537 -0.5315 0.5323

Cheers, Lars.

--
Anne Iversen
Guldborgvej 44 3.th <http://3.th/>
2000 Frederiksberg

mobil: 20646857

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

Hi!

That is probably also why adding the sun source is not making any
difference, if you are measuring from inside the sphere (the source is
outside).

Ok, after all the debugging of the scene syntax, with Santiago's reply
we got the conceptual problem - the sun source is "outside" the sky
sphere. The rule of thumb is that the source object is enclosing the
whole scene's octree - in other words, it catches rays sent out that did
not hit anything else to get them reflected back or absorbed.

So if you wanted to model with a sphere representing the sky, you'd have
to go with a disk (ring with inner radius 0) for the sun. You do not
want this. Instead, use source for both. And again - do not start using
mksource before you got the scene running without. Optimization is great
sometimes, but only once everything is working fine.

So good luck, and once again, the wonderful many ways to get confused
and hide some nasty bugs in a radiance scene :wink:

Cheers, Lars.