AB4D Forum
Draw 3 or 4 thousand sphere - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Viewer3ds and Ab3d.Reader3ds (https://forum.ab4d.com/forumdisplay.php?fid=5)
+--- Thread: Draw 3 or 4 thousand sphere (/showthread.php?tid=428)

Draw 3 or 4 thousand sphere - tintin - 05-27-2012

Hello ab4d,
I need draw 3000 or 4000 (or more) sphere with some tools that can be run on WPF4 VB. It’s possible? with the AB4D? When I draw 1000 spheres only with wire, the zoom and rotate is almost impossible! (draw 1000 sphere with solidcolorbrush or paint imagebrush don’t work). Anybody can say me something? Thank you, tintin.

RE: Draw 3 or 4 thousand sphere - abenedik - 06-08-2012

Uh, 3000 to 4000 spheres is probably too much for WPF 3D engine - especially when drawn with wireframe.

You could lower the number of Segments for each sphere - the default value is 30. This would reduce the number of triangles, but I think it would still not help to get you decent performance.

RE: Draw 3 or 4 thousand sphere - katelara - 01-20-2014

With WPF it is quite easy to read xaml at runtime with XamlReader.Parse. But unfortunately when the root object in xaml is a 3D object (for example Model3DGroup or Model3DVisual) the names of the objects are not preserved. If the root object is Viewport3D (or probably some other object that derive from FrameworkElement), than you can call FindName on the read object and get the child objects.

pass4sure gmat questions pass4sure gmat questions
cisco-ccna http://cisco-ccna.us
bomber jacket bomber jacket
how to learn spanish free online how to learn spanish free online