ΟΜΑΔΑ STEAM
Blender Source Tools BleST
ΟΜΑΔΑ STEAM
Blender Source Tools BleST
279
ΣΕ ΠΑΙΧΝΙΔΙ
1,752
ΣΥΝΔΕΔΕΜΕΝΟΙ
Ίδρυση
8 Νοεμβρίου 2013
Όλες οι συζητήσεις > Bug Reports > Λεπτομέρειες θέματος
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; 14 Νοε 2019, 1:04
< >
Εμφάνιση 1-6 από 6 σχόλια
Colours changed in 2.80 and now have four components. I'll get this fixed.
Ένας διαχειριστής του φόρουμ έχει επισημάνει ότι αυτή η ανάρτηση απαντάει στο αρχικό θέμα.
This will be fixed in the next release.
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.
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.
Αναρτήθηκε αρχικά από 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.
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 > Λεπτομέρειες θέματος