Making Sprites in 3D

25 days ago
1

Adobe Illustrator
Blender
Unity
Notepad++

You can write a script that generates a landscape,
and using that same method you can generate your 3D models with code.
Now think about the possibilities here.
Really consider how your 3D model has so many vertices and can't be modified normally.
Like Mortal Kombat on the Nintendo 64.
The artists couldn't just show a different frame of animation where limbs are removed right?
Because they were limited by the model.
Again, think.
If you can generate a model from code, then you can change the vector points and triangle mid-game. You're not restricted anymore.
If you want to turn your character into a dragon, you model the character, then the dragon, and everything in between to have the code erase the vector points you don't want and replace them with a new array of vector points and an array of triangles that use those numbered points.
It's like drawing constellations. Each point is like a star, and you draw lines connecting them.
You have to be careful to draw triangles in the right direction, starting at the bottom left point.
Declare your variables above the Start() or Awake() function of your script.
So three vector points in an array... give the array any name you want. I'm choosing "_pointsArray".
_pointsArray = new Vector3[] {new Vector3(0,0,0), new Vector3(0, 2, 0), new Vector3(2,2,0), new Vector3(2,0,0),};
Then you make a triangles array as an int (integer array).
triangles = new int[] {0, 1, 2,};

Loading comments...