xmoonproductions.org
https://www.xmoonproductions.org/

notes on .ini files
https://www.xmoonproductions.org/viewtopic.php?f=31&t=3961
Page 1 of 1

Author:  laissemoirire [ Wed Jul 15, 2015 9:44 am ]
Post subject:  notes on .ini files

Important notes for all modders,
since all the variables are not documented in the wiki atm.

vdis_correct defines the rendering order of cloth.
lower = first, higher = last.
should always use a value superior to 0 (default) when transparent texture will be used, underwear should use even bigger values to be rendered after clothes and avoid transparencies or clipping issues.

Tutorial use 0.3 for underwears, 0 for cloth (but not transparent), I suggest 0.3 (0.15 before edit) for normal cloth to avoid rendering "bugs" behind hairs and 0.5 for underwear (until I discover another transparent "bug").
Code:
cloth "cloth_name"
{
(...)
render
  {
    vdis_correct = 0.3;
    lod[0]
   (...)
   }
}



view_offset seems to be the distance value until the surface is rendered (and still viewable) even if it's behind something
Tutorial use 0.03 for clothes, 0.015 for underwears (so they don't overlap, and they are still displayed if they pass a little through body)

norm_offset seems to define an offset between the rendered surface and the mesh position,
used to be sure that we don't see model skin trough cloth
Tutorial use 0.005(even 0.007) for cloth, 0.001 for underwears

XPAdmin told me wrote:
- When the thickness is not defined it is equal to the norm_offset value.
- When the thickness is zero, only 1 layer is drawn.
- When the thickness is larger than 0, 4 layers are drawn.
- !! When the thickness is defined it is in meter




Code:
shader "shadername"
{
  view_offset = 0.015;
  norm_offset = 0.001;
  thickness = 0;
(...)
}



-----------------
I thought those informations were important if we don't want to rebuild our cloth mods every 2 days because they are not rendered correctly when used in conjunction with other mods

If you have any other info, please share.
especially xpadmin, correct me if I'm wrong somewhere.
(and now I go back to rebuild everything)

Author:  laissemoirire [ Thu Jul 16, 2015 2:38 pm ]
Post subject:  Re: notes on .ini files

edited

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/