🔒 Locked
Octree
Advertisement
Original Post
Hm, cut the triangle in half. Whichever leaf node pleads that you don''t destroy the triangle and would rather the other leaf node have it is the rightful owner. It worked in the bible. Seriously, you can cut it in half if it crosses a boundary. Say though it actually is on the boundary... Well then you ened a precendence. Say for all polys on a boundary they go automatically to either the northern or eastern box. Hope this helps.
quote:
... Well then you ened a precendence. Say for all polys on a boundary they go automatically to either the northern or eastern box.
That wouldn't be good, cuz, if they belong to the box, but are not whithin it, the poly might be visible, but not the box, then that poly could not show
About cutting it ...
It would have to be split in 3. Would make 3 polys to render
if I include it in both, I would only have 2
(As I am only unsing triangles)
Edited by - SKSlayer on January 21, 2001 6:09:54 AM
Spliting would be better I think because you don''t have to worry about drawing the triangle twice.
go to glvelocity and look at tim''s source or tutorial
go to glvelocity and look at tim''s source or tutorial
u dont draw the triangle twice.
just mark it as ''to be rendered'' + if u come across that tri again and the ''to be rendered'' flag is set dont add it again to your list of tris to be rendered. hmmm
DONT SPLIT
take the more common case ''both nodes are visable'' if u have split the tri then u have to draw 2 triangles instead of just one.
in the lesser common case of ''only one of the nodes being visable'' if u split u draw one if u dont split u still draw one.
remember the driver does the cliiping for u
http://members.xoom.com/myBollux
just mark it as ''to be rendered'' + if u come across that tri again and the ''to be rendered'' flag is set dont add it again to your list of tris to be rendered. hmmm
DONT SPLIT
take the more common case ''both nodes are visable'' if u have split the tri then u have to draw 2 triangles instead of just one.
in the lesser common case of ''only one of the nodes being visable'' if u split u draw one if u dont split u still draw one.
remember the driver does the cliiping for u
http://members.xoom.com/myBollux
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement