Problems with buffers
Posted: 31 Mar 2020, 03:18
I have been working on a Noesis integration for cryengine for a bit now with the new 3.0 beta release.(https://github.com/sunnlok/CryNoesis)
I have got the shader converted and loading in all different variants as well as the input and constant buffers updating.
I am still facing a few problems.
1:
I am not really sure how all the vertex and input mappings are supposed to work in regards to offsets. The techniques used in the dx11 sample seem a bit... arbitrary to me and i have some difficulty adapting them. It works fine for simple xamls though if it only draws 1-2 batches. Havent tested more.
2:
The values for the projection matrix are weird. The copy properly to the gpu, i have checked with renderdoc, but the values themselves seem wrong and project a simple square beyond all measure. Not sure if i need to set up something differently here.
3:
The actual vertices submitted in the batches seem wrong, for the hello world xaml i am only getting the background, with correct color, and a cross shape with 24 vertices.
I hope you guys can help me out!
This is what i get for the hello world sample

I have got the shader converted and loading in all different variants as well as the input and constant buffers updating.
I am still facing a few problems.
1:
I am not really sure how all the vertex and input mappings are supposed to work in regards to offsets. The techniques used in the dx11 sample seem a bit... arbitrary to me and i have some difficulty adapting them. It works fine for simple xamls though if it only draws 1-2 batches. Havent tested more.
2:
The values for the projection matrix are weird. The copy properly to the gpu, i have checked with renderdoc, but the values themselves seem wrong and project a simple square beyond all measure. Not sure if i need to set up something differently here.
3:
The actual vertices submitted in the batches seem wrong, for the hello world xaml i am only getting the background, with correct color, and a cross shape with 24 vertices.
I hope you guys can help me out!
This is what i get for the hello world sample



