I need to draw a very large number of 3d lines. If I use driver->draw3dLine(...)
, the performance drops very badly. I heard that using the Octree we can optimize the drawing by displaying only what we need to see but I'm confused as to how to use it to solve my problem.
Asked
Active
Viewed 585 times
1

flight
- 7,162
- 4
- 24
- 31

Mafahir Fairoze
- 697
- 2
- 9
- 21
-
Are those lines supposed to form a surface? – Luc Danton Oct 03 '11 at 07:13
-
no they are not forming a surface they are just lines pointing from one object to another – Mafahir Fairoze Oct 03 '11 at 10:26
-
AFAICT the octree stuff Irrlicht makes available on hand deals with 2D meshes, so I'm not sure how realistic it is to turn your lines into a mesh. – Luc Danton Oct 03 '11 at 10:37
-
i have to agree with u, but do u have any other way that i can draw many lines without dropping the frame rate below 30 – Mafahir Fairoze Oct 03 '11 at 10:39
-
Just guessing, but deal with the scene manager, not the video driver. The former is especially designed to deal with culling and the like. – Luc Danton Oct 03 '11 at 10:43