Posted By: Elektron
I think i need a quadtree but not sure how to make it - 03/27/10 04:25
I am generating a forest.
I want next generated tree has distance X of all allready generated trees.
I am using vec_dist to generate map but is slow (500) trees
I donīt know if i should make my function calculating distance on 2d for speed up?
Or create a grid over map and only make collisition testing inside the cell?
Or maybe both?
I have the source of octree made on c++ , could be usefull translate to lite-c or the effort donīt pays and is faster to make from sctach?
Any advice or link are welcome.
Thanks in advance
I want next generated tree has distance X of all allready generated trees.
I am using vec_dist to generate map but is slow (500) trees
I donīt know if i should make my function calculating distance on 2d for speed up?
Or create a grid over map and only make collisition testing inside the cell?
Or maybe both?
I have the source of octree made on c++ , could be usefull translate to lite-c or the effort donīt pays and is faster to make from sctach?
Any advice or link are welcome.
Thanks in advance