DJ-Skaro / blender-smd

Automatically exported from code.google.com/p/blender-smd
0 stars 1 forks source link

Materials on re import. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import Valve's Original SMD from a Dota 2 Model into Blender.
2. Re-export it with no modification to a new SMD using Blender SMD Tools.
3. Import the new SMD file once again into Blender (Error happens here + no 
mesh + wrong material name)

What is the expected output? What do you see instead?
*Expected to see same import as step 1
*I get an error instead (attached below).
*Mesh doesn't appear.
*Expect to see the material name I choose during export , either blender name 
or smd name rather than a comment.

What version of the product are you using? On what operating system?
*1.25 SMD tools
*Blender 2.63a 64x
*Windows 7 Home Premium 64x

Please provide any additional information below.
*I managed to resolve the issue manually.

*It is related to material names exported and imported.

*Material name in step 3 is a code comment "//..." rather than either the 
blender name or the custom SMD name.

*I modified the bad exported SMD from step 2 using notepad++ and removed the 
comment line @ line 146 in the attached files and everything was ok on the re 
import.

Attached
* Screenshot of error message
* Valve's SMD generated using StudioCompiler for Drow Ranger hero in Dota 2 , 
using AlienSwarm SDK.
* Bad Exported SMD
* Wroking Exported SMD modified
line 146 removed // Blender material "models/heroes/drow/drow_base.tga" has 
smd_name "models/heroes/drow/drow_base.tga"

Also check material names inside blender to see how blender thinks the comment 
is the material name.

Original issue reported on code.google.com by PhoeniX...@gmail.com on 12 Jun 2012 at 6:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, fixed in 1.2.6 (r228).

Original comment by cont...@steamreview.org on 12 Jun 2012 at 6:54