Plugin: tSxFaceMatIDs

Legacy tS 6.6
Post Reply
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Plugin: tSxFaceMatIDs

Post by Fenerit »

tSxFaceMatIDs v. 1.1
tSxFaceMatIDs1.1.jpg
Material manager for trueSpace 6.6 or above.
Please trash the version 1.0 you found in the thread below: the stuff start here. Fixed all bugs, some unexpected, lots of pseudo-code removed. The plugin is now stable. Removed the 'inspect material" checkbox for faster workflow: the materials are now returned by clickin' on items. It has been substituted with the "Copy material" checkbox, so that the material grabbed from the Material Editor or from a face will be the painting material for others faces. Regression: Edit Tool painting mode has been removed: too buggy. I'm still working on this plugin so stay tuned.

FOR TRUESPACE 6.6:
UNPACK THE FOLDER INSIDE "..\TSX" subdir and load the relevant version.

FOR TRUESPACE 7.x:
UNPACK THE FOLDER INSIDE "..\TS\TSX" subdir and load the relevant version.

DO NOT DELETE THE .INI FILE, PLEASE!

USAGE:
- 'matIDs/Faces list' listbox - Display polyhedrons' matIDs or faces lists. Use single mouse click or up/down arrows to navigate through the items.
- 'Filter matIDs' checkbox - Filter out duplicate matIDs entry. Multiface polyhedrons sharing the same material returns the same IDs.
- 'matIDs list' button - List of polyhedrons' faces materials.
- 'Faces list' button - list of polyhedrons' faces.
- 'Clear content' button - Clear, reset the list.
- 'Copy material' checkbox - Copy the grabbed matIDs/faces material from one face to paint others faces.
- 'Paint face' - Assign (paint) the Material Editor material as well as the grabbed one on the selected face.
- 'Paint all' button - Assign (paint) the grabbed material on the whole polyhedron.
- 'Help' button - Help window.

NOTE:
- Fixed all bugs of version 1.0;
- Faster workflow;
- Sorted the face list;
- Drawpen selection will follow the pointer/arrow in both list modes;
- Regression from v. 1.0: removed buggy Edit Tool paint mode.
tSxFaceMatIDs_1.1.zip
(33.33 KiB) Downloaded 60 times
Best Regards
Fenerit
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

