![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-23-14, 07:27 PM
|
#1 |
|
Black Magic
![]() |
You know what I need to add to the import window? Whether you want the materials to be updated or not. Currently the importers always update the materials no matter what. If you only want to change the vertex data and nothing else then there's no reason to update the materials. I'll make that change
|
|
|
01-23-14, 07:46 PM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Quote:
|
||
|
|
01-23-14, 07:53 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
01-23-14, 07:56 PM
|
#4 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
01-23-14, 07:53 PM
|
#5 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
01-23-14, 07:56 PM
|
#6 |
|
Black Magic
![]() |
That's the way I coded it. When reading the MTL file the newmtl definitions correspond 1:1 to the subsets. If you have more newmtl definitions then subsets then only the first number of subsets newmtl definitions will be used.
|
|
|
01-23-14, 08:01 PM
|
#7 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
...how hard would be making your application to check actual subset/material linkings instead?
|
|
|
|
01-23-14, 08:36 PM
|
#8 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Quote:
![]() Regarding subsets, have you ever seen this post of mine. I might have found and exception to the "max two (textured) materials per mesh"... |
||
|
|
01-23-14, 08:50 PM
|
#9 | ||
|
Black Magic
![]() |
Quote:
The first thing I do when I work in Wings3D is delete the default material or rename it to the name I need. Quote:
I'll check out the exception also tomorrow. I impose no limit as to the number of materials you can define for the mesh. Define away! v1.1.405.1 released. See post #1 This version adds tooltips to the items in the import/export window and also adds a new checkbox to that window that deals with materials. When importing and the new checkbox is checked then the importer will read the MTL file and update all the mesh's materials. When exporting if the new checkbox is checked then the exporter will write a MTL file and everything else needed for the materials. Movie time Work will continue tomorrow...
|
||
|
|
01-23-14, 09:41 PM
|
#10 | |
|
Black Magic
![]() |
Quote:
I also see why the materials aren't updating (I see how I broke it!). Once again I'll fix tomorrow. Now it's time to finally sit down on my own sectional and watch a movie on my own bigscreen
|
|
|
|
01-24-14, 02:23 AM
|
#11 |
|
Black Magic
![]() |
v1.1.408.1 released. See post #1
Fixed problem where materials that have been modified not showing (Modified) in the materials tab Fixed problem of mesh's materials not being updated if the update materials checkbox is checked on an import The import/export window will now hide after pressing the Import/Export button Changed how the updating of mesh's materials works during an import with the update materials checkbox checked: importer will try and match up the objects defined and it's usemtl definition to the subsets (now that default material that's always defined in Wings3D MTL files is not an issue). If the importer matches up all that it can and there are some subsets that still don't have materials updated then it will default to using the remaining materials defined to fill in the subsets needing materials updated. You no longer have to save/reload to see the material changes after an import. All the changes are done immediately and will be visible. This now forces you to plan your subsets/materials before an import. You need to ensure that the subsets have the correct (might need different materials assigned to them) materials assigned before import. Take for instance where a mesh has 2 subsets defined. You are wanting to import an OBJ file that defines 2 subsets with 2 different materials. If the current mesh has the same material defined for both subsets then both mesh's subset's materials will be updated with the last material properties. If you are importing into a mesh and the import will cause the mesh to gain additional subsets then the importer can't update the materials for those additional subsets because no prior material was defined for them. You will need to assign a material(s) to those additional subsets after the import is complete. If the importer can't find a texture specified in a material then it will ask you to find it for it (it will show a window where you can navigate to the texture to be used) If your MTL file defines self-illumination/emissive (Ke) then you need to ensure the emissive/self-illumination is enabled in the material's extendeddata before doing the import. If the emissive/self-illumination is not enabled in the material's extendeddata prior to import then the importer will NOT update the material's emissive/self-illumination data. There are only two maps the importer supports: map_Kd (diffuse) and map_Bump (or Bump). All other maps (map_Ks for instance) will be ignored. For the occlusion map (AO) define it as map_Kd and the importer will know how to handle it
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
