Pullusb / Tesselate_texture_plane

Blender addon - Triangulate your textured mesh while discarding alpha zones
GNU General Public License v3.0
126 stars 11 forks source link

Any chance to port it to Blender 3.0 #7

Closed hansnolte closed 2 years ago

hansnolte commented 3 years ago

Hi Samuel,

long I was looking for such an addon and now it doesn't work with Blender 3.0 on Windows 10. It's maddening.

Any chance you'll update it? I would not like to change to an older version of Blender, because the speed has been increased considerably in the 3 version.

When I want to activate the addon, I get the following error message.

`Traceback (most recent call last):

File "E:\Blender\3.0\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "E:\Blender\scripts\addons\Tesselate_texture_plane__init__.py", line 48, in from . import auto_modules File "E:\Blender\scripts\addons\Tesselate_texture_plane\auto_modules.py", line 27, in PYTHON_PATH = Path(bpy.app.binary_path_python) AttributeError: 'bpy.app' object has no attribute 'binary_path_python'`

Many greetings Hans

Pullusb commented 3 years ago

Hi Hans,

I'll update it if I could, it actually does not rely on me. The addon use an external python module that is not compatible with recent python version used since 2.93.

When (if...) the author of Triangle update his module to work with last python version, I'll update the addon to make it work.

There's as good chance it'll happen, the author seem to have steadily made updates in the past : https://pypi.org/project/triangle/#history But I just don't know when.

I absolutely don't have time to look for an alternative triangulation method so I'll just wait ^^.

I added these warnings Notes on the github readme and the youtube video description.

/!\ IMPORTANT NOTES:

  • RUN BLENDER AS ADMIN might be needed at first activation to enable auto-installation of needed third party modules (tested on windows).
  • Not compatible with 2.93 and upper version yet due to python modules compatibility (max 2.92)

If I'm able to update the addon, with a new triangle or any other method I'll keep you informed.

Cheers

hansnolte commented 3 years ago

Hi Samuel, thanks for your answer

I wrote an E-Mail to Dzhelil Rufat, let's see if he has time and desire for the update.

Hi Dzhelil, first of all, many thanks for this wonderfull wraper. Any chance you'll update Triangle to Python 3.9? Some addons for Blender use your wrapper. Including this nice one. https://github.com/Pullusb/Tesselate_texture_plane/ Thread: https://github.com/Pullusb/Tesselate_texture_plane/issues/ Many greetings Hans

thevarlon commented 2 years ago

Hi Samuel,

It seems that the author of triangle has updated it the 1st february 2022. https://pypi.org/project/triangle/#history I hope this could work to port the Tesselate texture plane to Blender 3.x series.

Best regards.

Hi Hans,

I'll update it if I could, it actually does not rely on me. The addon use an external python module that is not compatible with recent python version used since 2.93.

When (if...) the author of Triangle update his module to work with last python version, I'll update the addon to make it work.

There's as good chance it'll happen, the author seem to have steadily made updates in the past : https://pypi.org/project/triangle/#history But I just don't know when.

I absolutely don't have time to look for an alternative triangulation method so I'll just wait ^^.

I added these warnings Notes on the github readme and the youtube video description.

/!\ IMPORTANT NOTES:

  • RUN BLENDER AS ADMIN might be needed at first activation to enable auto-installation of needed third party modules (tested on windows).
  • Not compatible with 2.93 and upper version yet due to python modules compatibility (max 2.92)

If I'm able to update the addon, with a new triangle or any other method I'll keep you informed.

Cheers

Pullusb commented 2 years ago

Hi @thevarlon, thanks for the heads-up, I'll check when I get the time.

Pullusb commented 2 years ago

Good news !

Addon is updated and should work with 2.93+ / 3.0

@hansnolte @thevarlon can you test the lastest and let me know if there are any issues at installation or use ?

If you run into problem, please tell what OS you use.

thevarlon commented 2 years ago

Perfect !

it works for me. I succesfully installed it on windows version of blender 2.93.9 Release candidate , 3.0.1, 3.1 Beta of today and 3.2 Alpha of today.

Thank you Samuel :)

hansnolte commented 2 years ago

Hi Samuel,

works flawlessly with Blender 3.2 (from today) under Win 10 - 21H2.

Thank you very much for this little jewel.

EDIT: LifeUpdate does not work. If I e.g. pull on the Aeration controller, nothing happens. Example: "Aeration : Limit maximum tri area, low value means more density (more triangles)." https://github.com/Pullusb/Tesselate_texture_plane

Pullusb commented 2 years ago

Thanks for the report.

Thats weird... I've just tested and redo works as expected. Your touching the Aeration properties of the redo panel (F9) right ? as explained here (timed link): https://youtu.be/bCw7BN5J8Pk?t=74 The properties on original panel are only pre-launch settings.

hansnolte commented 2 years ago

Oh no, of course I didn't expect that. I have always tried to change the settings in the right panel. With the black panel on the left, everything works fine.

Sorry for the misunderstanding.

Pullusb commented 2 years ago

Perfect, work as it should then.

FYI, It's the same for all operators, the redo panel literary re-do the operator (ctrl+Z > relaunch operator) with every new value you input. So, except if the dev has made specific binding of the redo panel in interface (which is possible but super rare), redo is only triggered by this specific panel.

Thanks for the feedback. Closing issue.