Git Product home page Git Product logo

textools-blender's People

Contributors

benjaminsauder avatar bladesides avatar bookyakuno avatar consolegrl avatar feilen avatar franmarz avatar mightybobcnc avatar nagadomi avatar namrog84 avatar oxicid avatar pablocaracena avatar savmartin avatar shalokshalom avatar symstract avatar tituslvr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

textools-blender's Issues

UV Smoothing button just sets Auto Smooth to 180º

Blender 2.90.1
Windows 10
Textools_2.9x, released Jul 24. (Latest release right now)

Expected behavior: Setting sharp the edges that are UV islands bounds.

The only thing I noticed it does is turning on Autosmooth and setting it to 180º.
Tried it in different projects, so you can reproduce it in any model you want I guess.

Thanks for the addon!

Iron Faces does not work.

I have the solution in a way is just to erase the lines marked with "XX"

def main(context):
	print("operatyor_faces_iron()")

	XX #Store selection
	XX utilities_uv.selection_store()

	bm = bmesh.from_edit_mesh(bpy.context.active_object.data)
	uv_layers = bm.loops.layers.uv.verify()

	bpy.context.scene.tool_settings.uv_select_mode = 'FACE'
	bpy.ops.mesh.mark_seam(clear=True)


	selected_faces = [f for f in bm.faces if f.select]

	# Hard edges to seams
	bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE')
	bpy.ops.mesh.region_to_loop()
	bpy.ops.mesh.mark_seam(clear=False)

	bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='FACE')
	for face in selected_faces:
		face.select = True
		
	bpy.ops.uv.unwrap(method='ANGLE_BASED', margin=0.0226216)

bpy.utils.register_class(op)

Blender 2.90 - Baking Error

Blender 2.90
Textool 1.3.0

First time using Textool, I understand I'd need to select cube_high and cube_low in order to bake any maps. But end up getting error.
Screenshot_1

This error apply to every baking map that I tried... Am I missing something?

"Select Bounds" only works in UV sync selection mode

When Select Bounds is clicked, the UV editor force-switches off "UV sync selection" mode, bounds are selected in the 3d viewport and everything in the UV editor gets deselected. Only if you manually enable sync mode on in the UV editor, you can see that bounds are indeed selected.

Expected behavior: When Select Bounds is clicked, then bounds should be selected in the UV editor, regardless of the "UV sync selection" mode.

Align World and Align Edge behaving differently on every version of Blender

The current version of Align World works as expected in Blender 2.82 and 2.90.
For Blender 2.83, the rotation applied to every face/island is inverse, so the issue that made me write the comment "# minus angle; Blender uses unconventional rotation notation (positive for clockwise)" next to the malfunctioning line seemed to be tackled by the Core Developers. Removing the "-" in the two lines of the code solved it. The problem is that in 2.90, this doesn't work again and the current version of the script, with the minus, is which works, as I stated previously, so I don't know what they did.
Moreover, for version 2.91 none of the scripts, with or without minus, works, so other thing changed. The problem, as always, is the scarce documentation around the changes in the Blender API, so keeping track of them and adapting the addon accordingly is very difficult.
We can't have different versions of the addon just for this to work because they change how the UV mode behave back and forth between version, so we'll wait for 2.91 to be released to mess with the Align World operator unless we get to understand what is happening before then.

Is development of this fork is pretty much dead ?

Oddly enough, the original author doesn't seem to care to make a proper update of TexTools for Blender 2.8x and it also seems like this fork is dead too :( Is that the case? Is there another fork of this add-on with all the bugs fixed in 2.8x update ?

Hard Crash when baking 8192

blender 2.9 - crash when setting bake size to 8192
also crashes with 4046 at AA *4

also no way to tell a what stage the bake is.

Bake doesn't work, shows 3 error messages

Got this error when have low and high poly models and hit BAKE, maybe I'm missing some options?..

  File "C:\Users\Mike\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\TexTools-Blender-master\op_bake.py", line 73, in execute
    ray_distance = bpy.context.scene.texToolsSettings.bake_ray_distance
  File "C:\Users\Mike\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\TexTools-Blender-master\op_bake.py", line 159, in bake
    image = setup_image(mode, name_texture, render_width, render_height, path, is_clear)
  File "C:\Users\Mike\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\TexTools-Blender-master\op_bake.py", line 345, in setup_image
    is_float_32 = bpy.context.preferences.addons["textools"].preferences.bake_32bit_float == '32'
