Talk About Network

Google


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 Misc > Re: bounding vo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 10 Topic 975 of 1010
Post > Topic >>

Re: bounding volume hierarchy/space partition

by broli <Broli00@[EMAIL PROTECTED] > Apr 1, 2008 at 06:12 AM

On Apr 1, 5:22 pm, Andreas Sch=FCle <schu...@[EMAIL PROTECTED]
> wrote:
> broli schrieb:
>
> > Thank you very much.
>
> > What I'm thinking is to build the BSP tree by subdividing along the
> > center of x, y, or z bounds. But the
> > biggest problem I'm facing right now is how to deal with situations
> > where a triangle is spanning across the plane ?? In this case part of
> > traingle is in one bounding volume and the other part is in the
> > sibling bounding volume. How to deal with this ??
>
> If your triangle lies exactly on your splitting plane, then add it to
> the side where triangle's normal is pointing to.
>
> What do you expect to achieve with BSP?


No, Im speaking of the situation where your triangle is intersecting
the splitting plane.

I have also been considering octree .In octree you are simulatenously
cutting thorugh center of box with 3 planes coplanar to XY, YZ and ZX
planes. However, I could not understand how to calculate the bounds
for each of the 8 children ??

I tried octree with following data structure -

struct octree
{

struct octree *child[8];
vector minB, maxB;
Triangle *list;

};

typedef octree octree;


octree *root;

=2E............
=2E............

Now suppose we have a root bounding box, now how to subdivide this
into 8 children ?
 




 10 Posts in Topic:
bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-03-31 00:20:17 
Re: bounding volume hierarchy/space partition
=?ISO-8859-1?Q?Andreas_Sc  2008-03-31 10:38:10 
Re: bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-04-01 02:02:47 
Re: bounding volume hierarchy/space partition
=?ISO-8859-1?Q?Andreas_Sc  2008-04-01 14:22:53 
Re: bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-04-01 06:12:21 
Re: bounding volume hierarchy/space partition
=?ISO-8859-1?Q?Andreas_Sc  2008-04-01 20:49:24 
Re: bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-04-01 22:03:31 
Re: bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-04-01 22:26:15 
Re: bounding volume hierarchy/space partition
=?ISO-8859-1?Q?Andreas_Sc  2008-04-07 11:09:41 
Re: bounding volume hierarchy/space partition
broli <Broli00@[EMAIL   2008-04-07 07:18:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 20 1:18:08 CDT 2008.