Giter VIP home page Giter VIP logo

io_scene_owm's People

Contributors

aini-naire avatar mayasombra avatar naomichan avatar yretenai avatar zingballyhoo 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

io_scene_owm's Issues

maps texture

overwatch maps texture cannot be imported,Request repair

Lamps Not Working

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!

Materials and Textures not Importing

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

Error when importing map

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'

UVs not imported

Using the latest build, no UVs appear to be extracted. It's either DataTool or the importer.
Someone confirm?

2.4.1 I can import the map, but I received an error

I don't know what effect it has, but it appears at the bottom of blender after I import the map.
-1ae6238a073360f7

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

Importing don't use absolute path from model.

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.

Executing inside model folder:

..\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

Owmap doesn't seem to work

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.

doesn't show up in blender

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

Close this issue...

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.

Nothing I import has any UVs

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

Issues regarding library.blend NodeTree linkage

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:

Steps to reproduce the issue:

  1. User 1 (Windows) imports an Overwatch model using this plugin
  2. User 1 packs external data like textures into their model file (file > external data, pack into .blend file)
  3. User 1 shares the file with User 2
  4. User 2 opens the file to find that the resources from this plugin's library.blend are missing - All the NodeGroups are missing resulting in broken materials.

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.

Expected behavior:

I would expect one of the following behaviors:

  • The blend file should rely on the locally installed version of the plugin of User 2, instead of using the absolute path of User 1.
  • NodeGroups from library.blend are made local to the new blend file when User 1 packs external resources into the file.

Other things:

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.

Importing character into Blender: Issue with texture or material

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:
Genji issue
And if I switch to Viewport Shading it looks like this:
Genji issue 2
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:
Genji issue 3
Can this be an Import problem? If it is do you have any idea how to fix it?

Kind regards

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.