feature request
All  1-5  6-13

Previous
Next
 From:  -Gwozik- (PP)
3657.6 In reply to 3657.5 
Hello

I hope I won't say something stupid once again, but I've just discovered that when I set "Ns" to "1" (in the mtl file) for each texture, objets don't show up as really bright anymore when imported in Daz Studio.
In fact Daz studio set "ns" to "1" when it export obj file.

Don't know if it helps anyone.

regards
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mark Brown (MABROWN)
3657.7 In reply to 3657.6 
Hi Michael,

Yes, very sorry, my mistake. I think that "illum 2" has actually come from UV Mapper.

I've been dealing with so many apps and objs I've lost track of which is which.

Mark

---
Mark
http://www.homepages.ihug.com.au/~mabrown/index.html

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mark Brown (MABROWN)
3657.8 In reply to 3657.7 
Michael and PP,

Quick test: I loaded a model exported from MoI into UV Mapper and it was bright white. I checked the material settings in UV Mapper and specular was showing RGB 255, 255, 255. I changed this to 0, 0, 0 and the over-bright condition was fixed. The model was now what I would consider to be normally bright. I then exported the model from UV Mapper. This is the comparison of the mtl files:

MoI:

newmtl 507c
Ka 0.0000 0.0000 0.0000
Kd 0.7725 0.7922 0.8039
Ks 1.0000 1.0000 1.0000
Tf 0.0000 0.0000 0.0000
d 1.0000
Ns 0

UV Mapper once specular value is changed:

newmtl 507c
Ka 0.000000 0.000000 0.000000
Kd 0.772500 0.792200 0.803900
Ks 0.000000 0.000000 0.000000
Ns 0.000000
Ni 1.000000
illum 2
d 1.000000

The web reference at http://local.wasp.uwa.edu.au/~pbourke/dataformats/mtl/ says "The Ks statement specifies the specular reflectivity using RGB values".

I'm thinking that maybe the Ks is having an impact on how reflective the material is and how bright it looks?


Mark

EDITED: 8 Jul 2010 by MABROWN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  -Gwozik- (PP)
3657.9 
Hello

For me problem is solved, but if it helps, here is what I get in Daz Studio when I import object from MoI: Specular glossiness set to 0
specular color set to 255,255,255
specular strengh set to 100%

If I change Specular glossiness (more than 25%) : objets don't show up as really bright anymore
If I change specular color to 0,0,0 : objets don't show up as really bright anymore
If I change specular strengh to 0% : objets don't show up as really bright anymore
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3657.10 In reply to 3657.8 
Hi Mark,

> I'm thinking that maybe the Ks is having an impact on how
> reflective the material is and how bright it looks?

Yup, that definitely sounds like the case.

But what is supposed to actually happen is that Ks is used not all by itself, but in combination with the Ns value that controls the focus size of the specular highlights.

The Ns value is an exponent, and an exponent value of 0 is a special case, setting Ns = 0 I believe should mean "specular highlights disabled", but UV Mapper does not interpret it that way.

Unfortunately there is not any great documentation available for the .mtl file format, as far as I can tell there is not any great original spec for it unlike .obj which does have a nice comprehensive original document for it.

So because of that different programs can interpret things in the .mtl slightly differently.


I'm not sure about setting Ks = 0,0,0 because that could cause someone to need to do extra work in a rendering program when they did want to enable specular highlights, because they would not only need to enable specular highlights, but also change the specular color to something other than 0,0,0 to make them show up. That may be a bit confusing to need to alter 2 settings in order to make them show up... I would need to do some experiments with a variety of other programs to see if this would happen when setting Ks = 0,0,0 or not.


You could contact the author of UVMapper and ask if he could interpret the value of Ns = 0 to mean specular highlights being disabled instead of having them turned on.


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mark Brown (MABROWN)
3657.11 In reply to 3657.10 
Hi Michael,

Thanks for the explanation. I will contact the author of UV Mapper to see what can be done. For the time being what would you suggest regarding that value given that I need my models to go out to a customer using Max?

I'm glad at least that the obj format can be fixed in a text editor.

BTW, your obj merger is a wonderfully handy little tool. I can now do the same job in Simlab Composer (as promised, they have added an option to disable automatic snapping of imported objects to the scene floor) but I'm still using your tool to do the job. It is so easy to just drag the files into your tool's window and hit the generate button.

Mark

---
Mark
http://www.homepages.ihug.com.au/~mabrown/index.html

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3657.12 In reply to 3657.11 
Hi Mark, so in v3 I can give setting Ks = 0,0,0 a try by default and see if it causes any difficulty.

I did a quick test, and for Blender it does mean that someone has to adjust the specular color first before adjusting the strength in order to add specularity, but Cinema4D seems to interpret it a bit nicer and just has specular color disabled (and implicitly white) and still can enable specular highlights more easily.

Each program can interpret these things in a slightly different way.


> For the time being what would you suggest regarding that
> value given that I need my models to go out to a customer
> using Max?

Well, I guess if you don't want any specularity the safest thing is to set Ks = 0,0,0 in addition to Ns = 0, that seems to have the best chance of having it turned off in a receiving application.

But since each program interprets this slightly differently it is hard to really know for sure what Max is going to do with it without actually testing it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Mark Brown (MABROWN)
3657.13 In reply to 3657.12 
Hi Michael,

Perhaps make those settings an ini thing and mention in the V3 docs that some apps interpret this differently and how to go about addressing it? I can see needing to turn specularity back on would be a real pain for most users as they are going to be rendering out their own models in the renderers they own. I understand better what the issue is now and really, fixing it using a text editor is not a problem.

Thanks for the help Michael.

---
Mark
http://www.homepages.ihug.com.au/~mabrown/index.html

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-5  6-13