Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Dwiel

BSP trees

This topic is 6009 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I create a BSP tree, and want to draw each face from front to back (thats what a bsp tree will help with right?), do I have to make a billion DrawIndexedPrimitive() calls, because that seems like it would just slow it down even more, or do you change the order of vertex buffer, or what? I just dont seem to understand how you instruct D3D what order you wnat it to draw your faces, and change that order frequently. Thanx alot Zach Dwiel ~ Tazzeld

Share this post


Link to post
Share on other sites
Advertisement
I just made a map system. The vertices are grouped together by the texture they use. This minimizes DrawPrimitive() and SetTexture() calls. I will soon implement BSP so I only have to render what I see.

Proceeding on a brutal rampage is the obvious choice.

Share this post


Link to post
Share on other sites
I guess what I really meant was HOW do I display may BSP tree? A BSP tree sorts the faces in order from closest to farthest or farthest to front, but my question how do I tell DX the order I want it to display them.

Thanx alot.

I never seem to explain things well.

Try again me.

Share this post


Link to post
Share on other sites
quote:
Original post by Tazzel3D
If I create a BSP tree, and want to draw each face from front to back (thats what a bsp tree will help with right?), do I have to make a billion DrawIndexedPrimitive() calls, because that seems like it would just slow it down even more, or do you change the order of vertex buffer, or what? I just dont seem to understand how you instruct D3D what order you wnat it to draw your faces, and change that order frequently.

Thanx alot

Zach Dwiel ~ Tazzeld


You can order your VB/IB, but if your render frond to back (or any order) you need to change texture too often, and the recent GPU don''t like this way. Consider, rendering by texture and enable z-buffer, use just pvs culling if your bsp have any.

Share this post


Link to post
Share on other sites
Ohhhhhhhhhhhhhhh.... I seeeeeeee. Thanx alot. One question still. Then what are BSP trees good for. And I have heard of the pvs culling, but what exactly is it and where could I get some info on it??

Thanx alot.

P.S.

I am looking in the article section right now so, well, yeah hopefully there should be some pvs stuff there

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!