Razor Code
Rambling about code since quite recently

Topics

User Functions





    Don't have an account yet? Sign up as a New User
    Lost your password?

Events

There are no upcoming events

Older Stories

Sunday 14-Sep

  • ACM ICPC 2008 (0)

  • Monday 11-Aug

  • NZ Programming Comp (0)

  • Sunday 27-Jul

  • Blast from the past (0)

  • Monday 21-Jul

  • Timetable generator again (0)

  • Tuesday 08-Jul

  • Hosting (2)

  • Saturday 05-Apr

  • Sparse Volume (0)

  • Friday 28-Mar

  • Carmack (0)

  • Tuesday 04-Mar

  • Back to Uni (0)
  • Dell Kill Switch Direct (0)

  • Monday 18-Feb

  • Lappy (0)

  •  Sparse Volume    
     Author: 
     Dated:  Saturday, April 05 2008 @ 01:51 AM NZDT
     Viewed:  330 times  
    Programming

    It works! Nearly. I've got it rendering an octree of voxels. Generating the volume was actually the hard bit, because most of the renderer worked as it was.
    Here's the first working shot:

    That's 8 voxels, so it's not exactly sparse, and it's debatable whether it's an octree, but it was a start.

    Some more work on generating stuff and a confusing bug (and a couple of days) later, I snapped this shot:

    That's a 1024^3 volume, larger than I'd managed to get before. And that's despite using floats instead of shorts and duplicating radii up to 8 times. I tried 2048^3 but I hit the vista 32bit limit of 2gb memory per process. I didn't run out of physical memory though ;-). I like my laptop. It's a bit of a worry, because it's something like a best case scenario for memory usage. And you can see there's some artefacts with the large volume. I know why that is, and I hope to get around it by switching back to tetrahedral interpolation.

    Performance could be better. Big volumes get more expensive slightly quicker than they used to, and it's slower over all. Still room for improvement though. With normal vector calculations, it's doing 6ish fps at 512x512 for the 2^3 volume and 4ish fps for the 1024^3. Which doesn't sound that different until you look at it as a percentage. Even so, it scales very well.

    Before things look remotely interesting, I need some more robust ways of adding and subtracting stuff. Preferably in real time. At the moment I can only generate a single negative sphere.




    Trackback

    Trackback URL for this entry: http://razorcode.net/trackback.php/SparseVolume

    No trackback comments for this entry.
    Sparse Volume | 0 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.