Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于json场景文件的文档以及解析报错提示信息 #45

Open
Shedneryan opened this issue Dec 16, 2022 · 2 comments
Open

关于json场景文件的文档以及解析报错提示信息 #45

Shedneryan opened this issue Dec 16, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Shedneryan
Copy link
Contributor

json场景文件配置说明2.0中仍遗漏许多信息,例如在scenes/testball/scene.json中出现的disney材质未在文档中提及,其中的若干参数也未有说明,其中 "entities" 中的各entities的属性也无说明 ......
并且,场景文件配置说明中仅说明选项的含义,也没有提到那些选项是必选的,那些是可选,可选选项的默认值是多少,选项属性值支持的范围等重要信息。
另外,若scene.json配置文件出错(例如漏了某些必选项,或用了一些不支持的值)渲染器运行时的结果只有segmentfault,没有例如具体漏了哪个选项等提示信息。(我大概看了下相关源码,基本上就是假设json一定正确而直接未检查地使用,也有遇到未支持的值不报错就直接return nullptr的)

@Shedneryan
Copy link
Contributor Author

@ChenxiZhou0619

@Shedneryan
Copy link
Contributor Author

@xiaoyaoing

@mchenwang mchenwang added the bug Something isn't working label Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants