Screenshot of the Month, July 2016 [Winner announced]

Competitions for Irrlicht or 3D in general.
Irrlicht Screenshot of the Month: Winner for January, vote for February, submit for March
Post Reply
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Screenshot of the Month, July 2016 [Winner announced]

Post 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"
Last edited by Cube_ on Wed Aug 17, 2016 4:19 am, edited 2 times in total.
"this is not the bottleneck you are looking for"
Squarefox
Competition winner
Posts: 113
Joined: Tue Aug 19, 2008 6:46 pm
Location: Delta quadrant, Borg nexus 0001
Contact:

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

Post by Squarefox »

Nightork Adventures - Beyond the moons of Shadalee:
Image
chronologicaldot
Competition winner
Posts: 684
Joined: Mon Sep 10, 2012 8:51 am

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

Post by chronologicaldot »

lol, SquareFox wins ala only entry. Slow month? X)
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

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

Post 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?
Squarefox
Competition winner
Posts: 113
Joined: Tue Aug 19, 2008 6:46 pm
Location: Delta quadrant, Borg nexus 0001
Contact:

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

Post 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
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

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

Post by Vectrotek »

Cool.. Thanks!
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post by CuteAlien »

Hm, aaammmsterdddam in Holidays?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

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

Post 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.
"this is not the bottleneck you are looking for"
Squarefox
Competition winner
Posts: 113
Joined: Tue Aug 19, 2008 6:46 pm
Location: Delta quadrant, Borg nexus 0001
Contact:

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

Post 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
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

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

Post 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)
"this is not the bottleneck you are looking for"
Post Reply