STEAM 群組
Blender Source Tools BleST
STEAM 群組
Blender Source Tools BleST
247
遊戲中
1,588
線上
創立
2013 年 11 月 8 日
所有討論 > Bug Reports > 主題細節
Rectus 2019 年 11 月 14 日 上午 12:59
Error with Source 2 Vertex Colors
The Vertex Map feature appears to be broken. Both clicking the Create Source 2 Vertex Map buttons, and exporting DMX meshes from objects with with vertex colors result in error messages.

(This is not a huge issue for me at least, since it's possible to modify meshes and paint vertex colors directly in Hammer.)

DMX version is set to Binary 9, Model 22
Using version 3.0.2 with Blender 2.80

Creating a map:
Traceback (most recent call last): File "<redacted>\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_valvesource\GUI.py", line 311, in execute vc.data.foreach_set("color",[1.0] * len(vc.data) * 3) RuntimeError: internal error setting the array location: <unknown location>:-1

Exporting a mesh:
Traceback (most recent call last): File "<redacted>\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_valvesource\export_smd.py", line 211, in execute self.exportId(context, exportable.get_id()) File "<redacted>\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_valvesource\export_smd.py", line 546, in exportId else: File "<redacted>\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_valvesource\export_smd.py", line 1603, in writeDMX colour.append(0) # make a W component File "<redacted>\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_valvesource\datamodel.py", line 159, in __init__ raise TypeError("Expected {} values".format(len(self.type_str))) TypeError: Expected 4 values location: <unknown location>:-1
最後修改者:Rectus; 2019 年 11 月 14 日 上午 1:04
< >
目前顯示第 1-6 則留言,共 6
Artfunkel 2019 年 11 月 19 日 上午 9:53 
Colours changed in 2.80 and now have four components. I'll get this fixed.
此討論區的板務認為本留言為原主題提供了解答。
Artfunkel 2019 年 11 月 24 日 上午 5:11 
This will be fixed in the next release.
Rectus 2019 年 11 月 26 日 上午 2:02 
Confirmed fixed!

I can export maps that control blend textures, but it seems the valvesource_vertex_paint doesn't seem affect the tinting effect with the Vertex Colors option in the VR Standard shader in SteamVR Home. I could have sworn I had it working before, maybe it's using one of the other map names like ValveSource_VertexPaintTintColor mentioned in the changelog.
Artfunkel 2019 年 11 月 26 日 下午 12:10 
The tools currently know about these three vertex map names:

VertexPaintBlendParams$0
VertexPaintBlendParams1$0
VertexPaintTintColor$0

If there are more, please point me toward them.
Rectus 2019 年 11 月 26 日 下午 3:05 
引用自 Artfunkel
The tools currently know about these three vertex map names:

VertexPaintBlendParams$0
VertexPaintBlendParams1$0
VertexPaintTintColor$0

If there are more, please point me toward them.

Sorry, looks like i got the names in blender confused with the DMX names.

I figured out how i got the vertex color tinting working before, I imported an FBX file into the Source 2 tools. It doesn't seem to care about what the map is named in that case, and will use the vertex colors to tint the model. The VertexPaintTintColor key sounds like it should do the same thing, but it has no effect on that material setting and renders everything black instead.

Exporting as FBX doesn't seem to let the material blending work though, so one file type works for one map, and the other for the other one.

Guessing that part of the DMX importer in the current source 2 tools being broken or something.
Rectus 2020 年 2 月 5 日 上午 6:16 
I found another color attribute, this one is simply called color$0. It is what gets used by the SteamVR tools to set vertex color tinting when Vertex Color is enabled in the material settings.
< >
目前顯示第 1-6 則留言,共 6
每頁顯示: 1530 50

所有討論 > Bug Reports > 主題細節