Page 2 of 5

Re: Vulkan support

Posted: 26 Oct 2016, 22:29
by Vincent
I've played Warzone 2100 when I was young so contributing is rather a natural step. And Vulkan makes a good reason to work on it.

Another screenshot :
wzvulkan.PNG
Currently alpha effects (particles) and button are still missing, otherwise I think I've implemented everything.

Edit:
Ok implementing the others pipeline state didn't take long, I've mostly finished the vulkan implementation. The only things not working is color masking on unit and mipmapping.

Re: Vulkan support

Posted: 06 Nov 2016, 01:49
by Vincent

Re: Vulkan support

Posted: 16 Nov 2016, 18:24
by red96x
Maybe you can apply some changes to the terrain rendering?

Re: Vulkan support

Posted: 14 Apr 2017, 06:43
by Ezio
is it pushed?

Re: Vulkan support

Posted: 04 Jun 2017, 18:49
by Tzeentch
How you getting on Vinc?

Re: Vulkan support

Posted: 02 Sep 2017, 20:37
by Vincent
I'm reworking my code to make the changes less invasive.
Basically I'm wrapping gl calls Inside an API agnostic interface (that's the purpose of the wrap_gl branch whose commits are being merged/tested) without changing rendering logic (I'm keeping terrain rendering code as it, I'm not adding change to lighting).
On top of that I'm backporting the vulkan work I did several month ago.

Re: Vulkan support

Posted: 04 Sep 2017, 23:56
by vexed
Also... https://twitter.com/icculus/status/902386119236612096 :)

So, SDL will soon support Vulkan. :)

Re: Vulkan support

Posted: 08 Sep 2017, 00:35
by MaNGusT
Guys... I don't want to be annoying but when artists will get the full support of tangent-space normal mapping? I mean a support not only for models but for the terrain too. This will make the game much more eye-attrative and will even turn the game experience to a new level. It's a very old graphical technology, comparing to modern games.
I'm waiting it for about 3 years. And I'm still the only one here who could and know how to make normal maps for current terrain's diffuse textures. For obivious reasons.
Sorry for off-topic.

Re: Vulkan support

Posted: 09 Sep 2017, 18:20
by Vincent
What is needed for tangent space normal mapping ? With shader it's rather easy to add normal map support to terrain.

Re: Vulkan support

Posted: 10 Sep 2017, 02:41
by MaNGusT
Vincent wrote:What is needed for tangent space normal mapping ? With shader it's rather easy to add normal map support to terrain.
It requiers precompileted normals stored in a model file. 3d software generates and saves normals to models, then we use WMIT tool to convert our models to pies(no normals) or wzm(store normals but this file format is not finished). As for terrain, this work has to be done by a map creating tool.
In conclusion: we need an upgraded file formats for models and maps that will store right normals.
Currently we generate normals on-the-fly and they are not right(they are "flat"), well, they are right only for the current normal mapping but this technique isn't
universal.
Tangent-space normal mapping is a standard in game industry because of many reasons, one of these is that tangent space normal maps(textures) can be easily edited with 2d software like photoshop.

Re: Vulkan support

Posted: 10 Sep 2017, 15:47
by moltengear
In the real world, we see a big difference between the lighted areas of the surface and the shadows.
image.jpg
image.jpg (9.82 KiB) Viewed 23252 times
how does the graphics look in this game?
02.jpg

Re: Vulkan support

Posted: 10 Sep 2017, 15:54
by moltengear
Incorrect display of shadows.
01a.jpg
02a.jpg
03a.jpg

Re: Vulkan support

Posted: 10 Sep 2017, 16:22
by moltengear
The illumination of the surface does not change due to the position of the camera.
This is the second problem.
field.jpg
room.jpg
render (2).jpg
It's very easy to implement!

Re: Vulkan support

Posted: 24 Sep 2017, 17:27
by Vincent
I know what a normalmap in tangent space is, but I don't see what's preventing such support in wz2100 ; it's possible to generate normals and tangents at load time.

By the way the shadow missing on objects is a bug, we draw shadow after terrain but before any object that's why they're missing.

Re: Vulkan support

Posted: 25 Sep 2017, 09:05
by MaNGusT
Vincent wrote:I know what a normalmap in tangent space is, but I don't see what's preventing such support in wz2100 ; it's possible to generate normals and tangents at load time.
we discussed it already. You can't generate right normals at load time because these normals will not have so called "smooth groups" - a place on edge of a model where a normal breakes into two normals to create the sharp edge. We use these technique when creating most of the models. So, the pie format have to be upgraded to store normals of a 3d creating tool.

As for the terrain, yeah, I think we could generate normals at load time and place all map's tris in one smooth group (no sharp edges). When I will get a test build whith these improvements, I can start to work on terrain normal maps.
When I was creating current diffuse textures for terrain, I did some experiments in editor with normal maps, looked awesome and was easy for me to edit them in a 2d software.