Welcome to
Mod The Sims
Online: 2494
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 71 (Who?), Viewed: 57141 times.
Search this Thread
Old 19th Jan 2005, 07:10 AM #26
DigitalReality
Lab Assistant

Join Date: Jan 2005
Posts: 19


To those who don't know already....

MATDs are Shaders for different Materials (Material Descriptions)

A shader is a programmatic way to represent surface qualities like shininess, reflectivity, color, transparency, translucency, etc.

Specularity (Spec): Defines the "shininess" of the object.
Reflectivity: Defines how well the surroundings are reflected off of the material.
Transparency (alpha): How visible (transparent) the object is.
and so on.

Many of these options allow for a color too, like what color the specular highlights are, or what color the reflection will look like. Hope that helps.
Old 19th Jan 2005, 07:11 AM #27
DigitalReality
Lab Assistant

Join Date: Jan 2005
Posts: 19


Oh and diff is diffuse, or the spread of light on the surface of the object.
Old 19th Jan 2005, 08:14 AM #28
Numenor
The ModFather



Join Date: Sep 2004
Posts: 8,400
Thanks: 197581 in 174 Posts
39 Achievements

View My Journal


Thank you, DigitalReality, I was wandering what "spec" stood for... Now I know!
So, the specularity should be the ability to reflect the ambience light, while the reflectivity is the ability to reflect the sorrounding objects. Right?

Dr.Pixel: The "Reflectivity" parameter it's a strange setting... I've noticed that the most reflecting game objects have lower levels of Reflectivity (0.1, 0.05...).
And the stdMatAlphaMultiplier is a global multiplier that affect all the other parameters at the same time.

Syera: You are looking for a tutorial? Well, this thread is a tutorial, more or less
Old 22nd Jan 2005, 04:17 PM #29
Dr Pixel
Scholar

Join Date: Oct 2004
Posts: 1,417
Thanks: 54079 in 102 Posts
26 Achievements

View My Journal


OK, I tried various settings of Reflectivity, but couldn't get a true mirroring.

But, I did stumble on this, which I call "simulated" mirrored glasses.

What I did was set

stdMatSpecCoef: 20,20,20

for all the ....lens elements in the MATD

This makes the glasses highly reflective, and they flash when the Sim turns their head as real mirrored glasses would.

NOTE: This only works for me if I have the Lighting in the game options set to Medium or High, if set to low the glasses always look like the plain version.

Anyway, I have included a .zip with a reflecting black pair, and a reflecting silver-grey pair. Feel free to experiment with these, maybe you could get real reflections working.
Screenshots
Click image for larger version

Name:  ChromeShades.jpg
Views: 21
Size:  16.4 KB   Click image for larger version

Name:  DarkShades.jpg
Views: 20
Size:  22.2 KB  
Download - please read all instructions before downloading any files!
File Type: zip ReflectingGlasses.zip (6.1 KB, 132 downloads) - View custom content
Old 22nd Jan 2005, 05:17 PM #30
Drakron
Field Researcher

Join Date: Sep 2004
Posts: 406
Thanks: 994 in 2 Posts
5 Achievements


Well I found a mirror and it have a MATD line that says.

stdMatEnvCubeMode:Reflection

So I decided to experiment with it but it does not work (even after I copy MATD values of a mirror) , I suspect the reflectivity is set on the mesh itself and I guess the best we can do is what Dr. Pixel already done.
Old 22nd Jan 2005, 05:41 PM Default. #31
KrAwLinG
Test Subject

Join Date: Jan 2005
Posts: 6


Quote:
Originally Posted by Dr Pixel
OK, I tried various settings of Reflectivity, but couldn't get a true mirroring.

But, I did stumble on this, which I call "simulated" mirrored glasses.

What I did was set

stdMatSpecCoef: 20,20,20

for all the ....lens elements in the MATD

This makes the glasses highly reflective, and they flash when the Sim turns their head as real mirrored glasses would.

NOTE: This only works for me if I have the Lighting in the game options set to Medium or High, if set to low the glasses always look like the plain version.

