-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research textures and shaders #101
Comments
Samples of texture packs in Minecraft: https://www.pcgamesn.com/minecraft/15-best-minecraft-texture-packs The guide to read on howto create texture packs: https://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack |
Resource packs includes also animations. Here is a tutorial about it: https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/resource-packs/resource-pack-discussion/1256350-animation-in-resource-packs-a-minecraft-1-6 And in the official guide, you have info about animations also: https://minecraft.gamepedia.com/Resource_Pack#Animation |
Howto create a shader in MV: https://thebitcave.gitbook.io/magicavoxel-resources/tutorials/writing-your-first-shader How MV produces textures when exporting to polys:
Howto use textures in MV: https://magicavoxel.fandom.com/wiki/Importing_an_image_as_a_texture What's the difference between material and texture?
|
Textures repository: https://www.texturex.com/ |
https://twitter.com/voxelers/status/1281464649037357058 Next step is to start trying shaders in MV. It is pretty easy! |
But, what about shaders in Minecraft? Are they supported? texture packs don't seem to include shaders: https://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack So probably we need mods to add shaders. https://www.planetminecraft.com/blog/textureresource-pack-creation---an-indepth-tutorial/ It seems that you can download shaders and modify the GLSL included: https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/mods-discussion/2465939-how-to-make-a-glsl-shader-pack So probably, at some point someone shows howto load GLSL code in Minecraft shaders, and then it is just a matter of implementing in GLSL the shaders logic you want. GLSL Tutorial: http://www.lighthouse3d.com/tutorials/glsl-tutorial/ Howto write shaders in Minecraft: https://www.reddit.com/r/Minecraft/comments/7hwaxk/where_can_i_get_started_coding_shaders_in/dquf582/ It seems that using https://optifine.net/home and writing GLSL shaders is the way to go. There are shaders in MC for the Spectator Mode: https://minecraft.gamepedia.com/Shaders And inside the minecraft jar you can find:
and you can see it is using GLSL shaders:
|
The renderer in MagicaVoxel it is based on ray tracing: interactive path tracing renderer. https://medium.com/@junyingw/future-of-gaming-rasterization-vs-ray-tracing-vs-path-tracing-32b334510f1f |
TexturesThe idea is simple: in order to increase the resolution of the surface in the polys, a 2D texture is mapped over them. The key is to define which (u,v) of the texture use in each coordinate (x, y, z) of the poly. The pixels in a texture are called texels, and to distinct the coordinates with the polys (x, y) are called (u, v) (for example Blender does that). OpenGL uses (s,t). The values for values for a texel coordinate goes from 0 to 1 (they are normalized).
m(x,y,z)->c(u,v)->(r,g,b,a) |
Let's focus in creating a texturepack for Minecraft:
I have a first experience creating a skin for my player, that it is creating a texture for my player. |
Creating a Resource Pack in Minecrafthttps://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack Ok, creeper edition completed: It is a bit tricky to understand the texture 2D map: the idea is to imaging you are wrapping the cubes. The creeper has:
|
Changing textures in MC is interesting because the idea is the same than in other 3D tools. Let's do something similar in Blender. |
I am going to stop the texture research for a while. |
In Ray Tracing textures are also used: http://bentonian.com/Lectures/AdvGraph1314/3.%20Ray%20tracing%20-%20color%20and%20texture.pdf |
Ok, time to close this generic issue now that the more create ones have been created. |
And example with MagicaVoxel:
https://github.com/lachlanmcdonald/magicavoxel-shaders/wiki
The text was updated successfully, but these errors were encountered: