flo / m3addon

Blender Addon to import and export m3 files
59 stars 17 forks source link

Blank Previewer #6

Closed DerekX closed 11 years ago

DerekX commented 12 years ago

Some models seem to export fine in .m3 format, but after importing first importing textures and then restarting SC2 editor, the .m3 models don't show up in the cutscene previewer. It's just blank...

flo commented 12 years ago

Can you be more specific which models have that issue? With the information you provided I can't reproduce the bug.

DerekX commented 12 years ago

once again, it's with Warcraft 3 models. Not to confuse with the previous issue. (You just closed it) But when I import the .m3 file into a Starcraft 2 map, the whole scene is blank. No textures, no silhouette, no nothing...

flo commented 12 years ago

Sorry, but I still don't know how to reproduce the bug. Maybe you could simplify a model that is broken so far, that it's not longer copyrighted (e.g. down to a single triangle) and post a link to it?

DerekX commented 12 years ago

If you have Warcraft 3, maybe you could try it yourself. I converted .mdx to .mdl, (Tool found at Hive Workshop) imported .mdl model(s) to Blender, followed some of your previous tutorials, exported as .m3, imported model(s) into SC2 map editor, but the previewer is still blank. And I otherwise know how to import texture first then model.

DerekX commented 12 years ago

PS: I was also trying with some user made models from Hive Workshop and there's no error when exporting from Blender to .m3.

DerekX commented 11 years ago

I just retried with the latest version. Came closer; the 3D mesh appears but still no textures, even as I imported textures first. Also, the model faces "east" instead of "south". I may still be doing something wrong...

flo commented 11 years ago

The image path which you specify in the Diffuse material layer of the "M3 Material Layers" panel needs to be the path the image has in the game (-> the import location). A path that starts with "c:..." won't work since it references your disk and has nothing to do with the location of the image in the map.

DerekX commented 11 years ago

For example? (Sample path please)

flo commented 11 years ago

If you import it as "Hello.tga" then the path you need to specify is "Hello.tga". It's also possible to use existing SC2 textures. e.g. "Assets/Textures/HPoly_Ghost_diffusemap.dds"

DerekX commented 11 years ago

That's what I've been trying... FYI: It's an exported Warcraft 3 texture, and I already converted 'em to .tga.

e.g. "Assets/Textures/War3Texture.tga." Or am I doing something else wrong importing into SC2 Editor?

DerekX commented 11 years ago

Here's how I've been getting the War3 models into Blender: https://github.com/CruzR/Blender-MDL

I could otherwise imagine doing something wrong importing there...

flo commented 11 years ago

Most likely you imported the file as "War3Texture.tga" and not as "Assets/Textures/War3Texture.tga". Thus you would have to specify the path "War3Texture.tga" and not "Assets/Textures/War3Texture.tga" in Blender

DerekX commented 11 years ago

I was thinking that too. And it worked! Thanks much Florian! :)