Stage did not run. No output. Pixel Shader Hi everybody! After moving from XNA math to DX math, during rendering multiple objects (WorldObject instances, which have a reference to ModelClass instance as member), some objects are not drawn. For example, i deploy 4 teapots in the world, but only 2 of them are drawn. With help of DirectX Debugger i found that when i call Render function for WorldObjects, their vertex buffers are successfully loaded into input assembler, but vertex shader's output has nothing, and pixel shader stage didn't run. Firstly, i thought that i have trouble with mapping contant buffer where matrices (world, view, projection) are held, but if it is, why are not draw only certain models? I'm confused, maybe somebody can prompt where can be issue... Rendering chain: GameScene -> WorldObjects -> ModelClass -> ShaderClass Attached report and source files. ModelClass.h http://bit.ly/2vutuMC ModelClass.cpp http://bit.ly/2PKnlFy ShaderClass.h http://bit.ly/2vu1loZ ShaderClass.cpp http://bit.ly/2PKnmcA Structures.h http://bit.ly/2vvz4hZ Vertex shader http://bit.ly/2PHhIrB Pixel shader http://bit.ly/2vwg5nm report.diagsession https://ift.tt/eA8V8J
Hi everybody! After moving from XNA math to DX math, during rendering multiple objects (WorldObject instances, which have a reference to ModelClass instance as member), some objects are not drawn. For example, i deploy 4 teapots in the world, but only 2 of them are drawn. With help of DirectX Debugger i found that when i call Render function for WorldObjects, their vertex buffers are successfully loaded into input assembler, but vertex shader's output has nothing, and pixel shader stage didn't run. Firstly, i thought that i have trouble with mapping contant buffer where matrices (world, view, projection) are held, but if it is, why are not draw only certain models? I'm confused, maybe somebody can prompt where can be issue... Rendering chain: GameScene -> WorldObjects -> ModelClass -> ShaderClass Attached report and source files. ModelClass.h http://bit.ly/2vutuMC ModelClass.cpp http://bit.ly/2PKnlFy ShaderClass.h http://bit.ly/2vu1loZ ShaderClass.cpp http://bit.ly/2PKnmcA Structures.h http://bit.ly/2vvz4hZ Vertex shader http://bit.ly/2PHhIrB Pixel shader http://bit.ly/2vwg5nm report.diagsession
from GameDev.net http://bit.ly/2PEwcbx
from GameDev.net http://bit.ly/2PEwcbx
ليست هناك تعليقات