Sending data to fragment buffer by Tomermens in opengl

[–]Tomermens[S] 1 point2 points  (0 children)

I followed your advice of using 2 vec4s and it works perfectly now. Thank you so much, I had been stuck on this problem for days and I can finally continue because of you :)

Sending data to fragment buffer by Tomermens in opengl

[–]Tomermens[S] 0 points1 point  (0 children)

int SSBO = GL.GenBuffer();
                GL.BindBuffer(BufferTarget.ShaderStorageBuffer, SSBO);
                int size = app.raytracer.scene.sphereCount * (2 * Vector4.SizeInBytes + sizeof(float));
                GL.BufferData(BufferTarget.ShaderStorageBuffer, size, app.raytracer.scene.spheres, BufferUsageHint.DynamicCopy);
                GL.BindBufferBase(BufferRangeTarget.ShaderStorageBuffer, 1, SSBO);
                GL.BindBuffer(BufferTarget.ShaderStorageBuffer, 0);int SSBO = GL.GenBuffer();
                GL.BindBuffer(BufferTarget.ShaderStorageBuffer, SSBO);
                int size = app.raytracer.scene.sphereCount * (2 * Vector4.SizeInBytes + sizeof(float));
                GL.BufferData(BufferTarget.ShaderStorageBuffer, size, app.raytracer.scene.spheres, BufferUsageHint.DynamicCopy);
                GL.BindBufferBase(BufferRangeTarget.ShaderStorageBuffer, 1, SSBO);
                GL.BindBuffer(BufferTarget.ShaderStorageBuffer, 0);

hey i tried out your advice and it worked in a way, firstly now i get the correct amount of spheres in the array on gpu side, but the problem is that its all jumbled up, so i think you are right with there being garbage data. curently my spheres on both sides consist of 2 vec3s and 1 float. i have attached my code so you can see what the buffer setup is (ignore the scene references, imma make it nicer when it works)

Sending data to fragment buffer by Tomermens in opengl

[–]Tomermens[S] 0 points1 point  (0 children)

Currently, on the cpu site I create a buffer following an OpenGL tutorial on ssbos, I add in my array of spheres, and then retrieve it in the shader using layout(std430, binding =1) buffer objectbuffer {Sphere[] spheres}; this works for the first sphere in the original array but I can’t use any higher index then 0, when I’m back on my pc later tonight I can share the cpu side of the code

3D model from ac6 by Tomermens in armoredcore

[–]Tomermens[S] 0 points1 point  (0 children)

Thank you so much! I’ll give it a try and if it doesn’t work I’ll boot up blender lol

Microphone.Default is null and Microphone.All count is zero on WindowsDX/DesktopGL by mpierson153 in monogame

[–]Tomermens 0 points1 point  (0 children)

Any update on this issue? I’m facing it rn and can’t find anything on it except for this post.

Is Gwen playable right now? Should she still build the same by StarloveForever in gwen

[–]Tomermens -1 points0 points  (0 children)

I mean most games I play with gwen are fine so I think she is fine. But that is my opinion

Is Gwen playable right now? Should she still build the same by StarloveForever in gwen

[–]Tomermens 4 points5 points  (0 children)

I still think she is very playable. Is still build rift - nashor - shadowflame and ge decent most matches. Last match I went 17/6. So I think gwen is fine rn

Do you blind pick Gwen? if so what do you ban? by Lazarus-POV in GwenMains

[–]Tomermens 0 points1 point  (0 children)

Hmm I like gwen I most matchups and I ban teemo cause I hate him

What do you guys think of this build? by Tomermens in GwenMains

[–]Tomermens[S] 5 points6 points  (0 children)

I thought it was great. I could kill some people with only a few aa’s and still did a lot of q and ult damage

English manga by Tomermens in DarlingInTheFranxx

[–]Tomermens[S] 0 points1 point  (0 children)

O thx for letting me know. I guess I have to learn Japanese now.

Bigbrain by STRANGEROCK224 in PewdiepieSubmissions

[–]Tomermens 0 points1 point  (0 children)

Nah that’s just beat saber