GaijinEntertainment / DagorEngine

Dagor Engine and Tools source code from Gaijin Games KFT
Other
2.14k stars 267 forks source link

Attempting to export the Dag file from the blender results in an error #37

Closed vmintf closed 4 months ago

vmintf commented 4 months ago

issue I'm getting this error. Is there a way to fix it?

Ninkorr commented 4 months ago

Hello. Thanks for report, we're working on fixing it. For now, you can add Smoothing Groups manually:

vmintf commented 4 months ago

Thank you for your quick response. I'll try the temporary measure you mentioned.

vmintf commented 4 months ago

It's working well. Thanks.

vmintf commented 4 months ago

I have one more question besides this. This is off the topic, but is there a way to switch from prefab to dyn model?

NicSavichev commented 4 months ago

I have one more question besides this. This is off the topic, but is there a way to switch from prefab to dyn model?

dynmodel, prefab and rendinst differ only in used shaders for render, as a source it is the same DAG (geometry with materials). .folder.blk in assets library is used to generate asset of required type (dynmodel or prefab) for given .dag usually basing on regexp. So we treat .lod00.dag as first lod of dynModel and simple *.dag as prefab. More info on asset system here: https://github.com/GaijinEntertainment/DagorEngine/blob/main/assets_docs.md

vmintf commented 4 months ago

이 외에도 질문이 하나 더 있습니다. 주제에서 벗어난 내용인데, 프리팹에서 Dyn 모델로 전환할 수 있는 방법이 있나요?

dynmodel, prefab 및 rendinst는 렌더링에 사용되는 셰이더에서만 다르며 소스는 동일한 DAG(재료가 있는 형상)입니다. 자산 라이브러리의 .folder.blk는 일반적으로 정규 표현식을 기반으로 특정 .dag에 대해 필요한 유형(dynmodel 또는 prefab)의 자산을 생성하는 데 사용됩니다. 따라서 .lod00.dag를 dynModel의 첫 번째 lod로 처리하고 간단한 *.dag를 프리팹으로 처리합니다. 자산 시스템에 대한 자세한 내용은 여기를 참조하세요: https://github.com/GaijinEntertainment/DagorEngine/blob/main/assets_docs.md

Thanks to you, I solved it. Thank you.

NicSavichev commented 4 months ago

Should be fixed (blender addon source code in repo and prebuilt ZIP in releases)