Jump to content

  • Log In with Google      Sign In   
  • Create Account


Crazy Idea?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Facehat   Members   -  Reputation: 696

Like
Likes
Like

Posted 12 September 1999 - 02:38 AM

Ok all, I've been thinking about writing a 3D voxel engine. The thing thats been holding me back though, is that I also wanted to mix it with Direct3D so that I could render polygons for the models, and use voxels for the landscape. Anyway, I got to thinking about a couple of ways to do it, so here are my ideas:

1) render voxels as you normally would (as lines), but also write the appropriate values into the hardwares Z-Buffer. Now you can render polygons as you normally would, and they should render correctly. The problem here is that im not sure you can write directly into the hardwares z-buffer. Anyone know if you can? Also, it seems like it would be slow.

2) Render voxels as quads (triangle strips, to be more exact). This wouldn't take much fussing around, and would probably be the fastest solution.

Thoughts? Ideas?

--TheGoop


Sponsor:

#2 LeeIsMe   Members   -  Reputation: 122

Like
Likes
Like

Posted 06 September 1999 - 06:31 AM

I am working on programming something like that. Instead of voxels to render the volume, I render the surface. I record the heights of the last line and fill between the old line and new line with polygons.

I have a neat working demo if you would like to see it, email me.

[This message has been edited by LeeIsMe (edited September 06, 1999).]


#3 Sengir   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 September 1999 - 12:31 AM

writing directly to the zbuffer isn't possible with the current 3d-accel-cards. if it works with d3d it's software emulated.


#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 12 September 1999 - 02:38 AM

The only way to write into the z-buffer is to send polygons to the card. That would leave you with option 2 automatically.

Greetz,

---------
Eddy Akman
E-mersion Project
www.connectii.net/emersion





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS