You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was in Wolsburg for the Winterfest I saw a cub3D, in Matrix like scenario, with the walls having falls of binary numbers black on green. I'm trying now to reproduce that, starting with some experiments outside the project just to get familiar with the mlx functions, cuase I don't know them at all. If you @lmangall by chance read this and you think I can focus on more serious issue please just tell.
display an image.
display two images one with random pixels, another with a pattern
display three images, the two before and an image from a png (resizing it to the dimension with the forbidden function). The original PNG is something like 1024 x 1024, the box in the window 200 x 150.
display 4 images: the three before, plus the PNG image, but cropping it applying a background on it with a transparent window. We will see only a portion of the image and we learn about z values. These will imply creating two images, 4a, the background and 4b the actual image. MLX assign a progressive z-index to every instance of an image created starting from 0, we will assign to the background -1 and to the image -2. This 'cropping' strategy seems to be called 'clipping' https://en.wikipedia.org/wiki/Clipping_(computer_graphics)
display 5 images, the 4 before plus achieve the same result as in 4 but with a real crop. Changing the size of the image and remove the not necessary pixel. We have two possible strategy to achieve this cropping the 'texture' the mlx_texture_t thing or the mlx_image_t thing. The model says that if we don't need the whole image later, then the best approach is just to crop the texture.
display 6 images: the 5 before plus now finally the matrix-like falling code image. It should move ...
In this example it's more clear that the image has been centered. Worth noting that the original image with the resize function being 961 x 431 px got a little bit squeezed
The result is the same the the 5th image is done through a "manual" crop, which is pretty impressive. Really interesting exercide to get what this textures and images are
There are indeed "clipping masks" in software like Illustrator or Photoshop.
If you @lmangall by chance read this and you think I can focus on more serious issue please just tell.
I think you are compensating for the speed we almost finish this project at
I suppose if it is animated it is not an image per se, but I also suppose it is easy to loop through a series of images creating the illusion of an animation. Thinking of it this way I even think we could introduce it in our cub3d : 3 images (or 20) per wall as instance, the code alterning between them. I think something like Escher work would be great for this, more elegant than a matrix. Just B&W illusions, or simple things like a "spiraling spiral"...
I had the same thought about it. About the fact that at that point they are not textures anymore. Even if it is possible to reproduce the effect, letting a texture sliding down and you coule have a second instance of the texture (or better a second instance of the image) following the first instance.
I think something like Escher work would be great for this, more elegant than a matrix. Just B&W illusions, or simple things like a "spiraling spiral"...
My matrix is elegant!
552020
changed the title
matrix-like walls
elegant matrix digital rain effect for walls
Feb 9, 2024
When I was in Wolsburg for the Winterfest I saw a cub3D, in Matrix like scenario, with the walls having falls of binary numbers black on green. I'm trying now to reproduce that, starting with some experiments outside the project just to get familiar with the mlx functions, cuase I don't know them at all. If you @lmangall by chance read this and you think I can focus on more serious issue please just tell.
In this example it's more clear that the image has been centered. Worth noting that the original image with the resize function being 961 x 431 px got a little bit squeezed
The result is the same the the 5th image is done through a "manual" crop, which is pretty impressive. Really interesting exercide to get what this textures and images are
Resources
The text was updated successfully, but these errors were encountered: