From 9014eb92e6a5cb3235cbcd598e45ba5391a8738a Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Mon, 1 Nov 2021 13:06:20 +0000 Subject: [PATCH] The Hello World of 3D Rendering. Co-authored-by: sigonasr2 --- src/sig/Panel.java | 20 ++++++++++++++++- src/sig/SigRenderer.java | 11 ++++++---- src/sig/Triangle.java | 46 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 6 deletions(-) diff --git a/src/sig/Panel.java b/src/sig/Panel.java index eb49f29..e7ee5f0 100644 --- a/src/sig/Panel.java +++ b/src/sig/Panel.java @@ -1,9 +1,27 @@ package sig; import javax.swing.JPanel; +import javax.vecmath.Vector3d; + import java.awt.Graphics; +import java.awt.Color; public class Panel extends JPanel{ public void paintComponent(Graphics g) { - + Vector3d origin = new Vector3d(0,0,10); + for (int x=0;x