[vtkusers] Suggestions for implementing this new approach ?
tutu lamotte
tutulamotte at yahoo.com
Wed Sep 24 12:34:01 EDT 2003
We made an "Autocad\Catia" kind of application.
It can load 3d models based on our files format.
Each 3D components is a primitive and so far, it is
represented by a pipeline starting by the vtkPolyData
instance, a vtkPolyDataNormals filter, mapper and
actor.
We generated memory profiles reports for a test case
composed of 50 simple cylinders.
The vtk DLLs are generating up to 8 Mo of data in
order to display those 50 cylinders. (BTW, 3 of these
8Mo are allocated by nvoglnt.dll)
For us, this is way too much. The complexity of the 3D
models we will have to display in production mode
makes the application take more then 1 Go of memory...
So we're looking at ways to solve the problem or go
around it by changing our design !
Thanks for any suggestions.
--- John Biddiscombe
<john.biddiscombe at mirada-solutions.com> wrote:
>
> I just looked at the allocate for vtkAppendPolyData
> and it's been tidied up and is not as bad as it once
> was. If it's not working for you. Stick with many
> actors and make sure you set
> GlobalImmediateModeRenderingOn(). It may be that
> you're hammering the opengl display list memory by
> having many actors. If that doesn't work, then
> you'll have to spend some time examining your
> code/design - I'm not sure anyone reading can really
> help without seeing exactly what your program is
> doing.
>
> JB
>
> > -----Original Message-----
> > From: John Biddiscombe
> > Sent: 24 September 2003 10:23
> > To: tutu lamotte; vtkusers at vtk.org
> > Subject: RE: [vtkusers] Suggestions for
> implementing this new
> > approach ?
> >
> >
> > >To do that we tried vtkAppendPolyData but its way
> too
> > > slow.
> >
> > vtk appendPolyData should work ok, you should
> check out the
> > memory allocation that occurs near the start of
> the filters
> > execution. It may be failing to allocate enough
> for all the
> > datasets which would cause it to keep reallocating
> as the
> > size grows. Alternatively, it may be allocating
> the wrong
> > amount (usually it allocates too much, and with
> many many
> > datasets,it may try to consume your entire system
> hence
> > causing slowness)
> >
> > JB
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the vtkusers
mailing list