I forgot including the folder :( now it's ok.
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

tSxFaceMatIDs v. 1.2
tS_plug1.2.jpg
For trueSpace 6.6 or above.

FOR TRUESPACE 6.6:
UNPACK THE FOLDER INSIDE "..\TSX" subdir and load the relevant version.

FOR TRUESPACE 7.x:
UNPACK THE FOLDER INSIDE "..\TS\TSX" subdir and load the relevant version.

DO NOT DELETE THE .INI FILE, PLEASE!

USAGE:
- 'matIDs/Faces list' listbox - Display polyhedrons' faces and the relevant matIDs. Mouse click on items will send the faces material to the Material Editor.
Use mouse or up/down arrows keys to navigate through the items. Use 'Alt' and 'Ctrl' keys + mouse click or mouse scroll to select multifaces.
- 'Refresh auto' checkbox - Refresh the list automatically after the material has been applied.
- 'Faces | matIDs' button - Eefresh and/or load the list of polyhedrons' faces and the relevant material IDs.
- 'Clear content' button - Clear, reset the list.
- 'Copy material' checkbox - Stops the material toggles and set active the last matIDs/faces material. Option for painting other face(s)/polyhs.
- 'Paint face' button - Assign (paint) the Material Editor material as well as the grabbed one on the selected face.
- 'Paint selection' button - Assign (paint) the Material Editor material as well as the grabbed one on the selected faces.
- 'Paint all' button - Assign (paint) the Material Editor material as well as the grabbed one on the whole polyhedron.
- 'Help' button - This help window.

NOTE:
- matIDs assigned by painting are displayed once the list is refreshed. 'Faces | matIDs' button refresh the list each time is pressed.
'Refresh auto' does that automatically. If you are sure you want painting sequential faces with different materials, do not set this option on
in order to have the last face index visible. 'Refresh auto' or 'Faces | matIDs' button will bring back to the first item.
You can retrieve the last painted face as the last matIDs of the same number, of course.
- List sorts faces not the matIDs: this is because the matching matIDs can have whatever number, it depends on the assigned meterials sequence.
- Drawpen selection will follow the list item selection in single selection as well as in multiselection;

KNOWN LIMITATIONS:
- 64k faces/IDs is the maximum polyhedron size manageable; around 64k faces you must wait up to 1 minute for all face selection and 1 minute for painting all face. It doesn't make sense of course since 'Paint all' option will do that instantaneusly, but the plug or tS doesn't crash meanwhile. :bananadevil: Up to 16k faces is pretty fast. I do not find the usefulness in deal with such a high number of multimaterial, but I'm just me.
- Material Emission is not returned (possibly a tS issue);

Best Regards,
Fenerit.
tSxFaceMatIDs_1.2.zip
(35.64 KiB) Downloaded 57 times
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

Further explanatory notes:
Paint selection works in scene mode, not in Edit Tool mode. So far this plugin is like the MatMaster plugin but with the paint options. My version of MatMaster doesn't paint faces, just the whole polyhedrons.
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: Plugin: tSxFaceMatIDs

Post by Emmanuel »

I'm back from vacations and testing your new plugin.
Great new tool. It will help working with imported objects from archive3d.net.

Some objects with native materials generate dark areas when rendered with VRay. To fix that I need to change the reflectance shaders and sometimes it is hard to find the problematic faces because they can be hidden inside of the object.

Your tool allows to hunt down these materials and replace the whole group.

Thank you again Fenerit !
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

Glad I'm helping you, Emmanuel. Nice feedback. :worship: Stay tuned because I'm adding the random colors paint. An option will paint face(s) randomly for each time one of the paint buttons will be clicked in real time.
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

Version 1.3
- Fix bug in loading face objects between scenes;
- Removed the 'Refresh auto' checkbox; man-made control is better. 'Faces | matIDs' button do the same.
- Added 'Paint random' option: once set face(s) will be painted with random colors.
tS_plug1.3.jpg
Installation follows the instructions above.
tSxFaceMatIDs_1.3.zip
(29.8 KiB) Downloaded 55 times
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

Version 1.4

- Minor fixes;
- Added 'Paint invisible" option;
- 'Paint all' now paint in both mode random and invisible paint respectively;
tS_plug1.4.jpg
In the image above is shown an (ugly) boolean union with "keep material" option set on. Several cylinder's faces has been painted "invisible" to take a look inside the union. The "invisibility" is not a true alpha-channel transparency so it is active in scene mode only. If you render the scene the objects will be rendered solid as they would be normally. "Paint invisible" option works along with "Copy material" also; if the latter is set because a texture, the texture is still there albeit invisible. "Paint random" of course will set new random materials and it works "per se". "Paint all" button now works with random and invisible option either.
tSxFaceMatIDs_1.4.zip
(30.52 KiB) Downloaded 53 times
If you already have one of the previous versions, just pick up the suited tsx from the pack and drop it inside its disk folder.
Enjoy!
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

tSxFaceMatIDs v. 1.5

- Minor fixes, messages and callbacks handles;
- Switching between polyhedrons will reset and reload the face/matIDs list for the selected polyh at the item focus event, in order to prevent user-lapse in refreshing the list;
- Fix issues with 'Paint random' checkbox. Now the option reset the Material Editor to default white color whichever shaders or texture is set. Thereafter the "colors roulette" starts. Bump maps, transparency and reflectance shader if any doesn't change.
- Increased the list font size: bigger and bold items;
- Added face/matIDs list colors. Default system color for to-do faces, green color for user-painted faces with any shaders, red color for user-painted invisible faces. Resetting the list will reset the color assignment.
tS_plug1.5.jpg
The image shows the eye candy of the listbox. Invisible faces are marked red but aren't shown in rendering mode.
tSxFaceMatIDs_1.5.zip
(34.96 KiB) Downloaded 52 times
Enjoy!
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSxFaceMatIDs

Post by Fenerit »

tSxFaceMatIDs 1.5.1 bug fix version

- fix a bug with the 'Paint all' random color roulette. tS crashed for fastest roulettes button clickin'. (I forgot to free the material at the end of function :?
tSxFaceMatIDs_1.5.1.zip
(34.77 KiB) Downloaded 60 times
Best Regards
Post Reply