WaveFront(.obj) addon: When it was imported as individual object with 'Split by object ' option, dummy material is added. vertex group is not recognized definitely. #45012

Closed
opened 2015-06-10 01:49:19 +02:00 by perfection cat · 7 comments

System Information
windows XP/SP3 32bits

Blender Version
Broken: version 2.74 (sub 5), branch b'master', commit date b'2015-06-08' b'21:48', hash b'e1b8ed8', b'Release'
Worked: unknown

Short description of error
When it was imported as individual object with 'Split by object 'option, dummy material is added.
vertex group is not recognized definitely.
Exact steps for others to reproduce the error
Export OBJ files with 'Objects as OBJ objects' option using an attached file.
Import exported OBJ files with 'Split by object 'option.
Dummy material is added.
attached file:
4ColorsPlus1.blend
The current exporter uses weight of vertex to decide vertex group including face.
(See findVertexGroupName of the exporter).
However, I do not understand the grounds that vertex weight is used for.
There cannot be the relationship between them.
You can confirm it in this attached file.
4Colors.blend
When the obj files which I exported in an attached file are imported, one vertex group is insufficient.
The current exporter does not output the face data of the edge form.
Therefore, I revised exporter so that all of vertex group including all vertexs which constituted face owned face.
In addition, the correction about the dummy material is included in revised exporter.
I attach the py file which revised this bug.
{F188516}export_obj.py

**System Information** windows XP/SP3 32bits **Blender Version** Broken: version 2.74 (sub 5), branch b'master', commit date b'2015-06-08' b'21:48', hash b'e1b8ed8', b'Release' Worked: unknown **Short description of error** When it was imported as individual object with 'Split by object 'option, dummy material is added. vertex group is not recognized definitely. **Exact steps for others to reproduce the error** Export OBJ files with 'Objects as OBJ objects' option using an attached file. Import exported OBJ files with 'Split by object 'option. Dummy material is added. attached file: [4ColorsPlus1.blend](https://archive.blender.org/developer/F188514/4ColorsPlus1.blend) The current exporter uses weight of vertex to decide vertex group including face. (See findVertexGroupName of the exporter). However, I do not understand the grounds that vertex weight is used for. There cannot be the relationship between them. You can confirm it in this attached file. [4Colors.blend](https://archive.blender.org/developer/F188521/4Colors.blend) When the obj files which I exported in an attached file are imported, one vertex group is insufficient. The current exporter does not output the face data of the edge form. Therefore, I revised exporter so that all of vertex group including all vertexs which constituted face owned face. In addition, the correction about the dummy material is included in revised exporter. I attach the py file which revised this bug. {[F188516](https://archive.blender.org/developer/F188516/import_obj.py)}[export_obj.py](https://archive.blender.org/developer/F188517/export_obj.py)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @sindra1961

Added subscriber: @sindra1961

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-06-10 08:11:15 +02:00

Thanks for report, but no bug here:

  • When we export materials, all faces must receive a material, hence we generate an empty, dummy one for faces which have none, this is no bug at all.
  • Weights are also important in vgroups, in your example file the four verts of blue vgroup sum up to 0.4, while the three of the same face in green vgroup sum up to 3.0, so the later is chosen, which is expected behavior. Changing this behavior is no bug fixing, but design discussion, where you need a large base of users to agree another behavior would be needed/better.
Thanks for report, but no bug here: * When we export materials, all faces must receive a material, hence we generate an empty, dummy one for faces which have none, this is no bug at all. * Weights are also important in vgroups, in your example file the four verts of blue vgroup sum up to 0.4, while the three of the same face in green vgroup sum up to 3.0, so the later is chosen, which is expected behavior. Changing this behavior is no bug fixing, but design discussion, where you need a large base of users to agree another behavior would be needed/better.
Author

@Bastien Montagne (mont29):
I understood it.
I use this personally.
Thanks.

@Bastien Montagne (mont29): I understood it. I use this personally. Thanks.
Author

I understood that the present processing was based on specifications.
It cannot be understood whether the present specifications are right to me.

I understood that the present processing was based on specifications. It cannot be understood whether the present specifications are right to me.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#45012
No description provided.