STEAM-GRUPPE
Blender Source Tools BleST
STEAM-GRUPPE
Blender Source Tools BleST
291
I SPIL
1,949
ONLINE
Grundlagt:
8. november 2013
Alle diskussioner > Help > Trådoplysninger
Jpuffle5 15. mar. 2021 kl. 23:30
Blender to SFM Flex Issue
I have Shape Keys on a model, in Blender, that work properly with no distortion. However, when I export a .dmx, of my model, and compile with Crowbar, I get this distorted result, in HLMV and SFM, as shown in my video below. In the video, the same flex is demonstrated in Blender and in HLMV as this distortion also occurs similarly on other flexes. Also, if I import the exported .dmx back into Blender, the flexes appear to be just fine.

https://www.youtube.com/watch?v=7IMZ3vaTYe0
Sidst redigeret af Jpuffle5; 16. mar. 2021 kl. 17:39
< >
Viser 1-10 af 10 kommentarer
Pte Jack 16. mar. 2021 kl. 6:44 
Are you doubling the mesh anywhere in the head when you compile>? Are you exporting SMD or DMX files and is the face solid and doesn't have any non manifold edges or vertexes?
Jpuffle5 16. mar. 2021 kl. 13:31 
It is a DMX. There were non manifold edges or vertexes, but when I removed them, the model still had distorted flexes in HLMV. A part of the the head was duplicated, before any flexes were made, in order to have black textured faces within the head so that when the mouth is opened, black can be seen.
Pte Jack 16. mar. 2021 kl. 17:43 
By doulbling, I mean, do you have the head objects multiple build statements like

$model "blah" "head.dmx" {
blah...
blah...
}

and/or a

$body "head" "head.dmx"

and/or a

$bodygroup "head" {
studio head.dmx
studio blah...
studio blah...
blank
}
Sidst redigeret af Pte Jack; 16. mar. 2021 kl. 17:45
Jpuffle5 16. mar. 2021 kl. 17:47 
This is my QC. It is a very simple QC, body.dmx contains the whole model

$CD "D:\Desktop 12-20-19\Folders\Blender\Blender Exports\SFM Exports\Huck Rig Test"

$modelname "boomerang_from_cartoon_network\huckleberry_hound\rig_test\huck_rig_test.mdl"

$body "Body" "huck.dmx"

$mostlyopaque
$ambientboost

$cdmaterials "models\boomerang_from_cartoon_network\huckleberry_hound"

$sequence "idle" "huck.dmx" {
fps 1
}
Sidst redigeret af Jpuffle5; 16. mar. 2021 kl. 19:21
Pte Jack 16. mar. 2021 kl. 18:01 
There's only one other suggestion I can make without actually looking at the model myself and that is, when you exported the mesh, was the basis shape in Blender selected and were all the shapes zeroed?
Jpuffle5 16. mar. 2021 kl. 18:32 
Yeah. The Basis Shape Key is selected, and all of the flexes are zeroed. I still don't understand what you were getting at with the doubling, like how would that cause an issue?
Pte Jack 16. mar. 2021 kl. 18:39 
If you have 2 or more of those statements in the QC (you don't) loading the same DMX then each of the statements creates an instance of the bodygroup. One for each statement it encounters. The shapekeys/flexes become confused (and usually don't work at all), because the multiples all have flexes with the same names. It all depends on which bodygroup the game engine thinks is the one that should have shapes/flexes.

Anyway, that is not the case in your case. You have a clean QC.

I would decompile the broken model and bring it back into Blender and have a look at each of the shapes to see if I could discover what is deforming by the key and what isn't.
Sidst redigeret af Pte Jack; 16. mar. 2021 kl. 18:42
Jpuffle5 16. mar. 2021 kl. 19:20 
This is strange. When the model was decompiled, multiple SMDs were created as well as VTAs. The model also appears to be divided up within all of the SMDs.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2427089176
Jpuffle5 16. mar. 2021 kl. 20:08 
The model appeared to have too many vertices. What is the max vertices for a model again?
Pte Jack 16. mar. 2021 kl. 22:45 
For body groups (BG) is around 9000 to 11000 verts per BG unless $maxverts xxxxx (where xxxxx is up to 65530) is used in the QC. But I haven't hit the max in a model yet adding BGs.

As for the multimesh SMDs, check your model for doubles (blender m (for merge) -by distance) watch out for sealing the mouth and eyes)
Sidst redigeret af Pte Jack; 16. mar. 2021 kl. 22:47
< >
Viser 1-10 af 10 kommentarer
Per side: 1530 50

Alle diskussioner > Help > Trådoplysninger
Dato opslået: 15. mar. 2021 kl. 23:30
Indlæg: 10