Anyway, I have included a .zip with a reflecting black pair, and a reflecting silver-grey pair. Feel free to experiment with these, maybe you could get real reflections working.


OMFG Thank You Dude!
its great :D

http://img155.exs.cx/img155/3473/krawling2wj.jpg
Old 23rd Jan 2005, 08:21 PM #32
FoxieRoxieNYC
Lab Assistant

Join Date: Dec 2004
Posts: 119
Thanks: 19092 in 17 Posts
18 Achievements


oooh thank you thank you Dr. Pixel you rock, I'm going to work on some mirrored ones. I wonder if I can apply this to other objects as well... Gosh I swear btw objects and clothes and actual gameplay my free time is CONSUMED by Sims!
Old 29th Jan 2005, 12:03 AM #33
madbrit
Lab Assistant

Join Date: Dec 2004
Posts: 86
Thanks: 640 in 6 Posts
5 Achievements


excellent work...any chance of green round male glasses...i still havent mastered SimPE (learning) but was working on a sim who needed them....
any help would be much appreciated

Sailing the seas of gothic cheese
Old 27th Feb 2005, 01:29 AM #34
Guest

Posts: n/a


Well im trying to make the lens color 255, 140, 0 (dark orange) but im not very good with math.. can someone help me out with this?? :bump:
Old 4th Mar 2005, 09:24 AM #35
Guest

Posts: n/a


Quote:
Originally Posted by Icee07
Well im trying to make the lens color 255, 140, 0 (dark orange) but im not very good with math.. can someone help me out with this?? :bump:


here....

1,0.5,0
Old 4th Mar 2005, 03:09 PM #36
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


Thanks for the tips, I just made my first recolors of glasses based on this tutorial .
Old 29th Apr 2005, 05:03 AM #37
Mabelline
Lab Assistant

Join Date: Feb 2005
Posts: 124
1 Achievements


Thx! Can we change the shape of glasses and the color of lens at the same time? How? Any tutorial?

I want several new sunglasses in my game . Anyone would like to make sunglasses for me? I will post the pictures here if you take my request.
Last edited by Mabelline : 29th Apr 2005 at 05:08 AM.
Old 30th Jun 2005, 11:41 PM #38
gorre9090
Lab Assistant

Join Date: Jun 2005
Posts: 77
Thanks: 370 in 4 Posts
4 Achievements


helppp i dont get this at all
Old 9th Jul 2005, 01:40 PM #39
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


This topic should really be turned into a tutorial, there is so much important information in it .
Old 5th Jun 2006, 03:37 PM #40
morten8035
Instructor

Join Date: May 2005
Posts: 465
Thanks: 4150 in 47 Posts
13 Achievements


Quote:
Originally Posted by Numenor
In order to change the color of the glass, you have to alter some parameters in the MATD, using SimPE. Take a look at the attached package (my intention was to create pink lenses, but actually they are red... ).

To do the same do the following:

1) Open BodyShop, create parts, new project; export the glasses you want to recolour.
2) Reimport the glasses without changing anything: in Bodyshop you'll see a cloned copy of the original glasses.
3) Close BodyShop.
4) Into the SavedSim folder, find the newly created package and open it with SimPE.
5) You'll find many Material Definition files (MATD); some of them are related to the glass, other to the frame. You can spot the ones related to the glass because they *don't have* a texture (the texture is referenced in the "File List" tab).
6) In every MATD related to the glass, find the field "stdMatDiffCoef" and alter its values in order to change the class color. The syntax for the stdMatDiffCoef values is "Red_value,Green_valu,Blue_value" (each of them ranges from 0 to 1). For my reddish glass I've used the values 0.3,0.1,0.1.
7) Commit and save.


it don't worked at me

it is a picture tutorial here at MTS2?

Unauthorized incoming post!
Old 5th Jun 2006, 05:05 PM #41
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


Did you edit the correct package file, morten8035? You have to make sure to edit the one in the Saved Sims folder, not the one in the Projects folder.
Old 21st Jun 2006, 02:38 PM #42
dmdvt
Test Subject

