ObjReader Community

WIP => WIP => Topic started by: Patrice Terrier on November 04, 2018, 07:33:45 pm

Title: Mil_Mi-24D
Post by: Patrice Terrier on November 04, 2018, 07:33:45 pm
Mike

Here is a low poly model you may find handy for test purpose in debug mode.
So far we are unable to apply roughness and metallic textures altogether, i did used metallic in map_Ks to have the reflection effect on the lateral window glass and the chrome parts.
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 04, 2018, 10:43:00 pm
Thanks for sharing the model, Patrice! :)

Regretfully the model's normal map is not an OpenGL tangent space map that we use in ObjReader but rather a MS Direct3D tangent space normal map with a different orientation of coordinate axes. That's why the surface bumping effect is poor and lighting looks weird (the model looks kinda sideways-lit rather than front-lit) when the roughness texture is applied, as it should, in place of classic specular map in ObjReader's uber shader.

Theoretically it's possible to convert that normal map's axes to the order OpenGL expects them to be in and re-normalize the map after conversion, but I don't have such a converter at hand ATM. :(
Title: Re: Mil_Mi-24D
Post by: Patrice Terrier on November 05, 2018, 09:28:34 am
Here we are…

I did from my best to preserve the individual .fbx meshes, while using the same single texture.

We should use another wallpaper, because indeed it is a static model (not flying).

Note: If you want you can animate the rotors, look at the end of the .mtl file, but then the main rotor blades should be reworked, i already fixed the space between the main and rear rotor, because in the real world the one from the original .fbx will probably get broken  ::)
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 03:15:06 pm
This one looks better. :)

Yeah, flying blades should be bent slightly upwards else they won't look natural.

Thank you!
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 04:33:19 pm
The DL speed is exceptionally slow today -- 80 to 120 KB/sec... :(
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 04:54:39 pm
Re. PBR in ObjReader, there is a lot of PBR formula stuff all over the net but surprisingly few ready-made shaders.

I was able to find only two of them we might potentially use but both are built around custom projection matrices generated by the viewer camera class rather than built in OpenGL. Both may need quite a bit of work trying to integrate them in our existing code...
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 05:03:31 pm
The flying model is excellent! 8)

The Oblivion wallpaper looks a bit out of place. OTOH one could find some similar Syrian scenery shots where the Russian combat aircraft would now look more organic and up to date. ;)

I think your custom synthetic metallic/rougness map should be renamed DefaultMaterial_Specular.png. Let the original textures stay unmodified as they are.
Title: Re: Mil_Mi-24D
Post by: Patrice Terrier on November 05, 2018, 07:30:38 pm
Here is the release candidate version (followed your advice).
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 09:33:17 pm
Downloading at the same miserable speed. :(

And also both of your last screenshots won't enlarge for me though reporting a number of views...
Title: Re: Mil_Mi-24D
Post by: Michael Lobko-Lobanovsky on November 05, 2018, 09:43:47 pm
!!! TERRIFIC !!! 8)

Thank you, Patrice. This is how it is now in Syria and Eastern Ukraine because of this pygmy dickhead in the Muscovite Kremlin! >:(