Re: C++, Shadows, and Shared Libraries

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 01/11/2000 12:04:15


Hi Chris,

I've rewritten the performer multipass to take care of several problems
and introduced a change in behavior to pfLightSources (they behave
correctly now). Before the rewrite, the multipass code was not
transforming the light source direction vector correctly into the
performer coordinate space. This problem has been fixed, but the result is
that the default direction of the light sources is now different. The
default has always been the vector (0, 0, -1), but due to the bug, it
behaved as though it was (0, 1, 0). In your code, explicitly specify the
light source direction as (0, 1, 0) to get the old behavior with the
dso's. The changes to the multipass implementation are detailed in the
performer release notes (I think it was version 2.2.3 or 2.2.4). In our
quarterly patches, we only ship the dso's, so your dynamic and static
libraries are most likely using different versions of the algorithm.

-- Marcin

On Tue, 11 Jan 2000, Christian Skluzacek wrote:

> Hi,
>
> When using the pfLightSource shadow features, I've found that they only
> work when linking with the *static* Performer libraries (by using
> -L/usr/lib32/Performer/Static on the link ine). Is there a reason for
> this? and is there any way of using shared libraries with shadowing? My
> shadowing code is in a (C++) library which when linked in statically,
> forces all my other libraries to be linked in statically (which is
> causing other problems because of template instantiations, etc). Being
> able to use the shared library will help me out in the short term but
> I know I have to do some more configuration management to get all my
> libraries straightened out.
>
> Thanks,
> Chris
>
> --
> ------------------------------------------------------------------------
> Christian Skluzacek | FokkerSpace B.V.
> Software Engineer | Newtonweg 1
> Program Operations - Simulation | 2333 CP Leiden
> +31 71 524 5718 | The Netherlands
> mailto:c.skluzacek++at++fokkerspace.nl | http://www.fokkerspace.nl
> ------------------------------------------------------------------------
>
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jan 11 2000 - 12:04:22 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.