SWBFGamers

Modding for the Original SWBF1 and SWBF2 => 3D-Modeling, Animation and Texturing => Topic started by: Giftheck on December 06, 2017, 05:42:29 AM

Title: Rendertype 28
Post by: Giftheck on December 06, 2017, 05:42:29 AM
Very simple one: I've been constructing weapons for a while now. I noticed othe materials for imported weapons carry Rendertype 28. What does Rendertype 28 do?
Title: Re: Rendertype 28
Post by: Ginev on December 06, 2017, 08:12:24 AM
As far i know (since i used it alot for converting models) its like normal map render type and if you use specular is even better (i think it way not work with specular light checked).However someone said that render type 27+spec checked is for bump maps but its doing better job than render 28 so i switched now using always render type 27.Basically they are almost the same but someone said that 27 is better than 28  :shrug:
Title: Re: Rendertype 28
Post by: Giftheck on December 06, 2017, 09:57:38 AM
Quote from: Ginev on December 06, 2017, 08:12:24 AM
As far i know (since i used it alot for converting models) its like normal map render type and if you use specular is even better (i think it way not work with specular light checked).However someone said that render type 27+spec checked is for bump maps but its doing better job than render 28 so i switched now using always render type 27.Basically they are almost the same but someone said that 27 is better than 28  :shrug:

So it's to do with normal/specular mapping? Interesting... is it possible to have that and a double-sided texture with transparency properties?
Title: Re: Rendertype 28
Post by: Cdt Fox on December 06, 2017, 12:42:43 PM
Rendertype 27 is the default one for Normal maps to render. 28 is used if the normal map also has a specular map inside it's Alpha channel (easy to do with gimp). Usually, when only a Specular map is used (no bump or normal; btw normal and bump use 27 (28) as the same rendertype, just depends on your texture) THEN the rendertype was only 4. So 28 is just a mix between 27 and 4. You only need to put the specular into the normal map's alpha channel to have the different layers (dark and bright) of specular seen in game. If you only use normal/bump maps then just stick to 27.

To Normal map a texture you have an addon to download for gimp 2.8. Works like a charm.

I think 28 is quite nice on weapons meshes, however it's not recommended for player models. I'm using 27 for them.

Here are some shots of my old weapons port from Dice's first battlefront with render type 28:

[spoiler](https://www.swbfgamers.com/proxy.php?request=http%3A%2F%2Fmedia.moddb.com%2Fimages%2Fmembers%2F4%2F3343%2F3342143%2Fprofileweapon%2F20171015142045_1.jpg&hash=0184ae0edc34ff823401266c7b52e5cfc96a645a)
(https://www.swbfgamers.com/proxy.php?request=http%3A%2F%2Fmedia.moddb.com%2Fimages%2Fmembers%2F4%2F3343%2F3342143%2Fprofileweapon%2F20171020173612_1.jpg&hash=a58ee8ff2c51da88644e4c4a39b6dca0cab34d44)[/spoiler]

My DLT-19 model (swbf 3 dc-15x scope-less)

[spoiler](https://www.swbfgamers.com/proxy.php?request=http%3A%2F%2Fmedia.moddb.com%2Fimages%2Fmembers%2F4%2F3343%2F3342143%2Fprofileweapon%2F20171015132650_1.jpg&hash=d00dff69e17411e1f2a4918000739380a7af34e0)[/spoiler]
Title: Re: Rendertype 28
Post by: Giftheck on December 06, 2017, 01:18:47 PM
Ah, I understand :)

I've never made a normal/bump map before (I'm using Photoshop and I now have the NVIDIA tools installed) but it seems like something I should learn to do at some point.
Title: Re: Rendertype 28
Post by: RepComm on December 06, 2017, 01:45:54 PM
Golly Fox, that looks spectacular! I'm going to try that out on some of my map's models..
Title: Re: Rendertype 28
Post by: Cdt Fox on December 06, 2017, 10:17:38 PM
If you want, I might write a little tutorial next week about Normal mapping in swbfs. I'll explain why, in my opinion, it's a lot better than bump map or specular map.

Also make sure that you have your in-game lightning setting on "High". Otherwise you won't see the normal mapping while playing.  Your map requires a directional light too.
EhPortal 1.34 © 2024, WebDev