KeyError: 'bpy_prop_collection[key]: key "textools" not found'

Baking pairing features don't work at all

  • Bake Sets don't work. Common names suffix don't affect no matter what I do. So basicly all Baking from HP to LP works only in manual way and without an explode pairs feature.

Sorry, didn't saw last commits!

name 'function' not defined

i get this issue after i tried to use rectify. i'm selecting multiple meshes. when i was on select all verts it started behaving stangely so i selected one particular part with Ctrl+L and it gave me this error.
rtretreter

Infinite Baking time on large polycount.

I've noticed that if I bake high poly mesh that have about 3.5-5 million polys with textools baking process takes infinite amount of time because some sort of internal function loop. In log I see that bake already finished but UI is still unresponsive and something taking 15% of cpu. If I use default blender bake pipeline (Normal or Emission) all working fine like expected and its baking a few minutes.

I've got 32gb ram so it can't be a problem since blender uses only 10gb when freeze is happening.

It would be super handy to solve that issue. Because sadly only Textools can provide proper baking solutions for game developer artist working on blender.

Below I've attached logs of default bake, textools freeze bake, Sys Info and test scene.

Default_bake_log.txt
Textools_bake_log.txt

Problem with "Get Texel Density" and "Apply Texel Density"

The math used to perform these two function are not the same. If you select an island or face and get the texel density, then click on apply to apply the texel density. You will see the size of island change. This should not be the case since you are applying the same texel density again.

Another test to perform is to apply a texel density of 100 then use the get texel density to check. I get a texel density of 264.09. I'm sure there is an error here but I'm not familiar enough to know which function is the one with the correct value.

Wrong Material ID Map baking output.

image
As can be seen here, Wrong Material ID palette is still being used, so bug still persist, making as now, ID making useless unless post-processed by hand on Photoshop.

The issue is not only in the discrepancy of the palette, but also with the actual colors used, which mostly are slightly different shades of the same 3 colors.

Result has been retried on all 3 my computers.

NVidia GPU / INTEL CPU
AMD GPU / INTEL CPU
NVidia GPU / AMD CPU

AO Bake not capturing surface detail

When using Blender's own AO bake for cycles (with conventional node setup) one gets surface detail as part of the bake. Using this plugin however provides no surface detail for the AO bake and thus shades the surfaces as though flat.
AO detail

The above is an example of the desired level of detail from Blender's integrated AO bake with procedurally generated textures.

On the other hand, this is the undesirable outcome from the plugin where such detail is lost.

undesired

Cannot get anything to work

I know this sounds vague but literally nothing in this plugin works with my install. I can see the menu but everything i try to use throws an error or does nothing but make islands vanish or parts of my mesh to be randomly deselected.

None of the sorting works, clicking the buttons results in deselecting the islands and no sorting is done.

Reload Textures throws this error
https://i.imgur.com/6Xs1hqi.png

Spent about 30 min testing things and I was unable to get even 1 thing to work. My only guess is that I have the wrong version or something.

Here is my version
https://i.imgur.com/Lwv5BQ9.png

If this is not the right file a link to the correct one would be most appreciated.

Original Material isn't restored when cycling Checker Maps

When clicking the 'Checker Map' button in the UV Editor, when it's gone through all three built-in options it leaves the mesh without an assigned material, even when the mesh original did have one. As I recall this didn't happen in 2.79, where instead it restored the original material!
Is this a limitation or a bug?

edit: I'm on Blender 2.91.0 alpha, and 1.3.0 of the addon.

Unable to bake diffuse textures

To replicate:

Make 2 cubes with 2 different materials.
Select both cubes and UV unwrap.
Make new texture to save diffuse bake to.
Upon pressing bake, I get this:

Traceback (most recent call last):
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 73, in execute
    ray_distance = bpy.context.scene.texToolsSettings.bake_ray_distance
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 159, in bake
    image = setup_image(mode, name_texture, render_width, render_height, path, is_clear)
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 345, in setup_image
    is_float_32 = bpy.context.preferences.addons["textools"].preferences.bake_32bit_float == '32'
KeyError: 'bpy_prop_collection[key]: key "textools" not found'

location: <unknown location>:-1

```
`

Unable to bake anything

After trying to bake a textured helmet, I received this error:

