[vtkusers] Actors to busy drinking in the green room??
John Platt
jcplatt at dsl.pipex.com
Thu Mar 2 14:20:19 EST 2006
Hi Mark,
Here is a comment I picked up from the list ...
With ImmediateModeRenderingOn() you can re-use the actors and mappers
from one renderwindow (opengl context) etc. This is because the mapper
does not create any substantial intermediate data - it simply converts
data to GL primitives. The actor likewise doesn't really do much - it's
mostly a holder for the mapper, properties and matrices etc.
With ImmediateModeRenderingOff() (default) display lists are constructed
(generally in the rendering library) which can then be rapidly traversed
and rendered by the rendering library. The disadvantage of display lists
is that they require additional memory which may affect the performance.
Objects must be duplicated from the mapper downstream (mapper->actor
etc).
vtkMapper::GlobalImmediateModeRenderingOn() is a static method so it
will apply to all instances of vtkMapper.
HTH
John.
-----Original Message-----
From: vtkusers-bounces+jcplatt=dsl.pipex.com at vtk.org
[mailto:vtkusers-bounces+jcplatt=dsl.pipex.com at vtk.org] On Behalf Of
Mark Gooding
Sent: 02 March 2006 09:59
To: John Platt
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Actors to busy drinking in the green room??
On 3/1/06, John Platt <jcplatt at dsl.pipex.com> wrote:
> I am not sure if the same mapper/actor is being rendered in the
> different views but you could try
there were some of the same actors in each view but not all actors in
each view.
> vtkMapper::GlobalImmediateModeRenderingOn().
That seems to fix the problem. Thanks!
I set GlobalImmediateModeRenderingOn() for each mapper. Is that
correct (or does the global bit mean that it will do it for the
mappers of all actors in the scene?
Any chance you could explain why this fix my problem, and even what
the problem was? - it's nice to have things working, but it would be
better if I knew why so that I can avoid the problem in the future.
Thanks very much,
Mark
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list