comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Realistic Illumination, IDL & OpenGL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Realistic Illumination, IDL & OpenGL [message #37823 is a reply to message #37821] Fri, 30 January 2004 16:36 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Neil" wrote in message...


> For Object Graphics to emulate reality, illumination mustbe
> accurately represented. Take for example an outdoor scene, where sky
> background emission above and up-welling emission below bathes an
> object in different intensities from all directions. Can this be
> accurately described in IDL or OpenGL?

It depends what you mean by accurately described. Lighting in openGL is
more of an art than a science. Simply throwing in a few lights rarely leads
to an acceptable rendition of a scene. Proper texturing and camera
placement are key. If there is motion in the scene (either camera or actor)
causing the lighting to change you can generate procedural textures. Take a
look at a few ~2-3 year old 3d games to get an idea of what you can do with
good texturing.

If you need to go further (or do it faster) you'll need to move beyond IDL.

> In IDL Object Graphics there is the possibility to bring in the
> "light" by way of obj_new "IDLgrLight". However, this can only be:
> type 0) Ambient; 1) point source; 2) collimated beam; 3) spot light
> (apertured). The number of lights is limited to 8. Is this
> illumination limited by IDL or the OpenGL on which IDL operates?

All openGL implementations support at least 8 lights, some support more.
I don't know if there is a hard limit in IDL but my guess is that this limit
is imposed so IDL will behave the same way regardless of the underlying gl
implementation.

8 may seem like a small number but I think you'll find that it doesn't take
a lot of lights to render an acceptable scene as long as you are creative
with placement and textures.

> Gereral illumination in an outdoor environment has something of an
> angular distribution, for an overcast day at least. This might be
> represented in an alt-azimuth coordinate system; large amount of
> emission at zenith, with some kind of distribution coming down to the
> horizon, with some up-welling illumination from the ground. This could
> be either simulated by a very large number of point sources or ambient
> illumination with some angular distribution on it. Are there plans to
> introduce this kind of "light" into IDL in future versions?

If I understand you, this can be done in IDL right now. You just have to be
creative. :)

Or you might want to consider pov-ray.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Realistic Illumination, IDL & OpenGL
Next Topic: Memory Headache II

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:37:52 PDT 2025

Total time taken to generate the page: 0.95729 seconds