Results 1 to 10 of 29

Thread: My voxel editor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    A new version (1.3.1) is available.

    Downloads: https://sourceforge.net/projects/del...-voxel-editor/ (Windows Executable & full source code)

    New features:
    * Heighmap and terrain importing
    * Copy/Paste front, back, left, right, top and down views
    * Optimized OpenGL rendering (using technology from DelphiDoom's OpenGL renderer)

    For Pascal Programmers:
    Inside the vxe_mesh.pas file you can find the TVoxelMeshOptimizer class.
    This class will optimize a (naive) voxel buffer (a plain 3-dimentional ARRAY - declared at voxels.pas file) to an optimized mesh structure (use the LoadVoxel() member function).
    Then the mesh structure can be rendered with the RenderGL() member function.



    Screenshots:







    Last edited by Jimmy Valavanis; 14-11-2018 at 12:38 PM. Reason: Update lost image links

  2. #2
    I don't see any source in the file.

  3. #3
    Quote Originally Posted by Thyandyr View Post
    I don't see any source in the file.
    Go here:

    https://sourceforge.net/projects/del...D_VOXEL_1.3.1/

    You'll see there's two files, one with the binaries and one with the source.
    Last edited by Akira13; 22-10-2017 at 03:37 PM.

  4. #4
    Quote Originally Posted by Akira13 View Post


    Go here:

    https://sourceforge.net/projects/del...D_VOXEL_1.3.1/

    You'll see there's two files, one with the binaries and one with the source.
    Thanks. Pretty confusing site that sourceforge.

    I get 'Left side cannot be assigned to' in pngimage.pas line 2769:
    Code:
    Byte(Dest^) := fOwner.GammaTable[pByte(Longint(Src) + 2)^]; inc(Dest);
    Replacing pChar with pAnsiChar in whole file helps.

    Need also to comment out the third line
    Code:
      InitOpenGL;
      ReadExtensions;
    //  ReadImplementationProperties;
    To get it working. After that compiles nice on Berlin 10.1
    Last edited by Thyandyr; 22-10-2017 at 06:18 PM.

  5. #5
    So, I ported the application to Lazarus this morning as I didn't feel like reinstalling Delphi on my home computer just to test it out.

    I've attached a zip file with the complete project source folder if anyone else using Lazarus wants to build it themselves.

    Just so no one gets confused: this version uses FPC's ZStream unit and built-in PNG handling classes, so I didn't include any of the ZLib object files or PNG-related units from the original repository as they're no longer used at all. Also, FPC/Lazarus obviously doesn't use or need FastMM, so I didn't include those files either.

    Lastly, @Jimmy: Feel free to take this version of the code and make a separate Lazarus tree on your SourceForge page, if you want.
    Attached Files Attached Files
    Last edited by Akira13; 22-10-2017 at 11:24 PM.

  6. #6
    Quote Originally Posted by Akira13 View Post
    So, I ported the application to Lazarus this morning as I didn't feel like reinstalling Delphi on my home computer just to test it out.

    I've attached a zip file with the complete project source folder if anyone else using Lazarus wants to build it themselves.

    Just so no one gets confused: this version uses FPC's ZStream unit and built-in PNG handling classes, so I didn't include any of the ZLib object files or PNG-related units from the original repository as they're no longer used at all. Also, FPC/Lazarus obviously doesn't use or need FastMM, so I didn't include those files either.

    Lastly, @Jimmy: Feel free to take this version of the code and make a separate Lazarus tree on your SourceForge page, if you want.
    That was fast

    Uploaded: https://sourceforge.net/projects/del...XEL_1.3.2_FPC/

  7. #7
    Great!

    Quote Originally Posted by Thyandyr View Post
    Thanks. Pretty confusing site that sourceforge.
    Not so confusing as GitHub is.

    I'm serious. I don't know why GitHub is so popular (except that SF had problems in the past) because it is a mess. I have problems finding my own branches! Anyway I don't want to start a war, so use whatever you are comfortable with.
    Last edited by Ñuño Martínez; 24-10-2017 at 11:09 AM.
    No signature provided yet.

  8. #8
    A new version (1.5.1) is available.

    Download: https://sourceforge.net/projects/del...D_VOXEL_1.5.1/ (source code and Windows executable)

    This new version add an option to easily create sprites from a voxel.
    Sprites are exported in 8 or 16 angles, as PNG images inside a PK3(ZIP) file.






  9. #9

  10. #10
    Everytime I see an update here, I wonder to reboot my old voxel engine. I'm sure Thyandyr's one is great, but I prefer a more classic approach.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •