Software Rendered Voxel World

User contributed sources that have become inactive, deprecated, or generally unusable. But ... we don't really want to throw them away either.
Post Reply
Boromir
Posts: 463
Joined: Apr 30, 2015 19:28
Location: Oklahoma,U.S., Earth,Solar System
Contact:

Software Rendered Voxel World

Post by Boromir »

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: 698
Joined: Oct 22, 2005 21:12
Location: Denmark

Re: Software Rendered Voxel World

Post by h4tt3n »

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

Re: Software Rendered Voxel World

Post by Boromir »

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: 8586
Joined: May 28, 2005 3:28
Contact:

Re: Software Rendered Voxel World

Post by D.J.Peters »

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: 463
Joined: Apr 30, 2015 19:28
Location: Oklahoma,U.S., Earth,Solar System
Contact:

Re: Software Rendered Voxel World

Post by Boromir »

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?
Post Reply