overtools / io_scene_owm Goto Github PK
View Code? Open in Web Editor NEWBlender Importer for asset files exported and recompiled with TankLib/DataTool
Blender Importer for asset files exported and recompiled with TankLib/DataTool
overwatch maps texture cannot be imported,Request repair
Hi sorry,
Can't find any information on this anywhere.
Is there an owanim for victory poses?
Tomas
It had sounded like you had addressed this already, but the lamps in my scene do not give off light. Emissive objects do but not the lamps! Even lamps added to the scene by me do not give off light! I would really like to use a map for an animation so i would like to get this working. Please address this issue and/or tell me if I am doing anything wrong!
Having issues with textures not importing with models, even with Materials and Textures being in the same directory as the model, tried version 2.3.5 and 2.3.4
Python: Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_owm-main\ui\ImportMapOperator.py", line 46, in execute
owmap.init(self.filepath, self.mapSettings, self.modelSettings, self.lightSettings, self.entitySettings)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_owm-main\importer\owmap.py", line 64, in init
blenderMap.init(mapTree, mapName, data.filepath, mapSettings, modelSettings, entitySettings, lightSettings)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_owm-main\importer\blender\BLMap.py", line 222, in init
modelFolder = blenderTree.createModelHierarchy(objModel, objID)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_owm-main\importer\blender\BLMap.py", line 101, in createModelHierarchy
rootFolder = model.armature if model.armature else BLUtils.createFolder(name, False)
AttributeError: 'NoneType' object has no attribute 'armature'
Using the latest build, no UVs appear to be extracted. It's either DataTool or the importer.
Someone confirm?
I don't know what effect it has, but it appears at the bottom of blender after I import the map.
Python: Traceback (most recent call last):
File "C:\Users\shadowmeld\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\manager.py", line 366, in execute
import_owmap.read(settings, self.importObjects, self.importDetails, self.importPhysics, light_settings, self.importRemoveCollision, self.importSounds)
File "C:\Users\shadowmeld\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\import_owmap.py", line 344, in read
enode.inputs.get('Color').default_value = (lamp_col.r, lamp_col.g, lamp_col.b, 1.0)
AttributeError: 'NoneType' object has no attribute 'inputs'
location: :-1
I've created an script to automatically import owmdl and export to FBX, but the problem is material and texture loading.
IO Scene OWM, throw error trying to import materials and textures from relative path from root, but root is blender path.
I take example from render script.
import bpy
import sys
import io_scene_owm
src = sys.argv[-1]
objects = bpy.context.scene.collection.objects
for obj in objects:
objects.unlink(obj)
settings = io_scene_owm.owm_types.OWSettings(
src, 0, 0, True, True, False, True,
True, True, True)
(rootObject, armature, meshes, empties, data) = io_scene_owm.import_owmdl.read(settings)
bpy.ops.object.select_all('SELECT')
bpy.ops.export_scene.fbx(src + '.fbx', False,
object_types={'ARMATURE', 'MESH'},
use_mesh_modifiers=True,
add_leaf_bones=True,
apply_unit_scale=True,
apply_scale_options='FBX_SCALE_NONE',
global_scale=0.01)
Fail at io_scene_owm.import_owmdl.read(settings)
Attempt to import model from \ root path, not model absolute path + material relative path.
So \Materials\00000000024D.owmat
and Materials\00000000024D.owmat
is from root path like shown in blender error
blender -P ".\src\owmdl_to_fbx.py" ".\000000000A8C.00C\000000000A8C.owmdl"
Blender 2.93.1 (hash 1b8d33b18c2f built 2021-06-22 23:47:42)
Read prefs: C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\config\userpref.blend
[owm] resetting settings
[owm] LOG_ALOT: 0
Error: Cannot read '000000000A8C.00C\Textures\0000000008B8.png': No such file or directory
[import_owmat]: error loading texture: Traceback (most recent call last):
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 56, in load_textures
tex = bpy.data.images.load(realpath, check_existing=True)
RuntimeError: Error: Cannot read '000000000A8C.00C\Textures\0000000008B8.png': No such file or directory
[import_owmat]: failed to load texture: ..\Textures\0000000008B8.png
Error: Cannot read '000000000A8C.00C\Textures\00000000000E.png': No such file or directory
[import_owmat]: error loading texture: Traceback (most recent call last):
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 56, in load_textures
tex = bpy.data.images.load(realpath, check_existing=True)
RuntimeError: Error: Cannot read '000000000A8C.00C\Textures\00000000000E.png': No such file or directory
[import_owmat]: failed to load texture: ..\Textures\00000000000E.png
Error: Cannot read '000000000A8C.00C\Textures\00000000000C.png': No such file or directory
[import_owmat]: error loading texture: Traceback (most recent call last):
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 56, in load_textures
tex = bpy.data.images.load(realpath, check_existing=True)
RuntimeError: Error: Cannot read '000000000A8C.00C\Textures\00000000000C.png': No such file or directory
[import_owmat]: failed to load texture: ..\Textures\00000000000C.png
Error: Cannot read '000000000A8C.00C\Textures\0000000008B9.png': No such file or directory
[import_owmat]: error loading texture: Traceback (most recent call last):
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 56, in load_textures
tex = bpy.data.images.load(realpath, check_existing=True)
RuntimeError: Error: Cannot read '000000000A8C.00C\Textures\0000000008B9.png': No such file or directory
[import_owmat]: failed to load texture: ..\Textures\0000000008B9.png
Error: Cannot read '000000000A8C.00C\Textures\0000000008BA.png': No such file or directory
[import_owmat]: error loading texture: Traceback (most recent call last):
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 56, in load_textures
tex = bpy.data.images.load(realpath, check_existing=True)
RuntimeError: Error: Cannot read '000000000A8C.00C\Textures\0000000008BA.png': No such file or directory
[import_owmat]: failed to load texture: ..\Textures\0000000008BA.png
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\natha\.ferramentas\OWLib\data\scripts\.\src\owmdl_to_fbx.py", line 17, in <module>
bpy.ops.object.select_all('SELECT')
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py", line 130, in __call__
ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
TypeError: Calling operator "bpy.ops.object.select_all" error, expected a string enum in ('INVOKE_DEFAULT', 'INVOKE_REGION_WIN', 'INVOKE_REGION_CHANNELS', 'INVOKE_REGION_PREVIEW', 'INVOKE_AREA', 'INVOKE_SCREEN', 'EXEC_DEFAULT', 'EXEC_REGION_WIN', 'EXEC_REGION_CHANNELS', 'EXEC_REGION_PREVIEW', 'EXEC_AREA', 'EXEC_SCREEN')
Error: File format is not supported in file 'C:\Users\natha\.ferramentas\OWLib\data\scripts\.\000000000A8C.00C\000000000A8C.owmdl'
[owm] resetting settings
[owm] LOG_ALOT: 0
Blender quit
All texture files exist and well valid.
..\blender -P "..\src\owmdl_to_fbx.py" ".\000000000A8C.owmdl"
Blender 2.93.1 (hash 1b8d33b18c2f built 2021-06-22 23:47:42)
Read prefs: C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\config\userpref.blend
[owm] resetting settings
[owm] LOG_ALOT: 0
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\natha\.ferramentas\OWLib\data\scripts\000000000A8C.00C\..\src\owmdl_to_fbx.py", line 15, in <module>
(rootObject, armature, meshes, empties, data) = io_scene_owm.import_owmdl.read(settings)
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmdl.py", line 492, in read
status = readmdl(materials, rotate)
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmdl.py", line 443, in readmdl
materials = import_owmat.read(matpath, '')
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\import_owmat.py", line 67, in read
data = read_owmat.read(filename)
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\read_owmat.py", line 14, in read
stream = openStream(bpyhelper.normpath(filename))
File "C:\Users\natha\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm\read_owmat.py", line 9, in openStream
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '\\ModelLooks\\000000000AC6.owmat'
Error: File format is not supported in file 'C:\Users\natha\.ferramentas\OWLib\data\scripts\000000000A8C.00C\.\000000000A8C.owmdl'
[owm] resetting settings
[owm] LOG_ALOT: 0
Blender quit
Trying to import an owmap but it fails even if only the model is selected to be imported. I can import heroes that are 3x the size.
Hi.
First I should mention that this page seriously needs some "readme" or what this really is and how to install it.
The first problem while installing it was that Blender 2.8.x couldn't find it in the addon list at all.
the problem was the version number behind it.
"io_scene_owm-2.0.0" didn't work but "io_scene_owm" did.
Now I can find the import/exporter in the addon list but after I activated it nothing has changed. There is no option for importing or exporting any new format.
Tested with Blender 2.8.0 and 2.8.2
Particularly noticeable when using hardpoints. Maybe because of the head + tail stuff.
Refpose armature does it correct.
refpose: https://i.imgur.com/rfSoeQw.png?1
main skele: https://i.imgur.com/lpV9SBt.png?1
The models are coming in wonderfully, fantastic job!
But... though I can see the materials have been imported and appear to be linking to all the appropriate textures... The model is just appearing kinda dark and textureless irregardless of what I do. I tired bringing in the textures after converting them to some other format and still nothing.
This appears to be what was messing up the materials.
I'm not sure if the importer is dropping them or if the extractor is dropping them.
Blender 2.8 & latest addon version
Hi, I'm frequently running into an issue regarding the way the library.blend file is linked into Blender projects. I'm in a situation where I'm often in contact with people importing and editing Overwatch models with this plugin, who then share their .blend files with me. I'll try to describe the issue as clearly as I can:
The error messages Blender outputs upon importing the model, as well as the "Blender File" view in the Outliner, reveal the absolute path to the extension on User 1's PC, leaking their username (which is often their real name): C:/Users/REDACTED/AppData/Roaming/Blender Foundation/Blender/2.82/scripts/addons/io_scene_owm-blender281/library.blend
- I'm pretty sure this is the path on the other user's computer since I use Linux, not Windows.
I would expect one of the following behaviors:
Once I explain the problem to the other person, they manage to fix it up, but new users tend to run into this over and over again. Is this a known issue with the plugin and library file? Is it fixable? Is it even possible to link a blend file without an absolute path? (or should I take this up with the Blender devs?) Would like to help you guys work towards a solution. 🙂
Thanks for your time.
Hello
I'am very greatful that you made this addon. I have been using it for a while and it worked great but now I having some issues with it. I used it to import owmdl files into Blender but now when I import a character (Genji from overwatch) I have some texture or material problems. When I look at the model I see a lot of white spots:
And if I switch to Viewport Shading it looks like this:
It is very similar to one of the textures that I found in Heroes\Genji\Skin\Overwatch\Common\Classic\Models\0000000009EC.00C\Textures which looks like this:
Can this be an Import problem? If it is do you have any idea how to fix it?
Kind regards
This section: https://github.com/overtools/io_scene_owm/blob/blender281/import_owmdl.py#L382-L388 needs to attach it to bone, not armature.
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.