diff --git a/paint/sources/project.c b/paint/sources/project.c index 7ec907c9..cb3b0ae4 100644 --- a/paint/sources/project.c +++ b/paint/sources/project.c @@ -140,12 +140,23 @@ void project_new(bool reset_layers) { char *mesh_name = project_default_mesh_list == NULL ? "box_bevel" : project_default_mesh_list->buffer[g_context->project_type]; if (string_equals(mesh_name, "sphere")) { - raw_mesh_t *mesh = geom_make_uv_sphere(1, 512, 256, true, 1.0); + raw_mesh_t *mesh = geom_make_uv_sphere(1, 128, 64, true, 1.0); + mesh->name = "Tessellated"; + raw = import_mesh_raw_mesh(mesh); + } + else if (string_equals(mesh_name, "sphere_1024")) { + raw_mesh_t *mesh = geom_make_uv_sphere(1, 1024, 512, true, 1.0); mesh->name = "Tessellated"; raw = import_mesh_raw_mesh(mesh); } else if (string_equals(mesh_name, "plane")) { - raw_mesh_t *mesh = geom_make_plane(1, 1, 512, 512, 1.0); + raw_mesh_t *mesh = geom_make_plane(1, 1, 2, 2, 1.0); + mesh->name = "Tessellated"; + raw = import_mesh_raw_mesh(mesh); + // viewport_set_view(0, 0, 0.75, 0, 0, 0); // Top + } + else if (string_equals(mesh_name, "plane_1024")) { + raw_mesh_t *mesh = geom_make_plane(1, 1, 1024, 1024, 1.0); mesh->name = "Tessellated"; raw = import_mesh_raw_mesh(mesh); // viewport_set_view(0, 0, 0.75, 0, 0, 0); // Top diff --git a/paint/sources/ui/box_new_project.c b/paint/sources/ui/box_new_project.c index 12946d31..15e0b2a0 100644 --- a/paint/sources/ui/box_new_project.c +++ b/paint/sources/ui/box_new_project.c @@ -11,7 +11,9 @@ void project_fetch_default_meshes() { project_default_mesh_list->buffer[i] = substring(project_default_mesh_list->buffer[i], 0, string_length(s) - 4); // Trim .arm } any_array_push(project_default_mesh_list, "plane"); + any_array_push(project_default_mesh_list, "plane_1024"); any_array_push(project_default_mesh_list, "sphere"); + any_array_push(project_default_mesh_list, "sphere_1024"); } } diff --git a/paint/sources/ui/tab_meshes.c b/paint/sources/ui/tab_meshes.c index 8cbaeed1..f1de8749 100644 --- a/paint/sources/ui/tab_meshes.c +++ b/paint/sources/ui/tab_meshes.c @@ -400,8 +400,16 @@ void tab_meshes_append_shape(char *mesh_name) { raw_mesh_t *mesh = geom_make_uv_sphere(1, 128, 64, true, 1.0); raw = import_mesh_raw_mesh(mesh); } + else if (string_equals(mesh_name, "sphere_1024")) { + raw_mesh_t *mesh = geom_make_uv_sphere(1, 1024, 512, true, 1.0); + raw = import_mesh_raw_mesh(mesh); + } else if (string_equals(mesh_name, "plane")) { - raw_mesh_t *mesh = geom_make_plane(1, 1, 4, 4, 1.0); + raw_mesh_t *mesh = geom_make_plane(1, 1, 2, 2, 1.0); + raw = import_mesh_raw_mesh(mesh); + } + else if (string_equals(mesh_name, "plane_1024")) { + raw_mesh_t *mesh = geom_make_plane(1, 1, 1024, 1024, 1.0); raw = import_mesh_raw_mesh(mesh); } else {