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
Software Rendered Voxel World
Re: Software Rendered Voxel World
Looks interesting, but when compiling ascii2.bas the program crashed.
Re: Software Rendered Voxel World
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.h4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: Software Rendered Voxel World
same hereh4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.
if I replace the macros setpixel and getpixel with pset and point it works.
looks like x,y are out of range !
Joshy
Re: Software Rendered Voxel World
I wonder why it works on my computers then.D.J.Peters wrote:same hereh4tt3n wrote:Looks interesting, but when compiling ascii2.bas the program crashed.
if I replace the macros setpixel and getpixel with pset and point it works.
looks like x,y are out of range !
Joshy
What did I do wrong with the macros? How can I fix them?