Traceback (most recent call last):
File "/Users/myusername/Library/Aplication Support/Blender/2.82/scripts/addons/TexTools/op_bake.py", line 73, in execute
ray_distance = bpy.context.scene.texToolsSettngs.bake_ray_distance
File "/Users/myusername/Library/Application Support/Blender/2.82/scripts/addons/TexTools/op_bake.py", line 159, in bake
image = setup_image(mode, name_texture, render_width, render_height, path, is_clear)
File "/Users/mysusername/Library/Application Support/Blender/2.82/scripts/addons/TexTools/op_bake.py", line 345, in setup_image
is_float_32 = bpy.context.preferences.addons["textools"].preferences.bake_32bit_float == '32'
KeyError: 'bby_prop_collection[key] "textools" not found'

location: :-1

Note: I'm on a mac

Addon can't be enabled in Blender 2.81

If I try to enable the addon in the preferences the addon gives the following message:
Exception in module register(): F:\Blender\2.81Beta\2.81\scripts\addons\textools_init_.py
Traceback (most recent call last):
File "F:\Blender\2.81Beta\2.81\scripts\modules\addon_utils.py", line 384, in enable
mod.register()
File "F:\Blender\2.81Beta\2.81\scripts\addons\textools_init_.py", line 1436, in register
utilities_ui.icon_register(icon)
File "F:\Blender\2.81Beta\2.81\scripts\addons\textools\utilities_ui.py", line 61, in icon_register
preview_icons.load(name, os.path.join(icons_dir, fileName), 'IMAGE')
File "F:\Blender\2.81Beta\2.81\scripts\modules\bpy\utils\previews.py", line 97, in load
raise KeyError("key {name!r} already exists")
KeyError: 'key {name!r} already exists'

Feature Request: 1.CUSTOME MARGIN for crop&fill, 2.ALIGN TOOL for UV island

Thank you dear developer of TexTool for making such a great tool for the community.
As a normal user, I really enjoy using this amazing addon!
Here's my personal feature request:

  1. I do a lot of packaging work (especially a lot of paper boxes) and the CROP function in Textool helps me a lot. Basically I want make the most of my UV tile using CROP. In TexTools 1.3, I modified some code in the addon's python files to achieve 0 border margin for CROP. And I found that the border margin setting was hard-coded. Could I expect a handy setting in the addon panel for user to determine the margin in percentage or pixel?
  2. TexTools already had vertical, horizontal and center align tool for vertices, edges and islands. It will be more convient if we could have left, right, top, bottom align tool, in combination with options for align target like align tool in Adobe illustrator. BTW align target means: we can choose to align selected UV to UV tile (the canvas) or just align to the active selection like how the addon behaves now. (to see how the align tool of illustrator works https://youtu.be/fT1VJV2M6_0?t=186)
    Thank you again for reading my request ; )

1.4.0 not installing.

This is the console output, seems no error is given

bpy.context.space_data.system_bookmarks_active = 3
Modules Installed () from 'E:\USERS\Downloads\TexTools_v1.4.0.zip' into 'C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons'
bpy.data.window_managers["WinMan"].addon_search = "tex"
Modules Installed () from 'E:\USERS\Downloads\TexTools_v1.4.0.zip' into 'C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons'

Seems like it installs in the root "Addon" folder instead of creating it's own subfolder, checking out rn

Texel Density tools

Good day, I would like to note that texel density tools are not working like intended.
When you Apply texel density settings to all selected islands it don't takes in account mode where I can choose Combined or Island-based.

Right now tool on both settings does only Island Mode where it Scales down Islands in local coordinates.
I hope this is not to hard to fix.

should this work in 2.82?

I just got blender, v 2.82. When I make a selection of faces, many of the options under UV Layout are greyed out. I wanted to run rectify on this selection, but no love. Should this work with 2.82? In addition, if I select all of my faces in the 3d view and click on anything else like crop of fill, nothing happens. It appears that nothing works.

textools

Bug with Material ID Bake mode - 2.91

Have noticed a bug with the Material ID mode where the colours are not corresponding to the correct faces that they were assigned to. When using Diffuse mode the colours are correctly assigned though.

mat id bug
mat id bug 2

Here is diffuse mode as well.
diffuse id

Baking material ids for multiple objects, reuses colors for different materials

