Facepunch / sbox-issues

177 stars 12 forks source link

FBX preview #5152

Closed garrynewman closed 5 months ago

garrynewman commented 8 months ago

How hard would it be to get the fbx file generating a preview?

Image

Could we have a 3d preview in the inspector too?

aylaylay commented 8 months ago

yes

aylaylay commented 8 months ago

sbox-dev_uPe3bKuNAh

aylaylay commented 8 months ago

Pushed. Things we could do further:

KaesarZZ commented 8 months ago

Wait, we don't have a filter for .dmx? I wanted to try this.

Anyway, I'm having a perma stall of the game when I use .smd's or .fbx's

FBX's spamming this:

2024/03/12 13:19:55.1244 [engine/RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkDeviceWaitIdle( m_pDeviceVulkan ) )

SMD's spamming this in the animations files:

2024/03/12 13:11:54.2670 [engine/Engine] D:/STEAM/steamapps/common/sbox/addons/sbox_mp/weapons/fists/original/sprint.smd(3526): error: CSmdParser::HandleSkeletonLine(518): error: malformed skeleton line: "38 -0.975549 0.000000 0.000001 -0.000000 0.000000 -0.758229" 2024/03/12 13:11:54.2830 [engine/Engine] D:/STEAM/steamapps/common/sbox/addons/sbox_mp/weapons/fists/original/sprint.smd(3527): error: CSmdModelParseContext::SetBoneMatrix(126): Unexpected frame in SMD file: 80, model files only expect frame 0

aylaylay commented 8 months ago

Can you post the full log for fbx

KaesarZZ commented 8 months ago

Log.1.log.zip

aylaylay commented 8 months ago

Can you upload a fbx that it's failing on?

KaesarZZ commented 8 months ago

Huh alright, I only have the 2 .fbx's that I use to do the eye blink in Adam/Frank and even when I try to play them in modeldoc I already get the stall, I guess after your update...?

Anyway: https://drive.google.com/file/d/1ekbjQF9zYZS6laVpK1PmpcuzHpBSloCH/view?usp=sharing

If you need all the playermodel source files open me dm on discord or give me email.

aylaylay commented 8 months ago

Hopefully it shouldn't crash now. It might take a long time to load, we need to async this but your meshes have a crazy amount of data in them for some reason.

KaesarZZ commented 8 months ago

Thanks it's working, yeah I just cleaned the .fbx of useless morphs for an eye blink anim

aylaylay commented 8 months ago

Fantastic