Page 1 of 1

Screenshot of the Month, July 2016 [Winner announced]

Posted: Tue Jul 05, 2016 4:21 pm
by Cube_
Normally I'd put a poll here but it seems there was only one entry, so congratulations to Squarefox for his winning entry "Nightork Adventures - Beyond the moons of Shadalee"

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Thu Jul 21, 2016 11:25 pm
by Squarefox
Nightork Adventures - Beyond the moons of Shadalee:
Image

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Mon Aug 08, 2016 8:02 am
by chronologicaldot
lol, SquareFox wins ala only entry. Slow month? X)

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Mon Aug 08, 2016 9:47 pm
by Vectrotek
Hey, those cool voxels deserve it!
I'd love to see some of the code.
It looks almost like what BAW is doing but with the normals smoothed?

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Tue Aug 09, 2016 6:08 pm
by Squarefox
Hi,

these voxel were transformed into a mesh. Their vertex coordinates were warped and smoothed to get an unregular look.
The mesh uses vertex normals. There are several ways to weight them.
The weighting is e.g. possible by area, by angle and uniform. Nightork uses per area weighting.
Additionally the look is smoothed by a special lighting:

Code: Select all

 
gl_FragColor.xyz = (1.0-NdotL)*mHalfColor
 
with L the direction from the vertex to the camera and N the normal.
This blends the color from 0 to 180 degrees, instead of the 90 degrees of the phong lighting.
Also you get some sort of shadow from the camera to the cave and some indirect lighting effect, because of the minus in the formula.

You can get more of the sourcecode here:
http://dungen.squarefox.net
where you can download the DunGen library for Irrlicht.
Nightork uses a customized version of it (without the corridors, but with monster placement).
The most of the conversion code Voxel -> Mesh is in MeshCave.cpp.
The lighting is in the shaders, Shader.h.

Kind regards,
Squarefox

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Tue Aug 09, 2016 7:06 pm
by Vectrotek
Cool.. Thanks!

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Tue Aug 09, 2016 8:05 pm
by CuteAlien
Hm, aaammmsterdddam in Holidays?

Re: Screenshot of the Month, July 2016 [Submissions Open]

Posted: Wed Aug 17, 2016 4:09 am
by Cube_
Sorry about that, I haven't had access to a stable internet connection due to some financial matters - I'll get the august one up now, a tad belated but it is what it is, I'll also put up the poll (well, it won't be much of a poll - one option, winner by default really) for this one and close the one prior to that.

Re: Screenshot of the Month, July 2016 [Winner announced]

Posted: Thu Aug 18, 2016 3:52 pm
by Squarefox
Hi,

thanks very much! My first competition win, even though I made the only entry :wink:.
I do it like Vectrotek (see June 2016) and have a whisky now :mrgreen: .

Kind regards,
Squarefox

Re: Screenshot of the Month, July 2016 [Winner announced]

Posted: Thu Aug 18, 2016 5:21 pm
by Cube_
hey, just entering alone is more than most people do *cough*

(yes, this is referring to me, I've been meaning to for ages now but I don't have enough to showcase and I keep postponing fixing that)