Planetside Software Forums

General => Open Discussion => Topic started by: Upon Infinity on May 31, 2016, 04:18:13 AM

Title: Editing specularity value in .mtl files.
Post by: Upon Infinity on May 31, 2016, 04:18:13 AM
Anyone have experience editing .mtl files.  I know you can view the code in notepad, but I find that the specularity on objects I create is often set to 1, when I'd rather have it at 0.
Title: Re: Editing specularity value in .mtl files.
Post by: Dune on May 31, 2016, 07:32:02 AM
I think if you open in text editor and do a search and replace (specularity=1 into specularity=0, or whatever it's called exactly), it would work. Just test with a simple file.
Title: Re: Editing specularity value in .mtl files.
Post by: El Kabong on June 01, 2016, 07:47:33 PM
If this is any help, from wiki   https://en.wikipedia.org/wiki/Wavefront_.obj_file (https://en.wikipedia.org/wiki/Wavefront_.obj_file)

The specular color is declared using Ks, and weighted using the specular exponent Ns.

Ks 0.000 0.000 0.000     # black (off)
Ns 10.000                # ranges between 0 and 1000



Title: Re: Editing specularity value in .mtl files.
Post by: luvsmuzik on June 05, 2016, 10:05:54 PM
Thanks for that link!
Title: Re: Editing specularity value in .mtl files.
Post by: bobbystahr on June 07, 2016, 02:47:24 AM
Quote from: Upon Infinity on May 31, 2016, 04:18:13 AM
Anyone have experience editing .mtl files.  I know you can view the code in notepad, but I find that the specularity on objects I create is often set to 1, when I'd rather have it at 0.

I run everything through PoseRay for mainly that function as a lot of imported .3ds or .obj seem to have that setting
Title: Re: Editing specularity value in .mtl files.
Post by: Upon Infinity on June 09, 2016, 02:43:37 AM
Quote from: El Kabong on June 01, 2016, 07:47:33 PM
If this is any help, from wiki   https://en.wikipedia.org/wiki/Wavefront_.obj_file (https://en.wikipedia.org/wiki/Wavefront_.obj_file)

The specular color is declared using Ks, and weighted using the specular exponent Ns.

Ks 0.000 0.000 0.000     # black (off)
Ns 10.000                # ranges between 0 and 1000


Sorry for the late reply.  Thanks, El Kabong, exactly what I was looking for!

Yeah, Bobby, a lot of people swear by PoseRay.  I downloaded it once, but had trouble picking it up.  I suppose as long as I have some workarounds, I can keep putting off having to learn it.

Ideally, I should be able to switch specularity off in the modelling software (3D Coat).  Haven't figured it out, as yet.
Title: Re: Editing specularity value in .mtl files.
Post by: El Kabong on June 15, 2016, 07:01:21 PM
In Poseray
Materials tab then Tools tab pull down
Fix Specular Levels  :o