Join Date: Jan 2006
Posts: 1


Quote:
Originally Posted by Numenor
In order to change the color of the glass, you have to alter some parameters in the MATD, using SimPE. Take a look at the attached package (my intention was to create pink lenses, but actually they are red... ).

To do the same do the following:

1) Open BodyShop, create parts, new project; export the glasses you want to recolour.
2) Reimport the glasses without changing anything: in Bodyshop you'll see a cloned copy of the original glasses.
3) Close BodyShop.
4) Into the SavedSim folder, find the newly created package and open it with SimPE.
5) You'll find many Material Definition files (MATD); some of them are related to the glass, other to the frame. You can spot the ones related to the glass because they *don't have* a texture (the texture is referenced in the "File List" tab).
6) In every MATD related to the glass, find the field "stdMatDiffCoef" and alter its values in order to change the class color. The syntax for the stdMatDiffCoef values is "Red_value,Green_valu,Blue_value" (each of them ranges from 0 to 1). For my reddish glass I've used the values 0.3,0.1,0.1.
7) Commit and save.



Thank you for all the help.

With the new verison of SimPE when you find the "stdMatDiffCoef" field there is a drop down box for the colors. There is no need to know color values.

Thanks again.
Old 10th Jul 2006, 12:10 AM #43
squall117
Site Helper

Join Date: Feb 2006
Posts: 1,097
Thanks: 7185 in 33 Posts
15 Achievements


Thaks a lot Numenor you're the best.
And right now it doesn't seem so hard... I just hope this doesn't change when I get there :D

Squall Lionheart
My Sims 2 site NeoSquall Studios
Old 10th Jul 2006, 04:38 AM #44
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


Quote:
With the new verison of SimPE when you find the "stdMatDiffCoef" field there is a drop down box for the colors. There is no need to know color values.


Just clarifying that the dropdown box will show up in the categorized properties tab, while the properties tab is the same as before .
Old 13th Jul 2006, 08:49 PM #45
morten8035
Instructor

Join Date: May 2005
Posts: 465
Thanks: 4150 in 47 Posts
13 Achievements


I did it :D
can som say codes other colors at glasses? (The numbers)
Screenshots
Click image for larger version

Name:  morten8035.JPG
Views: 2
Size:  10.4 KB  
Last edited by morten8035 : 13th Jul 2006 at 08:55 PM.
Old 14th Jul 2006, 04:42 AM #46
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


morten8035, if you go to the Categorized Properties tab in Material Definition and click on the line you want to edit, with the arrow in the end you get to choose the color from a pallet directly, no need to memorize codes.
Old 14th Jul 2006, 10:24 AM #47
morten8035
Instructor

Join Date: May 2005
Posts: 465
Thanks: 4150 in 47 Posts
13 Achievements


I do not see any arrow
Have you a picture?
Edit: found it, thanks :
Screenshots
Click image for larger version

Name:  Untitled-1.jpg
Views: 2
Size:  52.9 KB  
Last edited by morten8035 : 14th Jul 2006 at 10:40 AM.
Old 12th Sep 2006, 07:45 PM #48
Playcokacola
Test Subject

Join Date: Sep 2006
Posts: 1


what is simsPE and how do you get it?
Old 13th Sep 2006, 04:08 AM #49
IgnorantBliss
The Resident Bunny



Join Date: Dec 2004
Posts: 4,762
Thanks: 7232 in 18 Posts
14 Achievements


SimPE is a tool you can do a lot of things with, including creating objects or editing your sims.
Old 9th Jan 2007, 08:26 PM #50
LadyDess
Test Subject

Join Date: Sep 2006
Posts: 25


Was so easy to do it, so simple thanks to the explanation in this thread, I could never figure it out by myself lol

Here's a pic of my 1st recolor: violet-blue glasses , you guys are the best


Old 10th Mar 2007, 04:56 PM
Falentae
This message has been deleted by Falentae.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.