sunxlei / srender Goto Github PK
View Code? Open in Web Editor NEWA c++ implemtation of software rasterization application with pbr
A c++ implemtation of software rasterization application with pbr
没别的意思,真的是为了学习的目的(迫真
您好,首先感谢您提供的宝贵的实战参考,有几个问题想请教一下
一个不太重要的问题,如题所述,因为msbuild会把文件编译后放在build/Debug下所以默认情况下反而会找不到模型文件。或许加个命令行参数让他接收一下目录位置也好。当然这个项目的前提下,可能这个也不是很重要。
另外想知道您是用什么环境开发的,CLion、VS或者说其他的工具。我注意到在VS下编译的程序帧数比我用MinGW编译的要低20帧以上,所以感觉您在调试的时候大概至少不是用的VC的编译器(提供的二进制文件以及我在VS下编译的文件表现相同,VS在程序刚启动的镜头距离下帧数大概是5帧,而MinGW的是28帧左右。近距离观察的情况下VS的版本只有1帧甚至都不到,而MinGW依然可以保持5到8帧左右)。导致这个巨大的帧数差有什么明确的原因吗?
最后有个额外的问题想请教,因为图形api包括winapi相关的工程我之前都在VS下构建的,想尝试cmake管理项目但是碰到些阻碍。比如自己写OpenGL的时候用的GLFW、或者之前看的软渲器项目的时候,涉及winapi调用的话似乎有几个动态链接库是需要链接的,VS创建的项目都会自动在Linker->Input添加user32,gdi32和shell32几个库,但是换编译器的话就不太清楚怎么写了。我没有找到您项目里牵扯这方面的设定,cmake生成VS工程是自动引入那几个库的,但生成makefile的话似乎就没有相关的设定,但结果依然可以正常调用而不牵扯任何undefined reference的问题。可以麻烦您讲解下具体原理或者提供一些相关文档吗。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.