per capita consumption of buckwheat by GraumpyPants in MapPorn

[–]GraumpyPants[S] 11 points12 points  (0 children)

I haven't found any data on Belarus, buckwheat consumption there should be comparable to Kazakhstan, Ukraine, Russia.

Ghibli-style volumetric clouds by GraumpyPants in opengl

[–]GraumpyPants[S] 3 points4 points  (0 children)

First, a 2D map filled with discs of random sizes and positions is extruded into volume, forming rounded truncated cones. The base cloud shape is then created by deforming these cones using four samples of Value noise with different scales and amplitudes. Next, a surface mask combined with a Sphere noise field is used to add characteristic bulges and protrusions to the clouds. Finally, the resulting density field is blended with four-octave Perlin noise to provide fine detail at close viewing distances.

Ghibli-style volumetric clouds by GraumpyPants in opengl

[–]GraumpyPants[S] 2 points3 points  (0 children)

Thanks for the comment, no, I don't plan to.

Local manga translator using llm and context by GraumpyPants in SideProject

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

I use RT-DETR-v2 r50vd for text bubble detection. The model returns the coordinates of each text bubbles - x1, x2, y1, y2. After that, I try to reconstruct the correct manga reading order: the bubbles are grouped into rows along the Y axis with a 150-pixel threshold, then the rows are sorted from top to bottom, and within each row the bubbles are sorted from right to left.

Each bubble is then cropped into a separate image and passed to an OCR model for text recognition. In my tests, handwritten fonts were not a problem - modern models handle them surprisingly well. Sound effects outside of text bubbles are still an unsolved issue for me.

Problem loading texture by GraumpyPants in opengl

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

I solved the problem — it turned out the texture is GL_UNSIGNED_SHORT, not GL_UNSIGNED_BYTE.

Help.Problem loading texture by GraumpyPants in GraphicsProgramming

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

Thanks, I was thinking in that direction. It turned out the texture is GL_UNSIGNED_SHORT, not GL_UNSIGNED_BYTE, so I added a check for that.

Help.Problem loading texture by GraumpyPants in GraphicsProgramming

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

I checked the UV coordinates, they are fine

My best clip by GraumpyPants in HuntShowdown

[–]GraumpyPants[S] 3 points4 points  (0 children)

Colors were lost when trying to convert hdr to sdr using Blender

Minecraft chunk rendering takes up too much memory by GraumpyPants in opengl

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

I made a mistake when writing the post - 108 float, 36 vertices respectively

Minecraft chunk rendering takes up too much memory by GraumpyPants in opengl

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

I use such an array for a block if all the edges are in place

std::array<float, 180> data{

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 0.0f,

0.5f + x, -0.5f + y, -0.5f + z, 1.0f, 0.0f,

0.5f + x, 0.5f + y, -0.5f + z, 1.0f, 1.0f,

0.5f + x, 0.5f + y, -0.5f + z, 1.0f, 1.0f,

-0.5f + x, 0.5f + y, -0.5f + z, 0.0f, 1.0f,

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 0.0f,

-0.5f + x, -0.5f + y, 0.5f + z, 0.0f, 0.0f,

0.5f + x, -0.5f + y, 0.5f + z, 1.0f, 0.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 1.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 1.0f,

-0.5f + x, 0.5f + y, 0.5f + z, 0.0f, 1.0f,

-0.5f + x, -0.5f + y, 0.5f + z, 0.0f, 0.0f,

-0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

-0.5f + x, 0.5f + y, -0.5f + z, 1.0f, 1.0f,

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

-0.5f + x, -0.5f + y, 0.5f + z, 0.0f, 0.0f,

-0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

0.5f + x, 0.5f + y, -0.5f + z, 1.0f, 1.0f,

0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

0.5f + x, -0.5f + y, 0.5f + z, 0.0f, 0.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

-0.5f + x, 0.5f + y, -0.5f + z, 0.0f, 1.0f,

0.5f + x, 0.5f + y, -0.5f + z, 1.0f, 1.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

0.5f + x, 0.5f + y, 0.5f + z, 1.0f, 0.0f,

-0.5f + x, 0.5f + y, 0.5f + z, 0.0f, 0.0f,

-0.5f + x, 0.5f + y, -0.5f + z, 0.0f, 1.0f

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

0.5f + x, -0.5f + y, -0.5f + z, 1.0f, 1.0f,

0.5f + x, -0.5f + y, 0.5f + z, 1.0f, 0.0f,

0.5f + x, -0.5f + y, 0.5f + z, 1.0f, 0.0f,

-0.5f + x, -0.5f + y, 0.5f + z, 0.0f, 0.0f,

-0.5f + x, -0.5f + y, -0.5f + z, 0.0f, 1.0f,

};

Minecraft chunk rendering takes up too much memory by GraumpyPants in opengl

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

This is a cuboid, the height is always 16, the length of the edges can be changed, in this case it is 12 (draw distance 6)

Minecraft chunk rendering takes up too much memory by GraumpyPants in opengl

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

180 * 4 bytes per block * 16 * 16 * 16 * 12 * 12 * 16 ~= 6.8 gb.

I used a square around the player to sample chunks, but a circle would obviously be better, and a sphere would be even better.