single polygon on screen no normals workaround
This commit is contained in:
parent
a7af8150db
commit
f52d3aa18d
Binary file not shown.
@ -1,9 +1,5 @@
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: Katalog pośredni (Debug\) zawiera pliki udostępnione z innego projektu (grk-cw3.vcxproj, grk-cw4.vcxproj, grk-cw5.vcxproj). Może to spowodować niepoprawne zachowanie podczas oczyszczania i ponownej kompilacji.
|
||||
main.cpp
|
||||
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared\minwindef.h(130,1): warning C4005: "APIENTRY": ponowna definicja makra
|
||||
D:\DANE\CppProjects\grk_cw1 (1)\PlanetCreator\PlanetCreator\dependencies\glfw-3.3.8.bin.WIN32\include\GLFW\glfw3.h(123,1): message : zobacz poprzednią definicję „APIENTRY”
|
||||
D:\DANE\CppProjects\grk_cw1 (1)\PlanetCreator\PlanetCreator\cw 6\src\ex_6_1.hpp(88,10): warning C4305: "inicjowanie": obcięcie z "double" do "float"
|
||||
D:\DANE\CppProjects\grk_cw1 (1)\PlanetCreator\PlanetCreator\cw 6\src\ex_6_1.hpp(149,13): warning C4244: "inicjowanie": konwersja z "double" do "float", możliwa utrata danych
|
||||
Render_Utils.cpp
|
||||
Box.obj : warning LNK4075: zignorowano opcję „/EDITANDCONTINUE” z powodu określenia opcji „/INCREMENTAL:NO”
|
||||
LINK : warning LNK4098: domyślna biblioteka „MSVCRT” powoduje konflikt z innymi bibliotekami; użyj opcji /NODEFAULTLIB:biblioteka
|
||||
grk-cw6.vcxproj -> D:\DANE\CppProjects\grk_cw1 (1)\PlanetCreator\PlanetCreator\Debug\grk-cw6.exe
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29
PlanetCreator/cw 6/models/plants/polygon.obj
Normal file
29
PlanetCreator/cw 6/models/plants/polygon.obj
Normal file
@ -0,0 +1,29 @@
|
||||
# File generated by ImageToStl.com - Free Image and 3D model conversion tools
|
||||
|
||||
mtllib polygon_ascii.mtl
|
||||
|
||||
o obj1
|
||||
v 0 0 0
|
||||
v 0 0.866025 -0.5
|
||||
v 0 -1.73205 -1
|
||||
v 0 -2.59808 1.5
|
||||
v 0 0 5
|
||||
v 0 2.59808 1.5
|
||||
v 0 1.73205 -1
|
||||
v 0 -0.866025 -0.5
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
usemtl mat1
|
||||
f 1 2 3
|
||||
f 1 3 4
|
||||
f 1 4 5
|
||||
f 1 5 6
|
||||
f 1 6 7
|
||||
f 1 7 8
|
||||
# Vertices: 8, normals: 0, texture coordinates: 0, faces: 6
|
||||
|
22
PlanetCreator/cw 6/models/plants/polygon_ascii.mtl
Normal file
22
PlanetCreator/cw 6/models/plants/polygon_ascii.mtl
Normal file
@ -0,0 +1,22 @@
|
||||
# File generated by ImageToStl.com - Free Image and 3D model conversion tools
|
||||
|
||||
newmtl mat0
|
||||
Ns 250
|
||||
Ka 1.0 1.0 1.0
|
||||
Kd 0.2549 0.17647 0.05882
|
||||
Ks 0.0 0.0 0.0
|
||||
Ke 0.0 0.0 0.0
|
||||
Ni 1.0
|
||||
d 1.0
|
||||
illum 1
|
||||
|
||||
newmtl mat1
|
||||
Ns 250
|
||||
Ka 1.0 1.0 1.0
|
||||
Kd 0.78431 0.78431 0.78431
|
||||
Ks 0.0 0.0 0.0
|
||||
Ke 0.0 0.0 0.0
|
||||
Ni 1.0
|
||||
d 1.0
|
||||
illum 1
|
||||
|
28
PlanetCreator/cw 6/models/plants/polygon_ascii.ply
Normal file
28
PlanetCreator/cw 6/models/plants/polygon_ascii.ply
Normal file
@ -0,0 +1,28 @@
|
||||
ply
|
||||
format ascii 1.0
|
||||
comment author
|
||||
comment File Generated with PlantGL 3D Viewer
|
||||
element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
property uchar diffuse_red
|
||||
property uchar diffuse_green
|
||||
property uchar diffuse_blue
|
||||
element face 6
|
||||
property list uchar int vertex_indices
|
||||
end_header
|
||||
0 0 0 65 45 15
|
||||
0 0.866025 -0.5 65 45 15
|
||||
0 -1.73205 -1 65 45 15
|
||||
0 -2.59808 1.5 65 45 15
|
||||
0 0 5 65 45 15
|
||||
0 2.59808 1.5 65 45 15
|
||||
0 1.73205 -1 65 45 15
|
||||
0 -0.866025 -0.5 65 45 15
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
3 0 4 5
|
||||
3 0 5 6
|
||||
3 0 6 7
|
BIN
PlanetCreator/cw 6/models/plants/polygon_big.ply
Normal file
BIN
PlanetCreator/cw 6/models/plants/polygon_big.ply
Normal file
Binary file not shown.
BIN
PlanetCreator/cw 6/models/plants/polygon_little.ply
Normal file
BIN
PlanetCreator/cw 6/models/plants/polygon_little.ply
Normal file
Binary file not shown.
@ -6,17 +6,19 @@ element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
property float u
|
||||
property float v
|
||||
element face 6
|
||||
property list uchar_t int vertex_indices
|
||||
end_header
|
||||
0 0 0
|
||||
0 0.866025 -0.5
|
||||
0 -1.73205 -1
|
||||
0 -2.59808 1.5
|
||||
0 0 5
|
||||
0 2.59808 1.5
|
||||
0 1.73205 -1
|
||||
0 -0.866025 -0.5
|
||||
0 0 0 0 0
|
||||
0 0.866025 -0.5 0 0
|
||||
0 -1.73205 -1 0 0
|
||||
0 -2.59808 1.5 0 0
|
||||
0 0 5 0 0
|
||||
0 2.59808 1.5 0 0
|
||||
0 1.73205 -1 0 0
|
||||
0 -0.866025 -0.5 0 0
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
|
@ -0,0 +1,25 @@
|
||||
ply
|
||||
format ascii 1.0
|
||||
comment author
|
||||
comment File Generated with PlantGL 3D Viewer
|
||||
element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
element face 6
|
||||
property list uchar_t int vertex_indices
|
||||
end_header
|
||||
0 0 0
|
||||
0 0.866025 -0.5
|
||||
0 -1.73205 -1
|
||||
0 -2.59808 1.5
|
||||
0 0 5
|
||||
0 2.59808 1.5
|
||||
0 1.73205 -1
|
||||
0 -0.866025 -0.5
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
3 0 4 5
|
||||
3 0 5 6
|
||||
3 0 6 7
|
@ -6,11 +6,11 @@ element vertex 12738
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
property uchar_t diffuse_red
|
||||
property uchar_t diffuse_green
|
||||
property uchar_t diffuse_blue
|
||||
property uchar diffuse_red
|
||||
property uchar diffuse_green
|
||||
property uchar diffuse_blue
|
||||
element face 18096
|
||||
property list uchar_t int vertex_indices
|
||||
property list uchar int vertex_indices
|
||||
end_header
|
||||
16.383 11.4279 -0.99981 60 60 15
|
||||
16.383 75.4516 730.795 60 60 15
|
@ -10,7 +10,8 @@
|
||||
|
||||
|
||||
|
||||
void Core::RenderContext::initFromAssimpMesh(aiMesh* mesh) {
|
||||
|
||||
void Core::RenderContext::initFromAssimpMesh2(aiMesh* mesh) {
|
||||
vertexArray = 0;
|
||||
vertexBuffer = 0;
|
||||
vertexIndexBuffer = 0;
|
||||
@ -25,6 +26,7 @@ void Core::RenderContext::initFromAssimpMesh(aiMesh* mesh) {
|
||||
textureCoord.push_back(mesh->mTextureCoords[0][i].y);
|
||||
}
|
||||
else {
|
||||
std::cout << "did else ok?" << std::endl;
|
||||
textureCoord.push_back(0.0f);
|
||||
textureCoord.push_back(0.0f);
|
||||
}
|
||||
@ -86,6 +88,83 @@ void Core::RenderContext::initFromAssimpMesh(aiMesh* mesh) {
|
||||
|
||||
}
|
||||
|
||||
void Core::RenderContext::initFromAssimpMesh(aiMesh* mesh) {
|
||||
vertexArray = 0;
|
||||
vertexBuffer = 0;
|
||||
vertexIndexBuffer = 0;
|
||||
|
||||
std::vector<float> textureCoord;
|
||||
std::vector<unsigned int> indices;
|
||||
//tex coord must be converted to 2d vecs
|
||||
for (unsigned int i = 0; i < mesh->mNumVertices; i++)
|
||||
{
|
||||
if (mesh->mTextureCoords[0] != nullptr) {
|
||||
textureCoord.push_back(mesh->mTextureCoords[0][i].x);
|
||||
textureCoord.push_back(mesh->mTextureCoords[0][i].y);
|
||||
}
|
||||
else {
|
||||
std::cout << "did else ok?"<<std::endl;
|
||||
textureCoord.push_back(0.0f);
|
||||
textureCoord.push_back(0.0f);
|
||||
}
|
||||
}
|
||||
if (mesh->mTextureCoords[0] == nullptr) {
|
||||
std::cout << "no uv coords\n";
|
||||
}
|
||||
for (unsigned int i = 0; i < mesh->mNumFaces; i++)
|
||||
{
|
||||
aiFace face = mesh->mFaces[i];
|
||||
// retrieve all indices of the face and store them in the indices vector
|
||||
for (unsigned int j = 0; j < face.mNumIndices; j++)
|
||||
indices.push_back(face.mIndices[j]);
|
||||
}
|
||||
|
||||
unsigned int vertexDataBufferSize = sizeof(float) * mesh->mNumVertices * 3;
|
||||
unsigned int vertexNormalBufferSize = sizeof(float) * mesh->mNumVertices * 3;
|
||||
unsigned int vertexTexBufferSize = sizeof(float) * mesh->mNumVertices * 2;
|
||||
unsigned int vertexTangentBufferSize = sizeof(float) * mesh->mNumVertices * 3;
|
||||
unsigned int vertexBiTangentBufferSize = sizeof(float) * mesh->mNumVertices * 3;
|
||||
|
||||
unsigned int vertexElementBufferSize = sizeof(unsigned int) * indices.size();
|
||||
size = indices.size();
|
||||
|
||||
glGenVertexArrays(1, &vertexArray);
|
||||
glBindVertexArray(vertexArray);
|
||||
|
||||
|
||||
glGenBuffers(1, &vertexIndexBuffer);
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vertexIndexBuffer);
|
||||
glBufferData(GL_ELEMENT_ARRAY_BUFFER, vertexElementBufferSize, &indices[0], GL_STATIC_DRAW);
|
||||
|
||||
glGenBuffers(1, &vertexBuffer);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer);
|
||||
//std::cout << vertexBuffer;
|
||||
glEnableVertexAttribArray(0);
|
||||
glEnableVertexAttribArray(1);
|
||||
glEnableVertexAttribArray(2);
|
||||
glEnableVertexAttribArray(3);
|
||||
glEnableVertexAttribArray(4);
|
||||
|
||||
glBufferData(GL_ARRAY_BUFFER, vertexDataBufferSize + vertexNormalBufferSize + vertexTexBufferSize + vertexTangentBufferSize + vertexBiTangentBufferSize, NULL, GL_STATIC_DRAW);
|
||||
|
||||
glBufferSubData(GL_ARRAY_BUFFER, 0, vertexDataBufferSize, mesh->mVertices);
|
||||
|
||||
// glBufferSubData(GL_ARRAY_BUFFER, vertexDataBufferSize, vertexNormalBufferSize, mesh->mNormals);
|
||||
|
||||
glBufferSubData(GL_ARRAY_BUFFER, vertexDataBufferSize + vertexNormalBufferSize, vertexTexBufferSize, &textureCoord[0]);
|
||||
|
||||
//glBufferSubData(GL_ARRAY_BUFFER, vertexDataBufferSize + vertexNormalBufferSize + vertexTexBufferSize, vertexTangentBufferSize, mesh->mTangents);
|
||||
|
||||
//glBufferSubData(GL_ARRAY_BUFFER, vertexDataBufferSize + vertexNormalBufferSize + vertexTexBufferSize + vertexTangentBufferSize, vertexBiTangentBufferSize, mesh->mBitangents);
|
||||
|
||||
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, (void*)(0));
|
||||
glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, (void*)(vertexDataBufferSize));
|
||||
glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, 0, (void*)(vertexNormalBufferSize + vertexDataBufferSize));
|
||||
glVertexAttribPointer(3, 3, GL_FLOAT, GL_FALSE, 0, (void*)(vertexDataBufferSize + vertexNormalBufferSize + vertexTexBufferSize));
|
||||
glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 0, (void*)(vertexDataBufferSize + vertexNormalBufferSize + vertexTexBufferSize + vertexTangentBufferSize));
|
||||
|
||||
}
|
||||
|
||||
void Core::DrawVertexArray(const float * vertexArray, int numVertices, int elementSize )
|
||||
{
|
||||
glVertexAttribPointer(0, elementSize, GL_FLOAT, false, 0, vertexArray);
|
||||
|
@ -20,6 +20,7 @@ namespace Core
|
||||
void initFromOBJ(obj::Model& model);
|
||||
|
||||
void initFromAssimpMesh(aiMesh* mesh);
|
||||
void initFromAssimpMesh2(aiMesh* mesh);
|
||||
};
|
||||
|
||||
// vertexArray - jednowymiarowa tablica zawierajaca wartosci opisujace pozycje kolejnych wierzcholkow w jednym ciagu (x1, y1, z1, w1, x2, y2, z2, w2, ...)
|
||||
|
@ -189,7 +189,8 @@ void loadModelToContext2(std::string path, Core::RenderContext& context)
|
||||
std::cout << "ERROR::ASSIMP::" << import.GetErrorString() << std::endl;
|
||||
return;
|
||||
}
|
||||
context.initFromAssimpMesh(scene->mMeshes[0]);
|
||||
|
||||
context.initFromAssimpMesh2(scene->mMeshes[0]);
|
||||
}
|
||||
|
||||
void loadModelToContext(std::string path, Core::RenderContext& context)
|
||||
@ -215,9 +216,11 @@ void init(GLFWwindow* window)
|
||||
programSun = shaderLoader.CreateProgram("shaders/shader_5_sun.vert", "shaders/shader_5_sun.frag");
|
||||
programBiomes = shaderLoader.CreateProgram("shaders/shader_biomes.vert", "shaders/shader_biomes.frag");
|
||||
|
||||
loadModelToContext("./models/plants/polygon.obj", plantContext);
|
||||
|
||||
loadModelToContext("./models/sphere.obj", sphereContext);
|
||||
loadModelToContext("./models/spaceship.obj", shipContext);
|
||||
loadModelToContext2("./models/plants/test_polygon_1.ply",plantContext);
|
||||
|
||||
texture::earth=Core::LoadTexture("textures/earth2.png");
|
||||
texture::clouds = Core::LoadTexture("textures/clouds.jpg");
|
||||
texture::moon = Core::LoadTexture("textures/moon_normals.png");
|
||||
|
29
PlanetCreator/cw6/models/plants/polygon.obj
Normal file
29
PlanetCreator/cw6/models/plants/polygon.obj
Normal file
@ -0,0 +1,29 @@
|
||||
# File generated by ImageToStl.com - Free Image and 3D model conversion tools
|
||||
|
||||
mtllib polygon_ascii.mtl
|
||||
|
||||
o obj1
|
||||
v 0 0 0
|
||||
v 0 0.866025 -0.5
|
||||
v 0 -1.73205 -1
|
||||
v 0 -2.59808 1.5
|
||||
v 0 0 5
|
||||
v 0 2.59808 1.5
|
||||
v 0 1.73205 -1
|
||||
v 0 -0.866025 -0.5
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
vn 0 0 0
|
||||
usemtl mat1
|
||||
f 1 2 3
|
||||
f 1 3 4
|
||||
f 1 4 5
|
||||
f 1 5 6
|
||||
f 1 6 7
|
||||
f 1 7 8
|
||||
# Vertices: 8, normals: 0, texture coordinates: 0, faces: 6
|
||||
|
22
PlanetCreator/cw6/models/plants/polygon_ascii.mtl
Normal file
22
PlanetCreator/cw6/models/plants/polygon_ascii.mtl
Normal file
@ -0,0 +1,22 @@
|
||||
# File generated by ImageToStl.com - Free Image and 3D model conversion tools
|
||||
|
||||
newmtl mat0
|
||||
Ns 250
|
||||
Ka 1.0 1.0 1.0
|
||||
Kd 0.2549 0.17647 0.05882
|
||||
Ks 0.0 0.0 0.0
|
||||
Ke 0.0 0.0 0.0
|
||||
Ni 1.0
|
||||
d 1.0
|
||||
illum 1
|
||||
|
||||
newmtl mat1
|
||||
Ns 250
|
||||
Ka 1.0 1.0 1.0
|
||||
Kd 0.78431 0.78431 0.78431
|
||||
Ks 0.0 0.0 0.0
|
||||
Ke 0.0 0.0 0.0
|
||||
Ni 1.0
|
||||
d 1.0
|
||||
illum 1
|
||||
|
28
PlanetCreator/cw6/models/plants/polygon_ascii.ply
Normal file
28
PlanetCreator/cw6/models/plants/polygon_ascii.ply
Normal file
@ -0,0 +1,28 @@
|
||||
ply
|
||||
format ascii 1.0
|
||||
comment author
|
||||
comment File Generated with PlantGL 3D Viewer
|
||||
element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
property uchar diffuse_red
|
||||
property uchar diffuse_green
|
||||
property uchar diffuse_blue
|
||||
element face 6
|
||||
property list uchar int vertex_indices
|
||||
end_header
|
||||
0 0 0 65 45 15
|
||||
0 0.866025 -0.5 65 45 15
|
||||
0 -1.73205 -1 65 45 15
|
||||
0 -2.59808 1.5 65 45 15
|
||||
0 0 5 65 45 15
|
||||
0 2.59808 1.5 65 45 15
|
||||
0 1.73205 -1 65 45 15
|
||||
0 -0.866025 -0.5 65 45 15
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
3 0 4 5
|
||||
3 0 5 6
|
||||
3 0 6 7
|
BIN
PlanetCreator/cw6/models/plants/polygon_big.ply
Normal file
BIN
PlanetCreator/cw6/models/plants/polygon_big.ply
Normal file
Binary file not shown.
BIN
PlanetCreator/cw6/models/plants/polygon_little.ply
Normal file
BIN
PlanetCreator/cw6/models/plants/polygon_little.ply
Normal file
Binary file not shown.
27
PlanetCreator/cw6/models/plants/test_polygon_1.ply
Normal file
27
PlanetCreator/cw6/models/plants/test_polygon_1.ply
Normal file
@ -0,0 +1,27 @@
|
||||
ply
|
||||
format ascii 1.0
|
||||
comment author
|
||||
comment File Generated with PlantGL 3D Viewer
|
||||
element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
property float u
|
||||
property float v
|
||||
element face 6
|
||||
property list uchar_t int vertex_indices
|
||||
end_header
|
||||
0 0 0 0 0
|
||||
0 0.866025 -0.5 0 0
|
||||
0 -1.73205 -1 0 0
|
||||
0 -2.59808 1.5 0 0
|
||||
0 0 5 0 0
|
||||
0 2.59808 1.5 0 0
|
||||
0 1.73205 -1 0 0
|
||||
0 -0.866025 -0.5 0 0
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
3 0 4 5
|
||||
3 0 5 6
|
||||
3 0 6 7
|
25
PlanetCreator/cw6/models/plants/test_polygon_unchanged_1.ply
Normal file
25
PlanetCreator/cw6/models/plants/test_polygon_unchanged_1.ply
Normal file
@ -0,0 +1,25 @@
|
||||
ply
|
||||
format ascii 1.0
|
||||
comment author
|
||||
comment File Generated with PlantGL 3D Viewer
|
||||
element vertex 8
|
||||
property float x
|
||||
property float y
|
||||
property float z
|
||||
element face 6
|
||||
property list uchar_t int vertex_indices
|
||||
end_header
|
||||
0 0 0
|
||||
0 0.866025 -0.5
|
||||
0 -1.73205 -1
|
||||
0 -2.59808 1.5
|
||||
0 0 5
|
||||
0 2.59808 1.5
|
||||
0 1.73205 -1
|
||||
0 -0.866025 -0.5
|
||||
3 0 1 2
|
||||
3 0 2 3
|
||||
3 0 3 4
|
||||
3 0 4 5
|
||||
3 0 5 6
|
||||
3 0 6 7
|
315
PlanetCreator/cw6/models/spaceship.obj
Normal file
315
PlanetCreator/cw6/models/spaceship.obj
Normal file
@ -0,0 +1,315 @@
|
||||
# Blender v2.90.0 OBJ File: 'spaceship.blend'
|
||||
# www.blender.org
|
||||
mtllib spaceship.mtl
|
||||
o spaceship
|
||||
v -0.466043 -0.046099 0.061004
|
||||
v -0.496632 -0.038727 -0.744142
|
||||
v -0.284772 -0.093266 -0.411636
|
||||
v -0.169612 -0.147446 -0.381196
|
||||
v -0.169612 -0.147446 0.061004
|
||||
v -0.091309 -0.100093 0.472421
|
||||
v -0.182617 -0.069341 0.472421
|
||||
v -0.182617 -0.001722 0.472421
|
||||
v -0.466043 0.045632 0.061004
|
||||
v -0.647568 0.071442 -0.238048
|
||||
v -0.169612 0.164038 0.061004
|
||||
v -0.284772 0.045632 -0.411636
|
||||
v -0.169612 0.116537 -0.381196
|
||||
v -0.053437 -0.049075 0.720448
|
||||
v -0.053437 -0.102143 0.720448
|
||||
v -0.040834 -0.049075 0.734564
|
||||
v -0.040834 -0.102143 0.734564
|
||||
v 0.000000 -0.049075 0.744142
|
||||
v 0.000000 -0.118734 0.744142
|
||||
v 0.040834 -0.049075 0.734564
|
||||
v 0.000000 0.045779 0.472421
|
||||
v 0.000000 -0.116684 0.472421
|
||||
v 0.091309 -0.100093 0.472421
|
||||
v 0.040834 -0.102143 0.734564
|
||||
v 0.000000 0.116537 -0.350755
|
||||
v 0.000000 0.164038 0.061004
|
||||
v 0.169612 -0.147446 -0.381196
|
||||
v 0.000000 -0.164038 -0.350755
|
||||
v 0.169612 0.164038 0.061004
|
||||
v 0.169612 0.116537 -0.381196
|
||||
v 0.000000 -0.164038 0.061004
|
||||
v 0.169612 -0.147446 0.061004
|
||||
v -0.647568 -0.038727 -0.238048
|
||||
v -0.496632 0.071442 -0.744142
|
||||
v -0.091309 0.045779 0.472421
|
||||
v 0.466043 -0.046099 0.061004
|
||||
v 0.647568 0.071442 -0.238048
|
||||
v 0.466043 0.045632 0.061004
|
||||
v 0.496632 -0.038727 -0.744142
|
||||
v 0.647568 -0.038727 -0.238048
|
||||
v 0.284772 -0.093266 -0.411636
|
||||
v 0.182617 -0.001722 0.472421
|
||||
v 0.182617 -0.069341 0.472421
|
||||
v 0.284772 0.045632 -0.411636
|
||||
v 0.053437 -0.049075 0.720448
|
||||
v 0.053437 -0.102143 0.720448
|
||||
v 0.496632 0.071442 -0.744142
|
||||
v 0.091309 0.045779 0.472421
|
||||
vt 0.542758 0.543965
|
||||
vt 0.356004 0.244407
|
||||
vt 0.504680 0.319696
|
||||
vt 0.553316 0.302407
|
||||
vt 0.649859 0.471001
|
||||
vt 0.766053 0.611338
|
||||
vt 0.733075 0.633795
|
||||
vt 0.942531 0.273938
|
||||
vt 0.916601 0.470616
|
||||
vt 0.908930 0.272020
|
||||
vt 0.906245 0.133229
|
||||
vt 0.060793 0.659810
|
||||
vt 0.095301 0.442790
|
||||
vt 0.182444 0.620892
|
||||
vt 0.912119 0.905444
|
||||
vt 0.989612 0.943366
|
||||
vt 0.900946 0.955153
|
||||
vt 0.229586 0.822972
|
||||
vt 0.045790 0.812939
|
||||
vt 0.871970 0.876051
|
||||
vt 0.270733 0.797357
|
||||
vt 0.928563 0.581569
|
||||
vt 0.948002 0.582679
|
||||
vt 0.928200 0.588981
|
||||
vt 0.833604 0.696984
|
||||
vt 0.841128 0.699424
|
||||
vt 0.941370 0.472030
|
||||
vt 0.927606 0.601110
|
||||
vt 0.953122 0.602566
|
||||
vt 0.116239 0.298971
|
||||
vt 0.134935 0.296266
|
||||
vt 0.170287 0.416872
|
||||
vt 0.947639 0.590091
|
||||
vt 0.858040 0.692927
|
||||
vt 0.798664 0.589407
|
||||
vt 1.000000 0.000000
|
||||
vt 0.975078 0.013585
|
||||
vt 0.974484 0.001457
|
||||
vt 0.830416 0.568707
|
||||
vt 0.869911 0.680359
|
||||
vt 0.785184 0.955792
|
||||
vt 0.850736 0.970525
|
||||
vt 0.334379 0.757520
|
||||
vt 0.252163 0.593452
|
||||
vt 0.740866 0.846584
|
||||
vt 0.807753 0.855379
|
||||
vt 0.321881 0.566013
|
||||
vt 0.410170 0.742478
|
||||
vt 0.620171 0.273802
|
||||
vt 0.672876 0.223217
|
||||
vt 0.710068 0.430790
|
||||
vt 0.769418 0.391811
|
||||
vt 0.946599 0.135534
|
||||
vt 0.413299 0.472597
|
||||
vt 0.208789 0.994633
|
||||
vt 0.953122 0.002304
|
||||
vt 0.980750 0.982793
|
||||
vt 0.912767 0.000000
|
||||
vt 0.101366 0.309478
|
||||
vt 0.132755 0.431644
|
||||
vt 0.099001 0.317265
|
||||
vt 0.989409 0.328628
|
||||
vt 0.953122 0.469337
|
||||
vt 0.955808 0.330547
|
||||
vt 0.871271 0.326374
|
||||
vt 0.706080 0.012535
|
||||
vt 0.869769 0.170254
|
||||
vt 0.705415 0.186739
|
||||
vt 0.963479 0.131951
|
||||
vt 0.988248 0.130536
|
||||
vt 0.443922 0.509019
|
||||
vt 0.463695 0.730833
|
||||
vt 0.578150 0.603414
|
||||
vt 0.692001 0.855970
|
||||
vt 0.680828 0.905679
|
||||
vt 0.605734 0.857085
|
||||
vt 0.719632 0.941058
|
||||
vt 0.975441 0.020998
|
||||
vt 0.994879 0.019888
|
||||
vt 0.142931 0.299975
|
||||
vt 0.245429 0.383703
|
||||
vt 0.994516 0.012475
|
||||
vt 0.871271 0.672035
|
||||
vt 0.861802 0.548533
|
||||
vt 0.993477 0.467033
|
||||
vt 1.000000 0.600262
|
||||
vt 0.959645 0.602566
|
||||
vt 0.617066 0.833945
|
||||
vt 0.596872 0.896513
|
||||
vt 0.207819 0.402100
|
||||
vn -0.2502 -0.9682 0.0006
|
||||
vn -0.3235 -0.9462 -0.0000
|
||||
vn -0.3158 -0.9343 0.1651
|
||||
vn -0.3186 -0.9329 0.1677
|
||||
vn -0.3148 -0.9349 0.1641
|
||||
vn -0.8235 0.0000 0.5673
|
||||
vn -0.8548 0.0000 0.5189
|
||||
vn -0.3487 0.8731 0.3407
|
||||
vn 0.8434 0.0000 -0.5374
|
||||
vn -0.4103 -0.9095 -0.0666
|
||||
vn 0.0862 0.9958 0.0321
|
||||
vn 0.0832 0.9962 0.0257
|
||||
vn 0.0868 0.9957 0.0333
|
||||
vn 0.2556 0.0000 -0.9668
|
||||
vn -0.5043 0.8586 -0.0922
|
||||
vn -0.8869 0.0000 0.4619
|
||||
vn -0.7459 0.0000 0.6660
|
||||
vn 0.0112 -0.9999 -0.0100
|
||||
vn -0.2284 0.0000 0.9736
|
||||
vn 0.0771 0.9413 0.3286
|
||||
vn -0.1788 -0.9839 -0.0074
|
||||
vn 0.2284 0.0000 0.9736
|
||||
vn 0.3892 -0.9187 0.0677
|
||||
vn 0.1766 0.0000 -0.9843
|
||||
vn 0.0000 0.9934 -0.1146
|
||||
vn -0.1766 0.0000 -0.9843
|
||||
vn -0.0192 0.9941 -0.1068
|
||||
vn 0.0974 -0.9952 -0.0000
|
||||
vn -0.0974 -0.9952 -0.0000
|
||||
vn -0.0965 -0.9866 0.1319
|
||||
vn 0.1776 -0.9776 0.1125
|
||||
vn -0.0272 -0.9996 -0.0081
|
||||
vn 0.0827 0.9963 0.0247
|
||||
vn -0.9583 -0.0000 -0.2858
|
||||
vn -0.3892 -0.9187 0.0677
|
||||
vn 0.0000 0.9403 0.3403
|
||||
vn -0.4230 0.8237 0.3776
|
||||
vn -0.4240 0.8230 0.3780
|
||||
vn -0.4228 0.8239 0.3775
|
||||
vn 0.0192 0.9941 -0.1068
|
||||
vn -0.3672 0.9194 -0.1408
|
||||
vn 0.0000 0.9611 0.2763
|
||||
vn -0.4366 0.8392 0.3243
|
||||
vn -0.3189 -0.9328 0.1681
|
||||
vn -0.4270 0.8209 0.3792
|
||||
vn -0.0771 0.9413 0.3286
|
||||
vn -0.1776 -0.9776 0.1125
|
||||
vn 0.1788 -0.9839 -0.0074
|
||||
vn -0.3189 -0.9469 0.0409
|
||||
vn 0.8548 -0.0000 0.5189
|
||||
vn 0.0272 -0.9996 -0.0081
|
||||
vn 0.4103 -0.9095 -0.0666
|
||||
vn 0.3158 -0.9343 0.1651
|
||||
vn 0.3186 -0.9329 0.1677
|
||||
vn 0.3189 -0.9328 0.1681
|
||||
vn 0.8235 0.0000 0.5673
|
||||
vn 0.3672 0.9194 -0.1408
|
||||
vn -0.0868 0.9957 0.0333
|
||||
vn -0.0832 0.9962 0.0257
|
||||
vn -0.0862 0.9958 0.0321
|
||||
vn 0.2502 -0.9682 0.0006
|
||||
vn -0.2556 0.0000 -0.9668
|
||||
vn -0.8434 0.0000 -0.5374
|
||||
vn 0.7459 0.0000 0.6660
|
||||
vn 0.4228 0.8239 0.3775
|
||||
vn 0.4240 0.8230 0.3780
|
||||
vn 0.4230 0.8237 0.3776
|
||||
vn 0.3189 -0.9469 0.0409
|
||||
vn 0.8869 0.0000 0.4619
|
||||
vn 0.9583 -0.0000 -0.2858
|
||||
vn -0.0827 0.9963 0.0247
|
||||
vn -0.0112 -0.9999 -0.0100
|
||||
vn 0.4270 0.8209 0.3792
|
||||
vn 0.5043 0.8586 -0.0922
|
||||
vn 0.3487 0.8731 0.3407
|
||||
vn 0.3235 -0.9462 -0.0000
|
||||
vn 0.0965 -0.9866 0.1319
|
||||
vn 0.4366 0.8392 0.3243
|
||||
vn 0.3148 -0.9349 0.1641
|
||||
usemtl cube1_auv
|
||||
s 1
|
||||
f 1/1/1 2/2/1 3/3/1
|
||||
f 1/1/2 4/4/2 5/5/2
|
||||
f 1/1/3 6/6/4 7/7/5
|
||||
f 1/8/6 8/9/6 9/10/6
|
||||
f 9/10/7 10/11/7 1/8/7
|
||||
f 9/12/8 8/13/8 11/14/8
|
||||
f 3/15/9 2/16/9 12/17/9
|
||||
f 3/3/10 4/4/10 1/1/10
|
||||
f 12/18/11 10/19/12 9/12/13
|
||||
f 12/17/14 4/20/14 3/15/14
|
||||
f 12/18/15 11/14/15 13/21/15
|
||||
f 14/22/16 8/9/16 15/23/16
|
||||
f 15/23/17 16/24/17 14/22/17
|
||||
f 15/25/18 6/6/18 17/26/18
|
||||
f 15/23/16 8/9/16 7/27/16
|
||||
f 18/28/19 16/24/19 19/29/19
|
||||
f 18/30/20 20/31/20 21/32/20
|
||||
f 19/29/19 16/24/19 17/33/19
|
||||
f 19/34/21 6/6/21 22/35/21
|
||||
f 19/36/22 20/37/22 18/38/22
|
||||
f 19/34/23 23/39/23 24/40/23
|
||||
f 25/41/24 4/20/24 13/42/24
|
||||
f 25/43/25 11/14/25 26/44/25
|
||||
f 25/41/26 27/45/26 28/46/26
|
||||
f 25/43/27 29/47/27 30/48/27
|
||||
f 28/46/24 4/20/24 25/41/24
|
||||
f 28/49/28 27/50/28 31/51/28
|
||||
f 26/44/25 29/47/25 25/43/25
|
||||
f 31/51/29 4/4/29 28/49/29
|
||||
f 31/51/30 6/6/30 5/5/30
|
||||
f 31/51/28 27/50/28 32/52/28
|
||||
f 31/51/31 23/39/31 22/35/31
|
||||
f 33/53/7 1/8/7 10/11/7
|
||||
f 33/54/32 2/2/32 1/1/32
|
||||
f 10/19/12 12/18/11 34/55/33
|
||||
f 10/11/34 2/56/34 33/53/34
|
||||
f 34/57/9 12/17/9 2/16/9
|
||||
f 34/58/34 2/56/34 10/11/34
|
||||
f 17/33/17 16/24/17 15/23/17
|
||||
f 17/26/35 6/6/35 19/34/35
|
||||
f 16/59/36 21/32/36 35/60/36
|
||||
f 16/59/37 8/13/38 14/61/39
|
||||
f 13/42/14 4/20/14 12/17/14
|
||||
f 13/21/40 11/14/40 25/43/40
|
||||
f 11/14/41 12/18/41 9/12/41
|
||||
f 11/14/42 21/32/42 26/44/42
|
||||
f 11/14/43 8/13/43 35/60/43
|
||||
f 5/5/29 4/4/29 31/51/29
|
||||
f 5/5/44 6/6/4 1/1/3
|
||||
f 35/60/42 21/32/42 11/14/42
|
||||
f 35/60/45 8/13/38 16/59/37
|
||||
f 21/32/46 16/59/46 18/30/46
|
||||
f 21/32/42 29/47/42 26/44/42
|
||||
f 22/35/47 6/6/47 31/51/47
|
||||
f 22/35/48 23/39/48 19/34/48
|
||||
f 7/7/49 6/6/49 15/25/49
|
||||
f 7/27/6 8/9/6 1/8/6
|
||||
f 36/62/50 37/63/50 38/64/50
|
||||
f 36/65/51 39/66/51 40/67/51
|
||||
f 36/65/52 27/50/52 41/68/52
|
||||
f 36/65/53 23/39/54 32/52/55
|
||||
f 36/62/56 42/69/56 43/70/56
|
||||
f 38/71/57 44/72/57 29/47/57
|
||||
f 38/71/58 37/73/59 44/72/60
|
||||
f 38/64/56 42/69/56 36/62/56
|
||||
f 41/68/61 39/66/61 36/65/61
|
||||
f 41/74/62 27/45/62 44/75/62
|
||||
f 44/75/63 39/76/63 41/74/63
|
||||
f 44/75/62 27/45/62 30/77/62
|
||||
f 45/78/64 20/37/64 46/79/64
|
||||
f 45/80/65 42/81/66 20/31/67
|
||||
f 46/79/64 20/37/64 24/82/64
|
||||
f 46/83/68 23/39/68 43/84/68
|
||||
f 46/79/69 42/69/69 45/78/69
|
||||
f 40/85/70 39/86/70 37/63/70
|
||||
f 37/63/50 36/62/50 40/85/50
|
||||
f 37/63/70 39/86/70 47/87/70
|
||||
f 47/88/71 44/72/60 37/73/59
|
||||
f 39/76/63 44/75/63 47/89/63
|
||||
f 24/82/22 20/37/22 19/36/22
|
||||
f 24/40/72 23/39/72 46/83/72
|
||||
f 20/31/67 42/81/66 48/90/73
|
||||
f 30/77/26 27/45/26 25/41/26
|
||||
f 30/48/74 29/47/74 44/72/74
|
||||
f 29/47/42 21/32/42 48/90/42
|
||||
f 29/47/75 42/81/75 38/71/75
|
||||
f 32/52/76 27/50/76 36/65/76
|
||||
f 32/52/77 23/39/77 31/51/77
|
||||
f 48/90/36 21/32/36 20/31/36
|
||||
f 48/90/78 42/81/78 29/47/78
|
||||
f 43/84/79 23/39/54 36/65/53
|
||||
f 43/70/69 42/69/69 46/79/69
|
2500
PlanetCreator/cw6/models/sphere.obj
Normal file
2500
PlanetCreator/cw6/models/sphere.obj
Normal file
File diff suppressed because it is too large
Load Diff
30848
PlanetCreator/cw6/models/test_plant_1.ply
Normal file
30848
PlanetCreator/cw6/models/test_plant_1.ply
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user