[Papervision3D] Layer Puzzle

Ian Thomas ian at eirias.net
Tue Aug 12 06:51:06 PDT 2008


Hm. I thought I understood, but clearly don't...

I had:

root  -- rotation applied here
 |
 +-- backgroundRoot -- layer created from this
 |
 +-- roomRoot -- layer created from this
 |
 +-- contentRoot -- layer created from this

renderScene() worked fine. renderLayers(scene,viewport,[contentLayer])
(where contentLayer is retrieved from getChildLayer(contentRoot)) lost
the transforms.

So, after your response, I've changed this to:

root
 |
 +-- backgroundRoot -- layer created from this, _and_ transforms applied here
 |
 +-- roomRoot -- layer created from this, _and_ transforms applied here
 |
 +-- contentRoot -- layer created from this, _and_ transforms applied here

And still have the same problem.

I've also tried this:

root
 |
 +-- backgroundRoot -- layer created from this
 |
 +-- roomRoot -- layer created from this
 |
 +-- contentRoot -- layer created from this
        |
       +-- pivot - transforms applied here

And _still_ renderLayers() on contentLayer doesn't have any transforms.

Was I misunderstanding you? If so, what did you mean? :-D

Many thanks,
   Ian

On Tue, Aug 12, 2008 at 2:32 PM, Ian Thomas <ian at eirias.net> wrote:
> On Tue, Aug 12, 2008 at 2:27 PM, Andy Zupko <azupko at zupko.info> wrote:
>
>> using renderer.renderLayers ONLY works on root objects-  not children
>> of objects.  This happens because the entire chain has to be rendered
>> otherwise you lose the heirarchal transform.  I could force this on
>> the user, but for now its just the way it is (thats why your
>> transforms were lost).
>
> That makes sense - I'll just push the transforms down a level. Thanks for that!
>
> Cheers,
>  Ian
>



More information about the Papervision3D mailing list