Java Tutorial #3 - 3D From scratch - Drawing polygons

preview_player
Показать описание
This will be very useful later!
Рекомендации по теме
Комментарии
Автор

If you mess up, like not showing up, or filling up, go back through the video, and watch the last frame of each file before he goes to another file. He's fast, just have to keep up. I did that, and it saved me a lot of time and headaches.

GeorgiosB
Автор

!! Great work !! Nice, fast, simple.

RobCardIV
Автор

What exactly means the ints in x and z ?

njredits
Автор

How do I tilt the Triangle created?

So, if I wanted to have a Triangle 90 degrees tilted to what you did.

gradscheme
Автор

How exactly is the polygon displayed? Is there a pdf I can read online on this ?

BdyPhrk
Автор

Ok I decided to redo this, so when I did I wrote this in Screen.java and my Polygon didn't show up. Is this code right?:
package MainGameFolder;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;


public class Screen extends JPanel{
PolygonObject Poly1;
public Screen()
{
Poly1 = new PolygonObject(new int[]{10, 200, 10 }, new int[]{10, 200, 400}, Color.black);
}

public void painComponent(Graphics g)

{
Poly1.drawPolygon(g);
}
}

minebug
Автор

my polygons are not filled can someone help me please

reecesmith
join shbcf.ru