Directional Lights Saved in Libraries

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Directional Lights Saved in Libraries // Archive: Tech Forum

1  |  

Post by Sirach // Oct 26, 2006, 6:19am

Sirach
Total Posts: 2
Trying to save a Directional Light in a light set-up library. It saves and when reloaded the diectional light works fine in Model but does not work in Player. The Link Editor shows it loaded (from the library) as an object (like it was a brick, not a light). Despite this, as I say, it works in Model as saved, but not in Player.


My aim is this: I use infinite lights in architectural renderings to simulate sun in Model with setups representing real times, latitudes, and longitudes for various seasonal conditions. I am trying to use similar setups for Player for shadow casting, volumetric scatter effects, etc.


Anybody know how to save a directional light in a setup so it reloads with its light parameters and not as a "brick"?

Post by trueBlue // Oct 26, 2006, 6:37am

trueBlue
Total Posts: 1761
pic
What I have done within the Player view, is select all of my lights in the Link Editor and Encapsulate them. Then I save it to the Primitives/Lights library. Model and Player have their own libraries.

Post by TomG // Oct 26, 2006, 10:55am

TomG
Total Posts: 3397
There are now two kinds of lights you can add to a scene - one is from the library on the tS7 side, and these are "player lights" for the real-time rendering. They often have an associated "translation" into modeler lights for offline rendering.


Then there are the old fashioned "light primitives" which are the ones found in tS6.6. These appear in both modeler and player. They don't feature some things for the real-time rendering stuff though.


Now, my guess is this - if you load a light from the tS7 library, and then save it to the tS6.6 light setups, the player light type will get destroyed (the tS6.6 light libraries don't store this kind of light as they have new data structures), but you may well end up with the "modeler translation" of that light still hanging around.


Is this the workflow that you've used, could you say? It might explain the events.


What I would suggest is to encapsulate lights and save them as to the tS7 Object libraries. Then you can drop the object (which could be a combination of both tS6.6 "old" lights and tS7 "new player" lights) into any scene and it will work. The one difference is that dropping it into the scene won't erase the lights previously in the scene, while selecting a light set-up from the old tS6.6 libraries used to wipe out previous lights and then add the new ones, but that shouldn't be too much of an inconvenience.


HTH!

Tom

Post by Sirach // Oct 27, 2006, 3:50am

Sirach
Total Posts: 2
Thanks to you both for explaining the differences in lighting library types in Player and Model. Will try your suggestions--makes a lot of sense and am confident I can get a workable setup. Thanks again!

Post by TomG // Oct 27, 2006, 5:27am

TomG
Total Posts: 3397
No problem! Let us know how you get on - others might be able to benefit from what you find out (myself included!) :)


Thanks!

Tom
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn