Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Having trouble ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 580 of 670
Post > Topic >>

Having trouble tessellating binary triangles

by Miss Elaine Eos <Misc@[EMAIL PROTECTED] > Sep 14, 2006 at 03:02 AM

I'm having trouble implementing the binary-tree algorithm described on 
<http://www.ldagames.com/seumas/progbintri.html>.
 I believe that I 
follow all of the general idea, but something in the details is hanging 
me up; it might have to do with my trying to prevent an infinite 
recursion.

That is, the pseudo-code at on the site doesn't have any "stop-recursing 
down" logic, and I'm wondering if my adding of that is where I 
introduced the problems.  I basically changed the Split2() function 
(which I call actualSplit()) to say "if I'm smaller than 
minimum-triangle-size, then don't bother splitting", then put in a few 
"if we split..." if-checks to prevent attempting to process triangles 
that didn't get split.

I'm not CERTAIN that this is my problem -- but I'm just not sure.

I was wondering if (a) one of you had some working source code available 
that demonstrated the tessellation of a binary triangle tree or (b) if 
you'd mind terribly having a look at my code to see if you can spot my 
n00b-bug.  The source for my terrain-CLOD object, which contains my 
binary-tree is at 
<http://www.manyfriends.com/Misc/ToglTerrainSectionCLOD.java.zip>,
in 
case you feel like having a look.

Thanks!

-- 
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which
sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.




 2 Posts in Topic:
Having trouble tessellating binary triangles
Miss Elaine Eos <Misc@  2006-09-14 03:02:06 
Re: Having trouble tessellating binary triangles
Miss Elaine Eos <Misc@  2006-09-14 04:33:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 5:36:14 CDT 2008.