Search
Get Started
S
Silk.NET
•
3y ago
Wulferis
Culling is off
Culling is off
BrokenAttributes.rdc
45.87KB
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,747
Members
View on Discord
Was this page helpful?
Yes
No
K
Kai
•
8/3/23, 8:14 AM
Ok so looking at this
K
Kai
•
8/3/23, 8:14 AM
http://i.kaij.tech/file/2023/08/1691050456_grim.png
K
Kai
•
8/3/23, 8:14 AM
I presume this is correct
W
Wulferis
OP
•
8/3/23, 8:14 AM
Yeah
W
Wulferis
OP
•
8/3/23, 8:14 AM
thats the correct data being fed into the Position buffer
W
Wulferis
OP
•
8/3/23, 8:15 AM
K
Kai
•
8/3/23, 8:15 AM
was this supposed to be indexed
? You provide 6 to glDrawElements
, but the index buffer seems empty
?
W
Wulferis
OP
•
8/3/23, 8:15 AM
K
Kai
•
8/3/23, 8:15 AM
http://i.kaij.tech/file/2023/08/1691050456_grim.png
W
Wulferis
OP
•
8/3/23, 8:15 AM
In the Index buffer set RenderDoc byte offset to 0
?
K
Kai
•
8/3/23, 8:16 AM
http://i.kaij.tech/file/2023/08/1691050564_grim.png
K
Kai
•
8/3/23, 8:16 AM
yes
K
Kai
•
8/3/23, 8:16 AM
Stride 4
, which should be right for uint
, offset 0
, divisior 0
, 24 bytes
(
=6 ints
)
K
Kai
•
8/3/23, 8:16 AM
oh no wait
? Maybe the start is 24
K
Kai
•
8/3/23, 8:17 AM
maybe renderdoc is playing me
, but it started with 24 there at the top
K
Kai
•
8/3/23, 8:17 AM
http://i.kaij.tech/file/2023/08/1691050611_grim.png
W
Wulferis
OP
•
8/3/23, 8:17 AM
Yeah it does that to me too
W
Wulferis
OP
•
8/3/23, 8:17 AM
We think its a RenderDoc bug
K
Kai
•
8/3/23, 8:17 AM
Hmm
, seems fishy but maybe
?
W
Wulferis
OP
•
8/3/23, 8:18 AM
yeah i havent had it happen before so it is a lil weird for it to happen how at the same time this weird bug is occuring
W
Wulferis
OP
•
8/3/23, 8:19 AM
When i rewrote the VBO
's and stuff i just ripped the stuff from Silk
.nets Examples and made some small API Adfustments
But even before the adjustments it had the same issue
W
Wulferis
OP
•
8/3/23, 8:19 AM
K
Kai
•
8/3/23, 8:19 AM
My OpenGL is very rusty so bare with me
W
Wulferis
OP
•
8/3/23, 8:19 AM
All g
Any help is better then nothing at this point
Been stuck on this for a week now
K
Kai
•
8/3/23, 8:27 AM
Ok might be me not understanding OpenGL especially not from the renderdoc trace
, but why are there so many vertex attributes
?
K
Kai
•
8/3/23, 8:28 AM
http://i.kaij.tech/file/2023/08/1691051278_grim.png
K
Kai
•
8/3/23, 8:28 AM
this looks normal to me
K
Kai
•
8/3/23, 8:28 AM
from the offsets I
'm guessing you
're packing a bunch of info into one big buffer
?
W
Wulferis
OP
•
8/3/23, 8:28 AM
Yeah
W
Wulferis
OP
•
8/3/23, 8:29 AM
my previous VAO had all attributes in differant buffers
W
Wulferis
OP
•
8/3/23, 8:29 AM
this one packs them all into 1
K
Kai
•
8/3/23, 8:29 AM
I see
K
Kai
•
8/3/23, 8:29 AM
http://i.kaij.tech/file/2023/08/1691051336_grim.png
W
Wulferis
OP
•
8/3/23, 8:29 AM
both had the same issue
K
Kai
•
8/3/23, 8:29 AM
so is this UVs
? or what is this
W
Wulferis
OP
•
8/3/23, 8:29 AM
Yeah UVs
K
Kai
•
8/3/23, 8:29 AM
ah found the shader
, ok just for reference
K
Kai
•
8/3/23, 8:30 AM
http://i.kaij.tech/file/2023/08/1691051403_grim.png
K
Kai
•
8/3/23, 8:31 AM
ok so attribute 1
-4 are unused but you bind them
- that
's why it didn
't show up in renderdoc at first
W
Wulferis
OP
•
8/3/23, 8:31 AM
yeah atm the shader is just trying to draw a White quad to the screen
W
Wulferis
OP
•
8/3/23, 8:31 AM
but vertexPosition only ever gets the first entry inside it
W
Wulferis
OP
•
8/3/23, 8:32 AM
the VertexShader sees the Count of vertices
W
Wulferis
OP
•
8/3/23, 8:32 AM
and fills them all with
-
- values in renderdoc
W
Wulferis
OP
•
8/3/23, 8:32 AM
only the first actually has content
W
Wulferis
the VertexShader sees the Count of vertices
K
Kai
•
8/3/23, 8:33 AM
? this confuses me
- I though the whole problem was that VS only gets the first vertex
?
W
Wulferis
OP
•
8/3/23, 8:33 AM
It only gets the Data of the first one
W
Wulferis
OP
•
8/3/23, 8:33 AM
the rest appear as empty
'
-
-
'
W
Wulferis
OP
•
8/3/23, 8:34 AM
actually it sees 5 vertices
W
Wulferis
OP
•
8/3/23, 8:34 AM
it should be 4
W
Wulferis
OP
•
8/3/23, 8:34 AM
Next page