View unanswered posts | View active topics It is currently Thu Mar 28, 2024 12:03 pm



Reply to topic  [ 2 posts ] 
 notes on .ini files 
Author Message
Rank 16
Rank 16
User avatar

Joined: Sat Jan 03, 2015 1:05 am
Posts: 323
Location: france
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)


Last edited by laissemoirire on Sun Jul 19, 2015 12:18 am, edited 3 times in total.



Wed Jul 15, 2015 9:44 am
Profile
Rank 16
Rank 16
User avatar

Joined: Sat Jan 03, 2015 1:05 am
Posts: 323
Location: france
edited


Thu Jul 16, 2015 2:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.