News for hackers. Stuff that matters.
Re:Every Version of Voxel Quest by danso on Saturday November 05, 2016 @09:06PM (#12882859)
Wow, those gorgeous screenshots that you went to the trouble to include, it's almost as if you're tempting people to take you up on continuing your open source work.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @09:16PM (#12882896)
Or taunting them...
Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @12:15AM (#12883478)
I took a stab at importing this into git. I've only got the voxelquest files, and not the others in there right now. I haven't looked it over too well but it was all done in zsh, so I might have made a mistake somewhere.

https://github.com/simcop2387/voxelquest

EDIT: check it in a few moments, it's still uploading.

Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @03:48AM (#12884192)
I've just redone this setting GIT_AUTHOR_NAME and GIT_AUTHOR_DATE so that it'll reflect the proper author and date, giving a nicer looking history.

This also means I did a force push, so if anyone checked it out with the intent of using it, then you should start over.

(also, i posted this again before it had finished pushing. give it a few minutes)

Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @04:53PM (#12887283)
and yet again, it looks like i didn't have all the archives when i did this. only some of them. I'm going to attempt to do this again with all the files from the torrent but i suspect github won't take such a large archive.
Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @07:16PM (#12887908)
So once I have all the archives, it ends up 2.4gb. Github won't take that without contacting them or paying for it, so for now I've uploaded it onto my own server. I'll make a gpg signature if anyone cares.

https://www.simcop2387.info/voxelquest-git.tar.xz

    md5sum  9383b6a5962b474de5eac9ab35d7eeb1  voxelquest-git.tar.xz
    sha1sum  ae051d42fe40037a13efd7a1c591b70f37e6aecb  voxelquest-git.tar.xz
    sha256sum  1e995a2c2533e5ae3f84c82bbb170d217d1a9b3cf834f837723109439b5bb99e  voxelquest-git.tar.xz
    sha512sum  496821b6938e65fd452d50855abf70171409cdac9a200873f65760c4e9b2d163b64e9e523fc54b8093bbbe923a42e61e3a4c7244e12d64a97b22b8c28d0710ab  voxelquest-git.tar.xz
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @08:17PM (#12888143)
Awesome, thanks. If you need any money to support the server, let me know. I can also buy you the required github plan if the price isnt outrageous. :)
Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @11:32PM (#12888830)
I wouldn't worry about it. I dont expect many people to fetch it and I have 1tb of bandwidth per month on that server. I hardly use any of it.

edit: 3tb actually, must have had it upgraded and not noticed.

Re:Every Version of Voxel Quest by bsagdiyev on Sunday November 06, 2016 @01:54AM (#12883752)
Adding on: if anyone feels the need to hoard all 11GB of the archives like I do I've made a torrent to soften the download a bit. magnet:?xt=urn:btih:e52b16bdf2eda8b678d5104517dba6ba05fb6089&dn=vqfiles
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @02:48AM (#12884053)
Thanks I'll repost this and other links when I check back in the morning. :)
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:23AM (#12883492)
Awesome, I'll take a look in a bit and link it :) Appreciate it.
Re:Every Version of Voxel Quest by adrianm on Saturday November 05, 2016 @08:37PM (#12882753)
This is a beautiful gesture. Thank you for releasing this!
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @08:43PM (#12882774)
Not sure I would qualify it as beautiful, but you're welcome regardless!
Re:Every Version of Voxel Quest by AnthonBerg on Sunday November 06, 2016 @06:23AM (#12884608)
I'm with adrianm on this one. Thank you.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @10:21PM (#12883107)
Important update, looks like Google drive limits file size to 20MB for public files. I will get a workaround up in a second.... (edit, fixed, drop box link is now on the site and appears to be serving larger files, although many are still in the process of uploading)
Re:Every Version of Voxel Quest by cheiVia0 on Saturday November 05, 2016 @11:02PM (#12883234)
Do you plan on updating the github repo to this?

Moving VoxelQuest to a github organisation might be good too.

Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @11:09PM (#12883268)
Yes, at some point, and looks like some others are already doing this. This is more of a short term patch between now and then, as I already feel I have been sitting on the source for too long.
Re:Every Version of Voxel Quest by Mathnerd314 on Saturday November 05, 2016 @11:39PM (#12883379)
Random idea of the day: Nethack + Voxel Quest Engine

edit: an old idea: https://news.ycombinator.com/item?id=6359100

Re:Every Version of Voxel Quest by Eiriksmal on Sunday November 06, 2016 @12:23AM (#12883493)
Dwarf Fortress + Voxel Quest would only run on supercomputer clusters deep inside university research centers. But those 1-2 brave souls to get it working would surely experience the ultimate of pleasures.
Re:Every Version of Voxel Quest by pault on Sunday November 06, 2016 @01:54PM (#12886463)
I've been wanting a voxel quest DF client since I first saw voxel quest on HN. Does the voxel rendering really add that much overhead? I assumed that the majority of the rendering would be offloaded to the GPU, allowing the CPU to continue choking on how many well crafted tables the dorfs have seen today vs. the condition of their socks.
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @02:30PM (#12886629)
Most of the versions rely more heavily on the GPU. The fluid simulation runs on the CPU and is actually quite intensive (no surprise there). The most recent version uses the CPU to generate voxels, although it is also the least "stable" version and most people probably won't use it, but it is also the most flexible version (no GPU shader instruction limit, easier to run offline, etc).
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @11:52PM (#12883419)
Scorched Earth is another popular suggestion :)
Re:Every Version of Voxel Quest by tbirdz on Saturday November 05, 2016 @10:20PM (#12883100)
Very interesting. Do you have resources you could recommend about working with/programming with voxels? Or how using voxels differs from using polygons in practice?
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @10:58PM (#12883225)
Voxels are ideal for representing volumetric objects and perform better in some edge cases for alternative rendering methods. Polygons are faster in most cases and tend to perform better for dynamic objects (i.e. a mesh with skeletal animation). Many claim that voxels have a more "pure" or timeless aesthetic, in the same way pixel art does over vector art, but that is subjective of course.

My recommendation is to dive in and code the simplest thing you can think of. When I first started this, I built a software voxel renderer, isometric, using just a pixel buffer (the original intention was to be able to dynamically create isometric pixel art).

http://www.gavanw.com/uploads/9/5/4/0/9540564/218641_orig.pn...

I later ported it to the GPU (much harder, and much much faster).

I am mostly "self taught" but would be lying if I said the wealth of information on the web did not help (particularly when hitting obscure bugs). Anyhow, the point is the best part of the journey, in my opinion, is discovering things for yourself, even if you are reinventing the wheel. :)

Re:Every Version of Voxel Quest by cousin_it on Sunday November 06, 2016 @04:06AM (#12884225)
Your isometric screenshots like this one [1] give me the idea of a 3D Lemmings-like game. Throngs of little critters walking stupidly through the environment, turning at right angles, sometimes building little cubical stairs, sometimes blowing themselves up to create spherical holes in everything. I wonder if that's the right gameplay idea for voxels.

[1] http://www.voxelquest.com/uploads/9/5/4/0/9540564/5660133_or...

Re:Every Version of Voxel Quest by david-given on Sunday November 06, 2016 @08:14AM (#12884919)
The bad news is that there already was a Lemmings 3D. It wasn't a hit:

https://www.youtube.com/watch?v=av994EHazuo

You'll want to try and avoid its mistakes!

Re:Every Version of Voxel Quest by cousin_it on Sunday November 06, 2016 @12:56PM (#12886213)
That was based on Minecraft-like big blocks though, not small voxels.
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @09:42AM (#12885260)
I enjoyed lemmings 3D, it was clunky but ahead of its time :)
Re:Every Version of Voxel Quest by vanderZwan on Sunday November 06, 2016 @07:10AM (#12884746)
I think that sounds like a perfect match, actually.
Re:Every Version of Voxel Quest by tbirdz on Saturday November 05, 2016 @11:08PM (#12883263)
Cool! I'll definitely have to try it out when I get some free time. And hey, there's nothing wrong with reinventing the wheel when you're just trying to have some fun!
Re:Every Version of Voxel Quest by randyrand on Sunday November 06, 2016 @04:13AM (#12884241)
how do you render your voxels? you render so many, what's your technique?
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:43PM (#12886163)
You can find some discussion on rendering techniques here [1] and here [2]

[1] http://www.voxelquest.com/news/how-does-it-work

[2] http://www.voxelquest.com/news/how-does-voxel-quest-work-now...

Re:Every Version of Voxel Quest by jaunkst on Sunday November 06, 2016 @04:09AM (#12884229)
Maybe allow others to contribute on a private repo. I love this project and I also am having a hard time with my personal projects but when I do I would love to contribute to this, as I am sure many other skilled developers would be. Just a thought. Open source would be great but even private election could get you to a release and fit your business model sooner.
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:49PM (#12886186)
I have no business model :) Its all just for fun at this point. I made the mistake already of trying to turn my hobby into a business.
Re:Every Version of Voxel Quest by jaunkst on Monday November 07, 2016 @08:38PM (#12896917)
Well I think it's great. Nurture it as best you see fit. Definitely an interesting project in my books.
Re:Every Version of Voxel Quest by imdsm on Sunday November 06, 2016 @07:13AM (#12884754)
Ok, time to integrate this with Dwarf Fortress.
Re:Every Version of Voxel Quest by intended on Sunday November 06, 2016 @09:14AM (#12885144)
Oh dear lord Moore, in who's law we trust, protect our processor from the conflagration we art about to commend it unto.
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:42PM (#12886157)
'Tis the season (to use your computer as an alternative space heater)
Re:Every Version of Voxel Quest by partycoder on Saturday November 05, 2016 @09:00PM (#12882836)
Creating assets for voxel games can be a bit challenging. I wonder what they came with to solve this problem.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @09:12PM (#12882878)
Aside from the sprites, which are 2D pixel art I bought from a third party, everything is generated algorithmically. You can find many examples of people doing this kind of algorithmic generation, sometimes to great effect, on shader toy (i.e. https://www.youtube.com/watch?v=yMpG6qEb8js) and other places. I went down the path of procedural generation simply because I am not a great artist, and generating these assets by hand would have been pretty much impossible (given that they are volumentric and contain millions of unique voxels).

For technical people, I find this method of generating art to be quite empowering. If you can describe things in logical/mathematical terms, you can generate whatever your mind can think up. It generally is not going to win over a skilled artist for most applications, but even traditional pipelines often employ many procedural techniques.

Re:Every Version of Voxel Quest by Ericson2314 on Sunday November 06, 2016 @10:56AM (#12885600)
I hope the linked post gets updated with an official repository once one is so deemed. Something about being a programmer would make me inordinately pleased with such bookkeeping.
Re:Every Version of Voxel Quest by time4tea on Monday November 07, 2016 @07:01AM (#12890416)
Slightly OT... this is amazing and a generous contribution. I'm wondering though how come no version control from the start? For me this is the very first thing, just before setting up some sort of CI build... for any project at work or home. I kinda thought that this was universal. is it games that don't do this...or is there a wider population that manage versioning by daily or weekly zip files?
Re:Every Version of Voxel Quest by gavanwoolery on Monday November 07, 2016 @01:01PM (#12893222)
I have using version control since about 2006, but am only recently becoming a better git user. In retrospect, if I knew what I know now about git, I would have of course done it in a heartbeat. For a one man project I was hesitant to use other methods due to large, non-text files (which of course you can work around, with a little hassle)
Re:Every Version of Voxel Quest by Eiriksmal on Sunday November 06, 2016 @12:17AM (#12883483)
You're welcome for giving you this idea, Gavan. Where's the h/t, brah!?

PS: Amazon sucks at life and my package is still lost. Can you bring some spare thermal grease on Monday?

Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:26AM (#12883502)
Hat tip to Eric for any brilliant idea I ever had. Also, I don't know if I still have any spare thermal grease, but I will check.
Re:Every Version of Voxel Quest by akavel on Saturday November 05, 2016 @09:45PM (#12883000)
@gavanwoolery - is there a chance you could also upload a single file with all the smaller ones (snapshots) inside? GDrive is taking forever for me on "Preparing download - Zipping" message... Also, I don't seem to see any 70MB files on the list?...

Tx!

Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @10:47PM (#12883187)
Looks like google drive limits public files to 20 MB! Obviously I was not aware of this limitation, but I am working on a fix right now.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @10:13PM (#12883078)
Will do...I will also attempt to make a few "ready to run" versions with necessary dlls
Re:Every Version of Voxel Quest by wjnc on Monday November 07, 2016 @03:00AM (#12889573)
How unique is @gavanwoolery? Would something like 'reverse kickstarter' be viable for building an engine and small game out of this? I for one would happily donate for any programmer building this towards an OSS-engine and demo game. If we 'instruct' the programmer to build MVP-api's could something like that work? Then others could pick that up and build from there. I know I am massively underestimating the thousands of hours put in and to be put in, but somebody any ballpark on hours etc?
Re:Every Version of Voxel Quest by jokoon on Sunday November 06, 2016 @05:20AM (#12884418)
I once downloaded and tried a version, did not seem to render correctly. Maybe my ati 6870 is a little slow, I don't know. I'm still excited about this, gpu voxels sound powerful.
Re:Every Version of Voxel Quest by Lord_Nightmare on Sunday November 06, 2016 @11:25AM (#12885767)
The reason for this (at least as I understand it, which could very well be incomplete and/or wrong, as I have little background in dealing with shaders) is that the version on itch.io (which is compiled from source code on github at https://github.com/gavanw/voxelquestiso or https://github.com/gavanw/vqisosmall ) has a bug in (at least) one of the shaders, compiled from /src/glsl/GenerateVolume.c:

https://github.com/gavanw/voxelquestiso/issues/10

The bug (or how I understand it, which, again, could be wrong) is that that specific shader is mixing sampler2D and sampler3D uniforms, which is forbidden by the Opengl 3.3 shader spec.

The reason it works at all on NVidia cards is that apparently NVidia's shader compiler plays fast and loose with that part of the shader specification and allows mixing sampler2D and sampler3D elements, while ATI/AMD and Intel's shader compilers will fail to compile that shader. Failure to compile the shader results in voxel quest only rendering the 'ocean' tiles, tree tiles (without lighting), and building tiles (again, without lighting), and everything else as background/sky gradient.

Someone committed a "fix" to one of the github trees which more or less patches out that shader or the offending part of it, but this just means it renders the wrong way on ALL cards, including NVidia ones.

Hopefully it will eventually be fixed properly in an opengl shader spec compliant way.

LN

Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:26PM (#12886091)
Yep agreed - I found that someone's fix broke it, and then I got employed and did not have time to go in and fix it, but you can look at older commits in the repository. AMD drivers may encounter fewer bugs in newer versions of the code, but I am not certain. I will try to clean up these things over time, when I get it :)
Re:Every Version of Voxel Quest by andybak on Sunday November 06, 2016 @03:39AM (#12884174)
Do these run in any usable form for those of us who wish to have a look? i.e. is there merit in someone providing an .exe (or is it worth non-game-devs figuring out how to build the thing)?
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:27PM (#12886095)
They do run, but I will have to provide instructions regardless as it is a bit confusing without knowing all the controls (i.e. how to drop entities into the world, take control of them, toggle debug commands, etc).
Re:Every Version of Voxel Quest by andybak on Monday November 07, 2016 @05:00AM (#12889948)
Maybe start a wiki for docs? That way other people can fill in the gaps.

So. Any chance of a binary or two? :-)

Re:Every Version of Voxel Quest by gavanwoolery on Monday November 07, 2016 @01:01PM (#12893229)
As soon as I get a little bit of time :)
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @03:16PM (#12886834)
Also I should add I will probably push out some more "stable" ready to run builds soon. Not all snapshots are stable or even necessarily boot up.
Re:Every Version of Voxel Quest by smlacy on Saturday November 05, 2016 @08:49PM (#12882805)
As a Google Drive folder of ZIP files.

VAT DA FUK!

Re:Every Version of Voxel Quest by web007 on Saturday November 05, 2016 @09:25PM (#12882926)
Snapshots are so pre-CVS.

If someone else hasn't already done it I'm gonna pull these into a git repo to see how everything changes.

Re:Every Version of Voxel Quest by simcop2387 on Sunday November 06, 2016 @12:26AM (#12883500)
Just did this a few minutes ago, looks like i got them all in order so viewing the diffs should be doable.

https://github.com/simcop2387/voxelquest

Re:Every Version of Voxel Quest by Mathnerd314 on Sunday November 06, 2016 @12:08AM (#12883459)
Step-by-step guide: http://stackoverflow.com/questions/2759858/is-there-a-way-to...

The hard part is writing down all the commit messages, reconstructing the development from twitter / blog posts.

Re:Every Version of Voxel Quest by pault on Saturday November 05, 2016 @09:33PM (#12882955)
Please do. I'm surprised there isn't already one.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @10:16PM (#12883086)
Awesome, thanks! Also, after getting back into heavy git usage these days, I appreciate its value much more. Wish I had started a private repository from the beginning, but too late now of course.
Re:Every Version of Voxel Quest by gavanwoolery on Saturday November 05, 2016 @08:56PM (#12882828)
MEIN GOTT DER EIST FILES EWERYVER!

Ooh...I could instead zip them all into one giant file and turn it into a torrent. (evil laughter)

Re:Every Version of Voxel Quest by monkpit on Saturday November 05, 2016 @09:06PM (#12882861)
Source control is for wimps
Re:Every Version of Voxel Quest by mrfusion on Sunday November 06, 2016 @09:54AM (#12885318)
How hard would it be to port this to the vive?
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:39PM (#12886144)
Very hard! Most modern hardware will already struggle to keep up to speed, and not dropping frames is super important for VR. But if you lower detail settings appropriately, it is definitely "doable" - additionally you will have to work around any screenspace effects like SSAO.
Re:Every Version of Voxel Quest by ComodoHacker on Sunday November 06, 2016 @10:04AM (#12885358)
Oh no, not PNG screenshots, please!
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @12:40PM (#12886147)
you're welcome >:)
Re:Every Version of Voxel Quest by ComodoHacker on Monday November 07, 2016 @02:03AM (#12889411)
Not sure what you mean. Is there a way to submit updates to your website?
Re:Every Version of Voxel Quest by z3t4 on Sunday November 06, 2016 @01:42AM (#12883887)
dont forget documentation
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @02:54AM (#12884076)
variable names as documentation! (runs away)
[dead]
Re:Every Version of Voxel Quest by kybernetikos on Sunday November 06, 2016 @09:14AM (#12885140)
I haven't looked, so I have no idea whether I agree or disagree, but I don't actually care - it's low value comments like these that discourage people from sharing their work with the world. I would much rather live in a world where sharing was easier rather than harder.
Re:Every Version of Voxel Quest by gavanwoolery on Sunday November 06, 2016 @09:45AM (#12885272)
I concur :) As mentioned, in the short term it was either no source or release it as is. I'll try to release cleaner versions over time.
Re:Every Version of Voxel Quest by pani00 on Sunday November 06, 2016 @12:01PM (#12885959)
I am looking forward to it. Don't get me wrong, I think the stuff you did there is impressive and I can't imaging where it gets when you have a proper source code with people contributing.

I would start with putting header guards in the files and remove the f_xxxx_ from your file (e.g. advanced-renamer can do that for you). Another suggestion would be to put everything the .exe needs into the "bin"-folder, currently your .exe loads some shader from your "src"-folder (or I did something wrong). I would also make a "third-party" folder in "src" and put all third-party stuff in there (also the LodePNG, zlib and bullet stuff in your main.cpp).

Re:Every Version of Voxel Quest by gavanwoolery on Monday November 07, 2016 @01:02PM (#12893244)
Agreed - lots of strange source organization in there. At this point I would organize it much better than I had. :)
Re:Every Version of Voxel Quest by lomnakkus on Sunday November 06, 2016 @05:19PM (#12887419)
Kudos for just releasing instead of handwringing over anthing more complicated. I find that it's surprisingly hard to do!
Re:Every Version of Voxel Quest by gavanwoolery on Monday November 07, 2016 @01:02PM (#12893242)
It was!