linko-3d / assetgen Goto Github PK
View Code? Open in Web Editor NEWGame art tools for Blender
License: GNU General Public License v3.0
Game art tools for Blender
License: GNU General Public License v3.0
Hey!
This is an awesome addon, and I'm super impressed with it!
When I try to generate a game ready mode of anything in my scene, it aborts the operator with an error message stating that the poll for edit mode is incorrect:
This should be a fairly straightforward fix, but I've never done anything like this myself.
Thanks!
CANCEL - wrong blender version
Greets,
I'm running this on some of my assets using vertex color instead of the gradients, my albedo maps are coming out black. Is there some trick to getting it to bake vertex colors?
blender 2.79.
are there any assumptions about the mesh materials perhaps?
also, I notice that in the video you have a generate aldedo not generate textures and the gradient icons are different. is this repo out of date?
Traceback (most recent call last):
File "C:\Users\myself\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\AssetGen\GM_user_interface.py", line 1312, in execute
scene.node_tree.nodes[c_mixArray[0]].inputs[1])
IndexError: list index out of range
location: <unknown location>:-1
Greets!
I found a bug where I can crash assetGen if my model is too large. (after importing usually)
I found that if I scale the model down to the default cube size range and apply the transform, assetGen works fine. seems like a bu with precision on blender's part. Perhaps an option to "unifying" the dimensions of the asset into a default range and then rescale afterwards to the original dimensions might be a good idea?
In order to GitHub correctly displays the readme file, it has to be a .md file instead of a .txt.
@Linko-3D
Hello, there's a double slash hardcoded path that's preventing export to work on *nix systems.
I tested this fix on Mac, should work fine on Ubuntu and the like; need test in windows.
Change GT_user_interface.py class ExpObj into:
And you need to add
import sys
at the beginning of GT_user_interface.py
Simple sphere, Blender 2.81a macos, blows up "Permission denied: 'SM_Sphere.glb'"
Traceback (most recent call last):
File "/Users/n/Library/Application Support/Blender/2.81/scripts/addons/AssetGen-master/GA.py", line 608, in execute
bpy.ops.export_scene.gltf(export_format='GLB', export_selected=True, filepath=os.path.join(path, "SM_" + name))
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/modules/bpy/ops.py", line 201, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/addons/io_scene_gltf2/__init__.py", line 420, in execute
return gltf2_blender_export.save(context, export_settings)
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 41, in save
__write_file(json, buffer, export_settings)
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 135, in __write_file
buffer)
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/addons/io_scene_gltf2/io/exp/gltf2_io_export.py", line 80, in save_gltf
file = open(export_settings['gltf_filepath'], "wb")
PermissionError: [Errno 13] Permission denied: 'SM_Sphere.glb'
location: /Applications/Blender.app/Contents/Resources/2.81/scripts/modules/bpy/ops.py:201
location: <unknown location>:-1
Installing the add-on works fine, but when I try to enable it, I get this:
Traceback (most recent call last):
File "/Users/somebody/Downloads/blender-2.79-macOS-10.6/blender.app/Contents/Resources/2.79/scripts/modules/addon_utils.py", line 331, in enable
mod = __import__(module_name)
File "/Users/somebody/Library/Application Support/Blender/2.79/scripts/addons/AssetGen-master-2/__init__.py", line 21
ga_autoexportglb : bpy.props.BoolProperty(
^
SyntaxError: invalid syntax
Does AssetGen not support MacOS?
Python: Traceback (most recent call last):
File "/home/jayjames/.config/blender/2.93/scripts/addons/AssetGen-master/GA.py", line 208, in execute
bpy.context.object.data.remesh_voxel_size = myscene.ga_voxelsize
AttributeError: 'Armature' object has no attribute 'remesh_voxel_size'
location: :-1
Thanks for this gem! This is very promising.
I have issues with texture baking though.
Adding Suzanne, I applied a free blenderkit texture and tried generating asset as glb with various texture resolutions (squares).
I usually end with black zones on some faces. So I suspect a UV Map error.
I enclosed an exported result.
Suzanne.zip
suzanne.zip
I also noticed that "Selected to active" always throws an error, even with a cube.
Finally, I always get errors in the Blender 2.8beta (feb 2019) console:
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:157
rna_uiItemR: property not found: GA_Props.ga_convexmesh
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:153
rna_uiItemR: property not found: GA_Props.ga_combined
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:157
rna_uiItemR: property not found: GA_Props.ga_convexmesh
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:153
rna_uiItemR: property not found: GA_Props.ga_combined
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:157
rna_uiItemR: property not found: GA_Props.ga_convexmesh
C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\AssetGen-master\GA_user_interface.py:153
rna_uiItemR: property not found: GA_Props.ga_combined
Any idea?
I have a non symmetrical model and it's forcing the model to be symmetrical.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.