tall-teacher-57409
05/09/2023, 2:19 PMhallowed-ocean-84954
05/09/2023, 2:19 PMtall-teacher-57409
05/09/2023, 2:20 PMhallowed-ocean-84954
05/09/2023, 2:20 PMtall-teacher-57409
05/09/2023, 2:21 PMtall-teacher-57409
05/09/2023, 2:22 PMlime.ui.Window.width
?hallowed-ocean-84954
05/09/2023, 2:23 PMhallowed-ocean-84954
05/09/2023, 2:24 PMtall-teacher-57409
05/09/2023, 2:25 PMhallowed-ocean-84954
05/09/2023, 2:26 PMtall-teacher-57409
05/09/2023, 2:26 PMhallowed-ocean-84954
05/09/2023, 2:27 PMtall-teacher-57409
05/09/2023, 2:34 PMglsl
gl_Position = proj * view * model * vec4(aPos, 1.0);
in the vertex shader, can't figure out what's wrong here (the container doesn't show up but it does when I remove the proj, view, and model, and leave the vec4(aPos, 1,0))
https://cdn.discordapp.com/attachments/769686258049351722/1105503041903403129/image.png▾
tall-teacher-57409
05/09/2023, 2:35 PMhx
model = new Matrix4(new Float32Array(transMat));
model.appendRotation(-55.0 * js.lib.Math.PI / 180, new Vector4(1.0, 0.0, 0.0, 1.0));
view = new Matrix4(new Float32Array(transMat));
view.appendTranslation(0.0, 0.0, -3.0);
proj = new Matrix4(new Float32Array(transMat));
createPerspectiveZO(proj, 45.0 * js.lib.Math.PI * 180, Application.current.window.width / Application.current.window.height, 0.1, 100.0);
these are the transformed matriceshallowed-ocean-84954
05/09/2023, 3:00 PMtall-teacher-57409
05/09/2023, 3:00 PMtall-teacher-57409
05/09/2023, 3:00 PMtall-teacher-57409
05/09/2023, 3:01 PMhallowed-ocean-84954
05/09/2023, 3:01 PMhallowed-ocean-84954
05/09/2023, 3:01 PMtall-teacher-57409
05/09/2023, 3:01 PMtall-teacher-57409
05/09/2023, 3:05 PMhx
model = new Matrix4();
model.identity();
model.appendRotation(-55.0 * js.lib.Math.PI / 180, new Vector4(1.0, 0.0, 0.0, 1.0));
view = new Matrix4();
view.identity();
view.appendTranslation(0.0, 0.0, -3.0);
proj = new Matrix4();
proj.identity();
createPerspectiveZO(proj, 45.0 * js.lib.Math.PI * 180, Application.current.window.width / Application.current.window.height, 0.1, 100.0);
gl.uniformMatrix4fv(gl.getUniformLocation(program, "model"), false, model);
gl.uniformMatrix4fv(gl.getUniformLocation(program, "view"), false, view);
gl.uniformMatrix4fv(gl.getUniformLocation(program, "proj"), false, proj);
now (forgot ()
)tall-teacher-57409
05/09/2023, 3:05 PMhallowed-ocean-84954
05/09/2023, 3:22 PMtall-teacher-57409
05/09/2023, 3:23 PMtall-teacher-57409
05/09/2023, 3:23 PMtall-teacher-57409
05/09/2023, 3:28 PMhallowed-ocean-84954
05/09/2023, 3:31 PMhallowed-ocean-84954
05/09/2023, 3:43 PMtall-solstice-92437
05/09/2023, 10:18 PM