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

Home » Public Forums » archive » Light and images in a IDLgrView
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: Light and images in a IDLgrView [message #38705 is a reply to message #38524] Sun, 21 March 2004 15:59 Go to previous messageGo to previous message
cartik_sharma is currently offline  cartik_sharma
Messages: 4
Registered: March 2004
Junior Member
The following scene graph might resolve your lighting issues:


---->oLightModel
1. oScene-|
|
---->oGeometryModel

In 1., rotating oGeometryModel, leaves oLightModel out of sync!

2.
---->oLightModel
|
oScene-->oModel---|
|
---->oGeometryModel


In 2., rotating oModel, gives oLightModel the same rotation as
oGeometryModel preserving original lighting effects.

Another way to accomplish the same would be to retrieve the relative
transformation b/w the light model and the geometry model, and apply
it to the lightmodel, every time the geometry model is rotated.

Hope this helps,
Cartik

David Fanning <david@dfanning.com> wrote in message news:<MPG.1ac520c216d2805b989704@news.frii.com>...
> Antonio Santiago writes:
>
>> i amb using IDL object Graphics and i just have contruct a view with a
>> volume, a surface, axis and a box. I want to do a slice of axis Y and
>> view this with an image. I do all this right (and the image have the
>> slice of the volume in Y axis) but the problem is the orientation of the
>> model respect the light. Depends on it, the image is visible or is black :(
>>
>> Is there any tip to tell me how to simplify the work of positioning
>> lights in a model. The surface is ok iluminatin but images are argggg....
>
> Support the arts and hire a theater student. They need
> the money and they can have you fixed up in about 2 minutes. :-)
>
> Sometimes it is good to have a set of lights that don't
> rotate with the model and another set that do. See, for
> example, the lights in my FSC_SURFACE program.
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: STRETCH: A bug?
Next Topic: trying to run IDL from a Servlet using Tomcat 5.0 under OS X

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

Current Time: Wed Oct 15 15:28:42 PDT 2025

Total time taken to generate the page: 1.99957 seconds