GRUPO DE STEAM
Blender Source Tools BleST
GRUPO DE STEAM
Blender Source Tools BleST
247
JUGANDO
1,680
ONLINE
Fundado
8 de noviembre de 2013
Todas las discusiones > Bug Reports > Detalles del tema
Rectus 14 NOV 2019 a las 0: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
Última edición por Rectus; 14 NOV 2019 a las 1:04
< >
Mostrando 1-6 de 6 comentarios
Artfunkel 19 NOV 2019 a las 9:53 
Colours changed in 2.80 and now have four components. I'll get this fixed.
Un moderador de este foro ha indicado que este mensaje responde al tema original.
Artfunkel 24 NOV 2019 a las 5:11 
This will be fixed in the next release.
Rectus 26 NOV 2019 a las 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 26 NOV 2019 a las 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 26 NOV 2019 a las 15:05 
Publicado originalmente por 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 5 FEB 2020 a las 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.
< >
Mostrando 1-6 de 6 comentarios
Por página: 1530 50

Todas las discusiones > Bug Reports > Detalles del tema