Original Post
Hi.
I am programming a little 3d game and I use an octree for storing my data. But I have a problem:
I can''t get my triangle splitting code working (it''s elf-made, so it''s low, but that''s not important, cause it''s only done once) can anyone give me an example of a working triangle (or polygon) splitting code? (or a link?) I''ve been using another technique first, but that doesn''t work anymore, because I switched to compile vertex arrays now. I just tested if a triangle has already been drawn in the current frame. I tried to test if a triangle has already been ADDED to a leaf (while subdividing the scene) - but I keep getting segmentation faults - and I just can''t figure out why :-(