When I select multiple high-poly (suffix "_high") and multiple matching low-poly (suffix "_low") objects and want to use the materials assigned to the high-poly to bake a material id (using the low-poly's UVs). I almost get what I expect:

The material ID texture is genreated and matches the UVs but the colors are reused for different materials. It seems that the colors are assigned based on material slots, not materials e.i. the first material slot of one high poly is red and the first slot of another high poly is also red. These are in my case not the same material just the same index number for the two separate objects.

Is this intended behavior or a bug?

Organize is broken but I think I fixed it here

When trying to press "Organize" an error pops up in line 100 of op_bake_organize_name.py

This line:
100 obj_B.name = utilities_bake.get_bake_name(obj_A)+" high"

The error complains about "utilities_bake.get_bake_name" which doesn't exist.

Digging a bit found the utilities_bake.py and indeed it doesn't exist or anywhere else in all files of te addon.

Not sure if it's the right thing to do but, I changed get_bake_name to get_set_name instead.
Then it worked to renaming the stuff and matching the HP to LP names.

This is broken in 1.3 version for 2.79 and 2.8

UDIM support

I updated to the latest textools yesterday. Running Blender 2.83, I looked around for a way to specify what tile selected UVs should be cropped to, but couldn't find it.

Would it be possible to specify what UDIM tile a tex tool action (edge peel, crop, etc.) would apply to?

"Bounds" button doesn't really do what the description says.

It selects the seams, not the islands bounds. And you can have islands in the UV without seams in the 3D model.

You could use the "bpy.ops.uv.seams_from_islands()" operator (Blender native) before the other operators to solve it. It would create seams that you may not want.

Other solution could be just change the description to "Select seams in UV map" or something like that.

Thanks for the addon again!

Explode button is greyed out

It seems like "explode" feature is always unavailable for me, even if I name meshes properly and organize them.
What could be the issue?

Issue when re-enabling on 2.91

When I disable the latest version of TexTools and then re-enable I got the following error:

Traceback (most recent call last):
File "C:\blender-2.91.0-144f780c71ed-windows64\2.91\scripts\modules\addon_utils.py", line 382, in enable
mod.register()
File "C:\Users\jason\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\textools_init_.py", line 1436, in register
utilities_ui.icon_register(icon)
File "C:\Users\jason\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\textools\utilities_ui.py", line 61, in icon_register
preview_icons.load(name, os.path.join(icons_dir, fileName), 'IMAGE')
File "C:\blender-2.91.0-144f780c71ed-windows64\2.91\scripts\modules\bpy\utils\previews.py", line 96, in load
raise KeyError("key %r already exists" % name)
KeyError: "key 'bake_anti_alias' already exists"


I should note that what I remove the addon and re-install it the error does not pop up.

Available for Blender 2.92?

Hi. I've used TexTool over the 2.8x series. It's a very powerful addon.
Is there a chance to see it upgrade to be used in Blender 2.9x, please?
Thanks!

2.92 has a lot of speed optimizations that would combo fantastically with TexTool.

Ready for Blender 2.9 with optiX?

Hi, this addon is superb! I was wondering if this current version is supported on Blender 2.9? Specially with the denoising advantages for the Nvida graphics card?
Can I use this current version for Blender 2.9?

[Feature Request] Add the ability to bake standard PBR maps.

The texture baking feature of TexTools is really useful, and I find myself using it every time I do material work in Blender. I still find it annoying, though, to use Blender's native baking tools when baking down my final PBR maps, so it would be nice if Roughness and Emit (and Metalness if that's possible) were present in the list of baking modes.

Option to remove help buttons

Hello, please add option to remove help buttons as i so often miss-click on them and browser opens again and again. Thanks

image

Straight UV error

image

When I tried to flatten out something, TexTools give this error all of sudden. Also in the case when it works without the error (even my straighten edge was also flattened), it just doesn't work in correct way and mess up everything like below case.

Before straighten (I straightened current selected edge)

image

After straighten

image

I'm getting into TexTools recently. So I may misunderstand how to use it and use it wrong way. But I can't find any suitable solutions for this case, so I guess it's kinds of errors. Textools seems to be gonna my favorite tool. Hope it fixed soon!

Alpha input issue

In Blender 2.91 when I click preview texture after baking tangent bevel, normal map texture set into Alpha input instead of Normal.

Multi-Object UV eidit & precision of "create UV mesh"

  1. Blender supports Multi-Object UV eidit long time ago, large amount of tool in TexTools doesn't work in this mode.
  2. Using "create UV mesh" under "Mesh Texture" tab, it creates a mesh whoes size is different from the original.
    Hopes to get a fix and thanks for your Great works!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.