Software Rendered Voxel World

User projects written in or related to FreeBASIC.
Boromir
Posts: 447
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System
Contact:

Software Rendered Voxel World

Postby Boromir » Sep 28, 2017 16:02

This is a voxel world renderer. It's not really very usable but it was fun to make and it looks sort of nice.
The code is included in the zip file.

The current world size is 29,750,000 cubes.
Only something like 200,000 of those cubes are rendered per frame.

Key Y toggles rasterization
Key U toggles wireframe
Key I toggles fog

Mouse and WASD move around (camera control is wonky)
TFGH control camera rotation.

https://drive.google.com/file/d/0BxwvH1 ... sp=sharing

Image
Image
h4tt3n
Posts: 682
Joined: Oct 22, 2005 21:12
Location: Denmark

Re: Software Rendered Voxel World

Postby h4tt3n » Sep 29, 2017 19:19

Looks interesting, but when compiling ascii2.bas the program crashed.
Boromir
Posts: 447
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System
Contact:

Re: Software Rendered Voxel World

Postby Boromir » Sep 30, 2017 2:02

h4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.

Strange. It works for me on my Windows XP laptop and on my Ubuntu Desktop. I'll have to look through the code and see if I can find anything.
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: Software Rendered Voxel World

Postby D.J.Peters » Sep 30, 2017 3:07

h4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.
same here
if I replace the macros setpixel and getpixel with pset and point it works.
looks like x,y are out of range !

Joshy
Boromir
Posts: 447
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System
Contact:

Re: Software Rendered Voxel World

Postby Boromir » Oct 09, 2017 14:45

D.J.Peters wrote:
h4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.
same here
if I replace the macros setpixel and getpixel with pset and point it works.
looks like x,y are out of range !

Joshy


I wonder why it works on my computers then.
What did I do wrong with the macros? How can I fix them?

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests