Tremulous Forum

Mods => Modding Center => Topic started by: Gireen on December 05, 2011, 05:34:32 pm

Title: Outlines on Models
Post by: Gireen on December 05, 2011, 05:34:32 pm
How can i get outlines on Player Models?
Is this with shaders possible?
Title: Re: Outlines on Models
Post by: hermxiv on December 05, 2011, 06:18:28 pm
Now why would you want that?
Title: Re: Outlines on Models
Post by: /dev/humancontroller on December 06, 2011, 12:33:13 am
How can i get outlines on Player Models?
Is this with shaders possible?
you won't go far with Q3 shaders.
you can draw, along with the original model, a "slightly thickened" copy of the model in which only the inner faces have coloring/texturing.
Title: Re: Outlines on Models
Post by: Gireen on December 06, 2011, 06:51:07 pm
I found this small tutorial http://cokane.com/lines_tutorial.html this seems to be the way u describe?
It's similar to the method how the helmet is added on the human head?
If I make it so i dont need to write any shader file?
How will the performance be wenn i do this with every Model?


@hermxiv
I try to create a simple cel Shading mod. I saw the cel shading in Tremfusion and think with special textures and better Outlines this coud looks good. :)
Title: Re: Outlines on Models
Post by: /dev/humancontroller on December 06, 2011, 09:45:01 pm
I found this small tutorial http://cokane.com/lines_tutorial.html this seems to be the way u describe?
yes, it is.
It's similar to the method how the helmet is added on the human head?
wtfbbq? no, the helmetless-head and head-with-helmet models have no such relation to eachother.
If I make it so i dont need to write any shader file?
if you only want to add outlines, then all you need to use is 1 small shader for a monotonic (black) color.
How will the performance be wenn i do this with every Model?
i suspect that there will only be a minor performance degradation.
Title: Re: Outlines on Models
Post by: cron on December 08, 2011, 07:31:00 am
It's similar to the method how the helmet is added on the human head?

wtfbbq? no, the helmetless-head and head-with-helmet models have no such relation to eachother.

Actually, the naked and helmeted head are the same model (head.md3), with the naked head mesh named h_head_base and the helmet named h_head_helmet. Attached is a screenshot from Blender showing how I did my 'Lego' helmet:





Title: Re: Outlines on Models
Post by: Tr3m on March 09, 2018, 04:16:47 pm
It's similar to the method how the helmet is added on the human head?

wtfbbq? no, the helmetless-head and head-with-helmet models have no such relation to eachother.

Actually, the naked and helmeted head are the same model (head.md3), with the naked head mesh named h_head_base and the helmet named h_head_helmet. Attached is a screenshot from Blender showing how I did my 'Lego' helmet:

good to know