This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.badlogic.gdx.assets.AssetDescriptor; | |
import com.badlogic.gdx.assets.AssetLoaderParameters; | |
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader; | |
import com.badlogic.gdx.assets.loaders.FileHandleResolver; | |
import com.badlogic.gdx.assets.loaders.TextureLoader; | |
import com.badlogic.gdx.files.FileHandle; | |
import com.badlogic.gdx.graphics.Color; | |
import com.badlogic.gdx.graphics.Texture.TextureFilter; | |
import com.badlogic.gdx.graphics.g2d.TextureRegion; | |
import com.badlogic.gdx.maps.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 8-27-24 | |
// This is the code for my youtube video https://youtu.be/Orfc-HsCI_s. It is only for generating the front mesh of the 6 sides. | |
// I hope you will be able to figure out how to make the rest of the sides. | |
// (The reason I have not put the rest of the code below is because I am not following DRY, and don't want to refactor the code rn.) | |
// I don't believe this is a good method for generating the mesh, but I was just unable to think of a better way. | |
// This is just something simple that returns a passing result. If you know how to, or have any idea, please share with me. | |
// I'd like of know different ways to create a 3D mesh. | |
// Furthermore, to solve a 3D equation, in here, because it is for testing, I've provided a hard coded equation. | |
public int resolution = 100; |