Author SHA1 Message Date
Jannick van Ballegooijen 6732a55097 dafuq 2016-06-22 02:27:09 +02:00
Jannick van Ballegooijen 6f8c2955eb added all static objects to world TODO enemies 2016-06-22 01:51:25 +02:00
Jannick van Ballegooijen ec83d31065 optimized grass 2016-06-22 01:10:29 +02:00
Jannick van Ballegooijen e69008b083 added models : note to myself : am genius 2016-06-22 01:05:49 +02:00
Jannick van Ballegooijen ddadafecff added ice world base 2016-06-22 00:23:35 +02:00
Jannick van Ballegooijen eaeff6ed7d normal smoothing 2016-06-21 15:28:15 +02:00
kennyboy55 6096e53d94 Merge pull request #21 from CrystalPointA4/feature/Sounds
Bugfixes, added sound to portal and enemy in JSON
2016-06-21 13:53:30 +02:00
kennyboy55 8700aa90af Bugfixes, added sound to portal and enemy in JSON 2016-06-21 13:51:16 +02:00
kennyboy55 7c4805d899 Merge pull request #18 from CrystalPointA4/feature/Menu
Feature/menu
2016-06-20 20:43:00 +02:00
kennyboy55 e42779f6c7 Fixed project files 2016-06-20 20:42:35 +02:00
kennyboy55 ce2f658b61 Merge branch 'developer' into feature/Menu 2016-06-20 20:39:00 +02:00
kennyboy55 3701918ac9 Bugfix 2016-06-20 20:38:56 +02:00
kennyboy55 d887328907 Merge pull request #19 from CrystalPointA4/feature/werkendewav
Feature/werkendewav
2016-06-20 20:37:14 +02:00
kennyboy55 8cf1b02cf7 Merge branch 'developer' into feature/werkendewav 2016-06-20 20:34:35 +02:00
Janco Kock 779cf5cb91 Merge pull request #20 from CrystalPointA4/linux_refactor
Working version for linux
2016-06-20 20:11:10 +02:00
jancoow 030a136e8b Working version for linux 2016-06-20 20:00:58 +02:00
Aaldert f93c09a999 rock heeft muziek 2016-06-20 15:48:57 +02:00
Aaldert 587b79044b Delete 2016-06-20 15:41:39 +02:00
Aaldert dba9c581b1 world aangepast 2016-06-20 15:33:07 +02:00
Aaldert d5406120c6 Enemy speelt cow! 2016-06-20 15:30:38 +02:00
Remco e081373a45 Merge branch 'developer' into feature/Menu
# Conflicts:
#	CrystalPoint.vcxproj.filters
#	Main.cpp
#	Skybox.cpp
#	Skybox.h
2016-06-20 15:23:55 +02:00
Remco 98f3645b6b menu pauses game, able to resume the game. exit game by pause menu 2016-06-20 15:20:12 +02:00
Aaldert 5c776e3d3a Test 2016-06-20 14:53:40 +02:00
Remco 03c06e0974 delete action pointer 2016-06-20 13:44:02 +02:00
Aaldert b7d73c9abe Test 1 2016-06-20 13:43:13 +02:00
Remco 7758f2c294 able to give button a funtion pointer, who will be called when clicked on the button 2016-06-20 13:42:28 +02:00
Remco 2e50d11e07 able to click with cursor, button detect clicking event 2016-06-20 13:29:28 +02:00
Remco 1ec3c8f346 buttons shows when ever the cursor is in the button 2016-06-20 12:50:51 +02:00
Remco 8dcee70324 button, text is placed in middle of button, plane is placed behind text 2016-06-20 12:38:16 +02:00
Remco 6cf9437620 button is draw by menu 2016-06-20 12:11:24 +02:00
kennyboy55 ced3ff4462 Attempt implement menu (unresolved symbol error) 2016-06-09 17:56:37 +02:00
82 changed files with 11558 additions and 134 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
+76
View File
@@ -0,0 +1,76 @@
#include "Button.h"
#include <string>
#include "Util.h"
#include "Vector.h"
#include "Cursor.h"
Button::Button(const std::string & text, Vec2f position, float width, float height) : Text(text,position)
{
this->width = width;
this->height = height;
this->planePosition = position;
cursorOnButton = false;
alfa = 0.5f;
background = Vec3f(10, 10, 10);
//foreground = Vec3f(255, 255, 255);
this->setColor(Vec3f(255, 255, 255));
this->position.x += width / 2 - textWidth / 2;
this->position.y += height / 2 - textHeight / 2;
}
Button::~Button()
{
/*if (action != nullptr)
delete action;*/
}
void Button::draw(void)
{
glColor4f(background.x/255.0f, background.y / 255.0f, background.z / 255.0f, alfa);
glBegin(GL_QUADS);
glVertex2f(planePosition.x, planePosition.y);
glVertex2f(planePosition.x, planePosition.y + height);
glVertex2f(planePosition.x + width, planePosition.y + height);
glVertex2f(planePosition.x + width, planePosition.y);
glEnd();
/*glColor4f(foreground.x / 255.0f, foreground.y / 255.0f, foreground.z / 255.0f, 1.0f);
Util::glutBitmapString(text, position.x, position.y+height/2+14/2);*/
Text::draw();
}
void Button::update(int x, int y)
{
cursorOnButton =
(x > planePosition.x && x < planePosition.x + width) &&
y > planePosition.y && y < planePosition.y + height;
if (cursorOnButton)
alfa = 1.0f;
else
alfa = 0.5f;
if (cursorOnButton && Cursor::getInstance()->clicked)
if(action != nullptr)
action(this);
}
void Button::addAction(action_function action)
{
this->action = action;
}
void Button::setForeground(Vec3f color)
{
this->setColor(color);
}
void Button::setBackground(Vec3f color)
{
background = color;
}
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include "Text.h"
class Button : public Text
{
private:
typedef void(*action_function)(Button* b);
float width, height;
Vec3f background;
Vec2f planePosition;
bool cursorOnButton;
float alfa;
action_function action = nullptr;
public:
Button(const std::string &text, Vec2f position, float width, float height);
~Button();
void draw();
void update(int x, int y);
void addAction(action_function action);
void setForeground(Vec3f color);
void setBackground(Vec3f color);
};
+4 -3
View File
@@ -10,6 +10,7 @@ add_executable(CrystalPoint ${SOURCE_FILES})
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED) find_package(GLUT REQUIRED)
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} ) find_package(OpenAL REQUIRED)
target_link_libraries(CrystalPoint ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ) include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIRS} )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall ") target_link_libraries(CrystalPoint ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${OPENAL_LIBRARY} )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -lpthread")
+48 -12
View File
@@ -5,23 +5,31 @@
#include <cstring> #include <cstring>
#include "WorldHandler.h" #include "WorldHandler.h"
#include "Player.h" #include "Player.h"
#include "Cursor.h"
#include "Menu.h"
#include "Text.h"
#include "Vector.h"
#include "Button.h"
int CrystalPoint::width = 0; int CrystalPoint::width = 0;
int CrystalPoint::height = 0; int CrystalPoint::height = 0;
SoundSystem CrystalPoint::sound_system; SoundSystem CrystalPoint::sound_system;
bool state = false;
void CrystalPoint::init() void CrystalPoint::init()
{ {
player = Player::getInstance(); player = Player::getInstance();
worldhandler = WorldHandler::getInstance(); worldhandler = WorldHandler::getInstance();
//cursor = Cursor::getInstance(); cursor = Cursor::getInstance();
menu = new Menu();
buildMenu();
lastFrameTime = 0; lastFrameTime = 0;
state = true;
glClearColor(0.7f, 0.7f, 1.0f, 1.0f); glClearColor(0.7f, 0.7f, 1.0f, 1.0f);
mousePosition = Vec2f(width / 2, height / 2);
} }
@@ -39,10 +47,11 @@ void CrystalPoint::draw()
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glLoadIdentity(); glLoadIdentity();
worldhandler->draw(); worldhandler->draw();
//cursor->draw(); if(!state)
menu->draw();
glutSwapBuffers(); glutSwapBuffers();
} }
@@ -53,12 +62,15 @@ void CrystalPoint::update()
float deltaTime = frameTime - lastFrameTime; float deltaTime = frameTime - lastFrameTime;
lastFrameTime = frameTime; lastFrameTime = frameTime;
if (keyboardState.keys[27] && !prevKeyboardState.keys[27])
state = !state;
if (state)
{
if (keyboardState.special[GLUT_KEY_LEFT] && !prevKeyboardState.special[GLUT_KEY_LEFT]) if (keyboardState.special[GLUT_KEY_LEFT] && !prevKeyboardState.special[GLUT_KEY_LEFT])
worldhandler->PreviousWorld(); worldhandler->PreviousWorld();
if (keyboardState.special[GLUT_KEY_RIGHT] && !prevKeyboardState.special[GLUT_KEY_RIGHT]) if (keyboardState.special[GLUT_KEY_RIGHT] && !prevKeyboardState.special[GLUT_KEY_RIGHT])
worldhandler->NextWorld(); worldhandler->NextWorld();
if (keyboardState.keys[27])
exit(0);
Player* player = Player::getInstance(); Player* player = Player::getInstance();
@@ -81,13 +93,15 @@ void CrystalPoint::update()
if (!worldhandler->isPlayerPositionValid()) if (!worldhandler->isPlayerPositionValid())
player->position = oldPosition; player->position = oldPosition;
player->position.y = worldhandler->getHeight(player->position.x, player->position.z) + 2.5f;
player->position.y = worldhandler->getHeight(player->position.x, player->position.z) + 1.7f;
worldhandler->update(deltaTime); worldhandler->update(deltaTime);
}
else
{
menu->update();
cursor->update(cursor->mousePosition + mouseOffset);
}
mousePosition = mousePosition + mouseOffset;
//cursor->update(mousePosition);
mouseOffset = Vec2f(0, 0); mouseOffset = Vec2f(0, 0);
prevKeyboardState = keyboardState; prevKeyboardState = keyboardState;
@@ -96,6 +110,28 @@ void CrystalPoint::update()
sound_system.SetListener(player->position, Vec3f(), Vec3f()); sound_system.SetListener(player->position, Vec3f(), Vec3f());
} }
void CrystalPoint::buildMenu()
{
Button* start = new Button("Resume", Vec2f(1920 / 2 - 50, 1080 / 2 - 30), 100, 50);
auto toWorld = [](Button* b)
{
state = true;
};
start->addAction(toWorld);
menu->AddMenuElement(start);
Button* test = new Button("Exit", Vec2f(1920 / 2 - 50, 1080 / 2 + 30), 100, 50);
test->addAction([](Button* b)
{
exit(0);
});
menu->AddMenuElement(test);
Text* t = new Text("Pause", Vec2f(1920 / 2 - Util::glutTextWidth("Pause") / 2, 1080 / 2 - 75));
t->setColor(Vec3f(255, 255, 0));
menu->AddMenuElement(t);
}
KeyboardState::KeyboardState() KeyboardState::KeyboardState()
+7
View File
@@ -3,6 +3,8 @@
class WorldHandler; class WorldHandler;
class SoundSystem; class SoundSystem;
class Player; class Player;
class Cursor;
class Menu;
#include "Vector.h" #include "Vector.h"
#include "SoundSystem.h" #include "SoundSystem.h"
@@ -25,6 +27,9 @@ public:
WorldHandler* worldhandler; WorldHandler* worldhandler;
Player* player; Player* player;
Cursor* cursor;
Menu* menu;
static int width, height; static int width, height;
KeyboardState keyboardState; KeyboardState keyboardState;
@@ -37,6 +42,8 @@ public:
static SoundSystem& GetSoundSystem() { return sound_system; } static SoundSystem& GetSoundSystem() { return sound_system; }
private: private:
static SoundSystem sound_system; static SoundSystem sound_system;
void buildMenu();
}; };
+11
View File
@@ -154,6 +154,7 @@
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="Button.cpp" />
<ClCompile Include="Crystal.cpp" /> <ClCompile Include="Crystal.cpp" />
<ClCompile Include="CrystalPoint.cpp" /> <ClCompile Include="CrystalPoint.cpp" />
<ClCompile Include="Cursor.cpp" /> <ClCompile Include="Cursor.cpp" />
@@ -164,18 +165,23 @@
<ClCompile Include="json.cpp" /> <ClCompile Include="json.cpp" />
<ClCompile Include="LevelObject.cpp" /> <ClCompile Include="LevelObject.cpp" />
<ClCompile Include="Main.cpp" /> <ClCompile Include="Main.cpp" />
<ClCompile Include="Menu.cpp" />
<ClCompile Include="MenuElement.cpp" />
<ClCompile Include="Model.cpp" /> <ClCompile Include="Model.cpp" />
<ClCompile Include="Portal.cpp" /> <ClCompile Include="Portal.cpp" />
<ClCompile Include="Sound.cpp" /> <ClCompile Include="Sound.cpp" />
<ClCompile Include="SoundSystem.cpp" /> <ClCompile Include="SoundSystem.cpp" />
<ClCompile Include="Player.cpp" /> <ClCompile Include="Player.cpp" />
<ClCompile Include="Skybox.cpp" /> <ClCompile Include="Skybox.cpp" />
<ClCompile Include="Text.cpp" />
<ClCompile Include="Util.cpp" />
<ClCompile Include="Vector.cpp" /> <ClCompile Include="Vector.cpp" />
<ClCompile Include="Vertex.cpp" /> <ClCompile Include="Vertex.cpp" />
<ClCompile Include="World.cpp" /> <ClCompile Include="World.cpp" />
<ClCompile Include="WorldHandler.cpp" /> <ClCompile Include="WorldHandler.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="Button.h" />
<ClInclude Include="Crystal.h" /> <ClInclude Include="Crystal.h" />
<ClInclude Include="CrystalPoint.h" /> <ClInclude Include="CrystalPoint.h" />
<ClInclude Include="Cursor.h" /> <ClInclude Include="Cursor.h" />
@@ -186,6 +192,8 @@
<ClInclude Include="json.h" /> <ClInclude Include="json.h" />
<ClInclude Include="LevelObject.h" /> <ClInclude Include="LevelObject.h" />
<ClInclude Include="Main.h" /> <ClInclude Include="Main.h" />
<ClInclude Include="Menu.h" />
<ClInclude Include="MenuElement.h" />
<ClInclude Include="Model.h" /> <ClInclude Include="Model.h" />
<ClInclude Include="Portal.h" /> <ClInclude Include="Portal.h" />
<ClInclude Include="Sound.h" /> <ClInclude Include="Sound.h" />
@@ -193,6 +201,8 @@
<ClInclude Include="Player.h" /> <ClInclude Include="Player.h" />
<ClInclude Include="Skybox.h" /> <ClInclude Include="Skybox.h" />
<ClInclude Include="stb_image.h" /> <ClInclude Include="stb_image.h" />
<ClInclude Include="Text.h" />
<ClInclude Include="Util.h" />
<ClInclude Include="vector.h" /> <ClInclude Include="vector.h" />
<ClInclude Include="Vertex.h" /> <ClInclude Include="Vertex.h" />
<ClInclude Include="World.h" /> <ClInclude Include="World.h" />
@@ -201,6 +211,7 @@
<ItemGroup> <ItemGroup>
<None Include="worlds\fire.json" /> <None Include="worlds\fire.json" />
<None Include="worlds\ice.json" /> <None Include="worlds\ice.json" />
<None Include="worlds\rock.json" />
<None Include="worlds\small.json" /> <None Include="worlds\small.json" />
<None Include="worlds\worlds.json" /> <None Include="worlds\worlds.json" />
</ItemGroup> </ItemGroup>
+36
View File
@@ -22,6 +22,9 @@
<Filter Include="Source Files\json"> <Filter Include="Source Files\json">
<UniqueIdentifier>{9c655946-3f99-44ea-bc97-2817656954e0}</UniqueIdentifier> <UniqueIdentifier>{9c655946-3f99-44ea-bc97-2817656954e0}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="Source Files\Menu">
<UniqueIdentifier>{e7a88896-78e1-4544-bfc8-cfd55323728e}</UniqueIdentifier>
</Filter>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="Main.cpp"> <ClCompile Include="Main.cpp">
@@ -87,6 +90,21 @@
<ClCompile Include="Portal.cpp"> <ClCompile Include="Portal.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="Button.cpp">
<Filter>Source Files\Menu</Filter>
</ClCompile>
<ClCompile Include="Menu.cpp">
<Filter>Source Files\Menu</Filter>
</ClCompile>
<ClCompile Include="MenuElement.cpp">
<Filter>Source Files\Menu</Filter>
</ClCompile>
<ClCompile Include="Text.cpp">
<Filter>Source Files\Menu</Filter>
</ClCompile>
<ClCompile Include="Util.cpp">
<Filter>Source Files\Menu</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="World.h"> <ClInclude Include="World.h">
@@ -152,6 +170,21 @@
<ClInclude Include="Portal.h"> <ClInclude Include="Portal.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="Text.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Util.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="MenuElement.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Menu.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Button.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="worlds\worlds.json"> <None Include="worlds\worlds.json">
@@ -166,6 +199,9 @@
<None Include="worlds\small.json"> <None Include="worlds\small.json">
<Filter>Source Files\json</Filter> <Filter>Source Files\json</Filter>
</None> </None>
<None Include="worlds\rock.json">
<Filter>Source Files\json</Filter>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Media Include="WAVE\Sound.wav"> <Media Include="WAVE\Sound.wav">
+23 -1
View File
@@ -1,5 +1,5 @@
#include "Cursor.h" #include "Cursor.h"
#include <GL\freeglut.h> #include <GL/freeglut.h>
#include <cmath> #include <cmath>
#include "CrystalPoint.h" #include "CrystalPoint.h"
@@ -8,10 +8,13 @@ Cursor* Cursor::instance = NULL;
Cursor::Cursor() Cursor::Cursor()
{ {
enabled = false; enabled = false;
mousePosition = Vec2f(CrystalPoint::width / 2, CrystalPoint::height / 2);
clicked = false;
} }
Cursor::~Cursor() Cursor::~Cursor()
{ {
} }
Cursor* Cursor::getInstance(void) Cursor* Cursor::getInstance(void)
@@ -54,5 +57,24 @@ void Cursor::draw(void)
void Cursor::update(Vec2f newPosition) void Cursor::update(Vec2f newPosition)
{ {
if (newPosition.x < 0)
newPosition.x = 0;
if (newPosition.y < 0)
newPosition.y = 0;
if (newPosition.x > CrystalPoint::width)
newPosition.x = CrystalPoint::width;
if (newPosition.y > CrystalPoint::height)
newPosition.y = CrystalPoint::height;
mousePosition = newPosition; mousePosition = newPosition;
if (clicked)
clicked = !clicked;
if (state != prev)
if(state == GLUT_UP)
clicked = true;
prev = state;
} }
+6 -2
View File
@@ -8,9 +8,9 @@ private:
static Cursor* instance; static Cursor* instance;
bool enabled; bool enabled;
Vec2f mousePosition;
public:
public:
Vec2f mousePosition;
~Cursor(); ~Cursor();
static Cursor* getInstance(void); static Cursor* getInstance(void);
@@ -18,6 +18,10 @@ public:
void enable(bool enable); void enable(bool enable);
bool isEnabled(void); bool isEnabled(void);
bool clicked;
int state, prev;
void draw(void); void draw(void);
void update(Vec2f newPosition); void update(Vec2f newPosition);
}; };
+17 -10
View File
@@ -2,12 +2,12 @@
#include <cmath> #include <cmath>
#include "Enemy.h" #include "Enemy.h"
#include "Model.h" #include "Model.h"
#include "CrystalPoint.h"
#include <iostream> #include <iostream>
Enemy::Enemy(const std::string &fileName, Enemy::Enemy(const std::string &fileName,
const std::string &fileMusic,
const Vec3f &position, const Vec3f &position,
Vec3f &rotation, const Vec3f &rotation,
const float &scale) const float &scale)
{ {
model = Model::load(fileName); model = Model::load(fileName);
@@ -19,7 +19,8 @@ Enemy::Enemy(const std::string &fileName,
speed = 1; speed = 1;
radius = 10; radius = 10;
hasTarget = false; hasTarget = false;
hit_sound_id = CrystalPoint::GetSoundSystem().LoadSound("WAVE/Sound.wav", false); hit_sound_id = CrystalPoint::GetSoundSystem().LoadSound(fileMusic.c_str(), false);
music = CrystalPoint::GetSoundSystem().GetSound(hit_sound_id);
attack = false; attack = false;
} }
@@ -28,6 +29,8 @@ Enemy::~Enemy()
{ {
if (model) if (model)
Model::unload(model); Model::unload(model);
delete music;
} }
void Enemy::draw() void Enemy::draw()
@@ -72,9 +75,14 @@ void Enemy::collide(const Entity * entity)
void Enemy::update(float delta) void Enemy::update(float delta)
{ {
music->SetPos(position, Vec3f());
if (hasTarget) if (hasTarget)
{ {
if (music->IsPlaying() == false)
{
music->Play();
}
//just 2d walking //just 2d walking
float dx, dz, length; float dx, dz, length;
@@ -98,15 +106,14 @@ void Enemy::update(float delta)
else else
{ {
attack = true; attack = true;
if (music->IsPlaying() == true)
{
// music->Pause();
music->Stop();
}
} }
rotation.y = atan2f(dx, dz) * 180 / M_PI; rotation.y = atan2f(dx, dz) * 180 / M_PI;
} }
if (false)
{
Sound* sound = CrystalPoint::GetSoundSystem().GetSound(hit_sound_id);
sound->SetPos(position, Vec3f());
sound->Play();
}
} }
+4 -1
View File
@@ -3,13 +3,16 @@
#include "Entity.h" #include "Entity.h"
#include <string> #include <string>
#include "Vector.h" #include "Vector.h"
#include "CrystalPoint.h"
class Enemy : public Entity class Enemy : public Entity
{ {
public: public:
Enemy(const std::string &fileName,const Vec3f &position,Vec3f &rotation,const float &scale); Enemy(const std::string &fileName, const std::string &fileMusic, const Vec3f &position, const Vec3f &rotation, const float &scale);
~Enemy(); ~Enemy();
Sound* music;
bool hasTarget; bool hasTarget;
Vec3f target; Vec3f target;
float speed,radius; float speed,radius;
+31 -7
View File
@@ -1,6 +1,6 @@
#include "HeightMap.h" #include "HeightMap.h"
#include "stb_image.h" #include "stb_image.h"
#include "vector.h" #include "Vector.h"
#include "LevelObject.h" #include "LevelObject.h"
@@ -29,6 +29,7 @@ HeightMap::HeightMap(const std::string &file, World* world)
return imgData[(x + y * width) * 4 + offset]; return imgData[(x + y * width) * 4 + offset];
}; };
std::vector<std::vector<Vec3f>> faceNormals(width-1, std::vector<Vec3f>(height-1, Vec3f(0,1,0)));
for (int y = 0; y < height - 1; y++) for (int y = 0; y < height - 1; y++)
{ {
for (int x = 0; x < width - 1; x++) for (int x = 0; x < width - 1; x++)
@@ -36,21 +37,43 @@ HeightMap::HeightMap(const std::string &file, World* world)
int offsets[4][2] = { { 0, 0 },{ 1, 0 },{ 1, 1 },{ 0, 1 } }; int offsets[4][2] = { { 0, 0 },{ 1, 0 },{ 1, 1 },{ 0, 1 } };
Vec3f ca(0, heightAt(x, y + 1) - heightAt(x, y), 1); Vec3f ca(0, heightAt(x, y + 1) - heightAt(x, y), 1);
Vec3f ba(1, heightAt(x + 1, y) - heightAt(x, y), 0); Vec3f ba(1, heightAt(x + 1, y) - heightAt(x, y), 0);
Vec3f normal = ca.cross(ba);
normal.Normalize();
faceNormals[x][y] = normal;
}
}
for (int y = 0; y < height-1; y++)
{
for (int x = 0; x < width-1; x++)
{
int offsets[4][2] = { { 0, 0 },{ 1, 0 },{ 1, 1 },{ 0, 1 } };
if (valueAt(x, y, GREEN) > 0) if (valueAt(x, y, GREEN) > 0)
{ {
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, 0, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second)); world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, 0, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second));
} }
Vec3f normal = ca.cross(ba);
normal.Normalize();
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
float h = heightAt(x + offsets[i][0], y + offsets[i][1]); int xx = x + offsets[i][0];
vertices.push_back(Vertex{ (float)(x + offsets[i][0]), h, (float)(y + offsets[i][1]), int yy = y + offsets[i][1];
Vec3f normal(0, 0, 0);
if(xx < width-1 && yy < height-1)
normal = normal + faceNormals[xx][yy];
if(xx > 0 && yy < height-1)
normal = normal + faceNormals[xx-1][yy];
if (xx > 0 && yy > 0)
normal = normal + faceNormals[xx-1][yy-1];
if (yy > 0 && xx < width-1)
normal = normal + faceNormals[xx][yy-1];
normal.Normalize();
float h = heightAt(xx, yy);
vertices.push_back(Vertex{ (float)(xx), h, (float)(yy),
normal.x, normal.y, normal.z, normal.x, normal.y, normal.z,
(x + offsets[i][0]) / (float)height, (y + offsets[i][1]) / (float)width } ); (xx) / (float)height, (yy) / (float)width } );
} }
} }
} }
@@ -127,6 +150,7 @@ float HeightMap::GetHeight(float x, float y)
float labda3 = 1 - labda1 - labda2; float labda3 = 1 - labda1 - labda2;
Vertex z = a * labda1 + b * labda2 + c * labda3; Vertex z = a * labda1 + b * labda2 + c * labda3;
// Vertex z = (a * labda1) + (b * labda2) ;
return z.y; return z.y;
} }
+3 -14
View File
@@ -1,13 +1,11 @@
#include "Interface.h" #include "Interface.h"
#include <GL\freeglut.h> #include <GL/freeglut.h>
#include "CrystalPoint.h" #include "CrystalPoint.h"
#include <string> #include <string>
#include "Player.h" #include "Player.h"
#include "Util.h"
//Prototype
void glutBitmapString(std::string str, int x, int y);
Interface::Interface() Interface::Interface()
{ {
@@ -87,7 +85,7 @@ void Interface::draw()
//Text: level //Text: level
glColor4f(1.0f, 1.0f, 0.1f, 1.0); glColor4f(1.0f, 1.0f, 0.1f, 1.0);
glutBitmapString("Level: " + std::to_string(player->level), 490, 900); Util::glutBitmapString("Level: " + std::to_string(player->level), 490, 900);
for (int i = 0; i < maxCrystals; i++) for (int i = 0; i < maxCrystals; i++)
{ {
@@ -119,12 +117,3 @@ void Interface::update(float deltaTime)
{ {
} }
void glutBitmapString(std::string str, int x, int y)
{
glRasterPos2f(x, y);
for (int i = 0; i < str.size(); i++)
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, str[i]);
}
}
+17
View File
@@ -4,6 +4,11 @@
#include <stdio.h> #include <stdio.h>
#include "Vector.h" #include "Vector.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "Cursor.h"
void configureOpenGL(void); void configureOpenGL(void);
CrystalPoint* app; CrystalPoint* app;
@@ -50,6 +55,17 @@ int main(int argc, char* argv[])
glutPassiveMotionFunc(mousemotion); glutPassiveMotionFunc(mousemotion);
glutMotionFunc(mousemotion); glutMotionFunc(mousemotion);
auto mouseclick = [](int button, int state,
int x, int y)
{
if (button == GLUT_LEFT_BUTTON)
Cursor::getInstance()->state = state;
//std::cout << "Left button is down" << std::endl;
};
glutMouseFunc(mouseclick);
CrystalPoint::height = GLUT_WINDOW_HEIGHT; CrystalPoint::height = GLUT_WINDOW_HEIGHT;
CrystalPoint::width = GLUT_WINDOW_WIDTH; CrystalPoint::width = GLUT_WINDOW_WIDTH;
@@ -68,6 +84,7 @@ void configureOpenGL()
glutCreateWindow("Crystal Point"); glutCreateWindow("Crystal Point");
//glutFullScreen(); //glutFullScreen();
//Depth testing //Depth testing
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
+59
View File
@@ -0,0 +1,59 @@
#include <GL\freeglut.h>
#include "Menu.h"
#include "CrystalPoint.h"
Menu::Menu()
{
cursor = Cursor::getInstance();
}
Menu::~Menu()
{
}
void Menu::draw(void)
{
//Switch view to Ortho
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, CrystalPoint::width, CrystalPoint::height, 0, -10, 10);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glDisable(GL_LIGHTING);
glDisable(GL_DEPTH_TEST);
glDisable(GL_TEXTURE_2D);
glColor4f(60/255.0f, 60/255.0f, 60/255.0f, 0.8f);
glBegin(GL_QUADS);
glVertex2f(0,0);
glVertex2f(0, CrystalPoint::height);
glVertex2f(CrystalPoint::width, CrystalPoint::height);
glVertex2f(CrystalPoint::width, 0);
glEnd();
for (MenuElement* e : elements)
{
e->draw();
}
cursor->draw();
glEnable(GL_LIGHTING);
glEnable(GL_DEPTH_TEST);
}
void Menu::update()
{
for (MenuElement* e : elements)
{
e->update(cursor->mousePosition.x, cursor->mousePosition.y);
}
}
void Menu::AddMenuElement(MenuElement * e)
{
elements.push_back(e);
}
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <vector>
#include "MenuElement.h"
#include "Cursor.h"
class Menu
{
private:
std::vector<MenuElement*> elements;
Cursor* cursor;
public:
Menu();
~Menu();
void draw(void);
void update(void);
void AddMenuElement(MenuElement* e);
};
+12
View File
@@ -0,0 +1,12 @@
#include "MenuElement.h"
MenuElement::MenuElement(Vec2f position)
{
hover = false;
this->position = position;
}
MenuElement::~MenuElement()
{
}
+17
View File
@@ -0,0 +1,17 @@
#pragma once
#include "Vector.h"
#include <string>
class MenuElement
{
protected:
bool hover;
Vec2f position;
public:
MenuElement(Vec2f position);
~MenuElement();
virtual void draw(void) {};
virtual void update(int x, int y) {};
};
+4 -7
View File
@@ -1,6 +1,5 @@
#include "Model.h" #include "Model.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" #include "stb_image.h"
#include <iostream> #include <iostream>
@@ -138,7 +137,7 @@ Model::Model(std::string fileName)
radius = fmax(radius, (center.x - v.x) * (center.x - v.x) + (center.z - v.z) * (center.z - v.z)); radius = fmax(radius, (center.x - v.x) * (center.x - v.x) + (center.z - v.z) * (center.z - v.z));
radius = sqrt(radius); radius = sqrt(radius);
for each(ObjGroup *group in groups) for (ObjGroup *group : groups)
{ {
Optimise(group); Optimise(group);
} }
@@ -148,7 +147,7 @@ void Model::Optimise(ObjGroup *t)
{ {
for (Face &face : t->faces) for (Face &face : t->faces)
{ {
for each(auto &vertex in face.vertices) for (auto &vertex : face.vertices)
{ {
t->VertexArray.push_back(Vertex(vertices[vertex.position].x, vertices[vertex.position].y, vertices[vertex.position].z, t->VertexArray.push_back(Vertex(vertices[vertex.position].x, vertices[vertex.position].y, vertices[vertex.position].z,
normals[vertex.normal].x, normals[vertex.normal].y, normals[vertex.normal].z, normals[vertex.normal].x, normals[vertex.normal].y, normals[vertex.normal].z,
@@ -370,6 +369,7 @@ void Model::unload(Model* model)
{ {
delete m.second.first; delete m.second.first;
cache.erase(cache.find(m.first)); cache.erase(cache.find(m.first));
break;
} }
} }
@@ -378,8 +378,5 @@ void Model::unload(Model* model)
Model::~Model(void) Model::~Model(void)
{ {
for (auto m : cache)
{
delete m.second.first;
}
} }
+28
View File
@@ -15,6 +15,13 @@ Portal::Portal(const std::string &fileName,
this->scale = scale; this->scale = scale;
this->canCollide = true; this->canCollide = true;
started = false;
delay = 0;
sound_id = CrystalPoint::GetSoundSystem().LoadSound("WAVE/portal.wav", false);
music = CrystalPoint::GetSoundSystem().GetSound(sound_id);
music->SetPos(position, Vec3f());
mayEnter = false; mayEnter = false;
maxCrystals = 0; maxCrystals = 0;
} }
@@ -22,6 +29,8 @@ Portal::Portal(const std::string &fileName,
Portal::~Portal() Portal::~Portal()
{ {
// Model::unload(model);
// delete music;
} }
void Portal::collide() void Portal::collide()
@@ -32,3 +41,22 @@ void Portal::collide()
mayEnter = true; mayEnter = true;
} }
} }
bool Portal::enter(float deltaTime)
{
if (delay > 3 && started)
{
delete music;
delay = 0;
return true;
}
if (delay == 0 && !started)
{
music->Play();
started = true;
}
delay += deltaTime;
return false;
}
+8
View File
@@ -1,6 +1,7 @@
#pragma once #pragma once
#include "Entity.h" #include "Entity.h"
#include <string> #include <string>
#include "CrystalPoint.h"
class Portal : class Portal :
public Entity public Entity
@@ -12,8 +13,15 @@ public:
const float &scale); const float &scale);
~Portal(); ~Portal();
bool enter(float deltaTime);
void collide(); void collide();
int maxCrystals; int maxCrystals;
bool mayEnter; bool mayEnter;
private:
int sound_id;
Sound* music;
bool started;
float delay;
}; };
+7 -6
View File
@@ -1,6 +1,7 @@
#include "cmath" #include "cmath"
#include <GL/freeglut.h> #include <GL/freeglut.h>
#include "Util.h"
#include "stb_image.h" #include "stb_image.h"
#include "Skybox.h" #include "Skybox.h"
#include <string> #include <string>
@@ -25,12 +26,12 @@ Skybox::~Skybox()
void Skybox::init() void Skybox::init()
{ {
skybox[SKY_LEFT] = loadTexture(folder + "left.png"); skybox[SKY_LEFT] = Util::loadTexture(folder + "left.png");
skybox[SKY_BACK] = loadTexture(folder + "back.png"); skybox[SKY_BACK] = Util::loadTexture(folder + "back.png");
skybox[SKY_RIGHT] = loadTexture(folder + "right.png"); skybox[SKY_RIGHT] = Util::loadTexture(folder + "right.png");
skybox[SKY_FRONT] = loadTexture(folder + "front.png"); skybox[SKY_FRONT] = Util::loadTexture(folder + "front.png");
skybox[SKY_TOP] = loadTexture(folder + "top.png"); skybox[SKY_TOP] = Util::loadTexture(folder + "top.png");
skybox[SKY_BOTTOM] = loadTexture(folder + "bottom.png"); skybox[SKY_BOTTOM] = Util::loadTexture(folder + "bottom.png");
} }
void Skybox::draw() void Skybox::draw()
+2
View File
@@ -14,6 +14,8 @@ public:
void init(); void init();
void draw(); void draw();
void update(float deltaTime, int, int); void update(float deltaTime, int, int);
GLuint loadTexture(const std::string &fileName); GLuint loadTexture(const std::string &fileName);
}; };
+29 -1
View File
@@ -1,14 +1,22 @@
#include "Sound.h" #include "Sound.h"
#include <iostream> #include <iostream>
#ifdef WIN32
#include <windows.h> #include <windows.h>
#include <al.h> #include <al.h>
#else
#include <AL/al.h>
typedef unsigned long DWORD;
typedef unsigned short WORD;
typedef unsigned int UNINT32;
typedef unsigned char BYTE;
#endif
Sound::Sound(const char* inWavPath, bool inLooping): Sound::Sound(const char* inWavPath, bool inLooping):
buffer_id(0), buffer_id(0),
source_id(0), source_id(0),
is_looping(inLooping) is_looping(inLooping)
{ {
const char* path = inWavPath; const char* path = inWavPath;
@@ -137,3 +145,23 @@ void Sound::Stop()
alSourceStop(source_id); alSourceStop(source_id);
} }
bool Sound::IsPlaying()
{
ALenum state;
alGetSourcei(source_id, AL_SOURCE_STATE, &state);
return (state == AL_PLAYING);
}
bool Sound::IsStopped()
{
ALenum state;
alGetSourcei(source_id, AL_SOURCE_STATE, &state);
std::cout << "MUSIC STATE: " << state << std::endl;
return (state == AL_STOPPED);
}
+3 -1
View File
@@ -1,6 +1,6 @@
#pragma once #pragma once
#include "vector.h" #include "Vector.h"
class Sound class Sound
{ {
@@ -13,6 +13,8 @@ public:
void Play(); void Play();
void Pause(); void Pause();
void Stop(); void Stop();
bool IsPlaying();
bool IsStopped();
private: private:
unsigned int buffer_id; unsigned int buffer_id;
-6
View File
@@ -1,11 +1,5 @@
#include "SoundSystem.h" #include "SoundSystem.h"
#include <cstdlib>
#include <iostream>
#include <windows.h>
SoundSystem::SoundSystem(): SoundSystem::SoundSystem():
device(nullptr), device(nullptr),
context(nullptr) context(nullptr)
+8 -1
View File
@@ -1,9 +1,16 @@
#pragma once #pragma once
#include <vector> #include <vector>
#ifdef WIN32
#include <al.h> #include <al.h>
#include <alc.h> #include <alc.h>
#include "vector.h" #else
#include <AL/al.h>
#include <AL/alc.h>
#endif
#include "Vector.h"
#include "Sound.h" #include "Sound.h"
+31
View File
@@ -0,0 +1,31 @@
#include "Text.h"
Text::Text(const std::string &text, Vec2f position) : MenuElement(position)
{
this->text = text;
color = Vec3f(50, 150, 150);
textHeight = 14;
textWidth = Util::glutTextWidth(text);
}
Text::~Text()
{
}
void Text::draw()
{
glColor4f(color.x/255.0f, color.y/255.0f, color.z/255.0f, 1.0f);
Util::glutBitmapString(text, position.x-1, position.y+textHeight);
}
void Text::update(int x, int y)
{
//Do nothing
}
void Text::setColor(Vec3f color)
{
this->color = color;
}
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include "MenuElement.h"
#include "Vector.h"
#include "Util.h"
class Text : public MenuElement
{
private:
std::string text;
Vec3f color;
protected:
int textWidth;
int textHeight;
public:
Text(const std::string &text, Vec2f position);
~Text();
virtual void draw();
virtual void update(int x, int y);
void setColor(Vec3f color);
};
+65
View File
@@ -0,0 +1,65 @@
#include "Util.h"
#include "stb_image.h"
Util::Util()
{
}
Util::~Util()
{
}
GLuint Util::loadTexture(const std::string &filename)
{
int width, height, bpp;
stbi_set_flip_vertically_on_load(true);
unsigned char* imgData = stbi_load(filename.c_str(), &width, &height, &bpp, 4);
GLuint num;
glGenTextures(1, &num);
glBindTexture(GL_TEXTURE_2D, num);
glTexImage2D(GL_TEXTURE_2D,
0, //level
GL_RGBA, //internal format
width, //width
height, //height
0, //border
GL_RGBA, //data format
GL_UNSIGNED_BYTE, //data type
imgData); //data
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
stbi_image_free(imgData);
return num;
}
void Util::glutBitmapString(std::string str, int x, int y)
{
glRasterPos2f(x, y);
for (int i = 0; i < str.size(); i++)
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, str[i]);
}
}
int Util::glutTextWidth(const std::string str)
{
int total = 0;
for (int i = 0; i < str.size(); i++)
{
total += glutBitmapWidth(GLUT_BITMAP_HELVETICA_18, str[i]);
}
return total;
}
//int Util::glutTextHeight()
//{
// return glutBitmapHeight(GLUT_BITMAP_HELVETICA_18);
//}
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <string>
#include <GL\freeglut.h>
class Util
{
private:
Util();
~Util();
public:
static GLuint loadTexture(const std::string &filename);
static void glutBitmapString(std::string str, int x, int y);
static int glutTextWidth(const std::string str);
//static int glutTextHeight();
};
+4 -4
View File
@@ -18,22 +18,22 @@ Vertex::~Vertex()
{ {
} }
Vertex Vertex::operator/(float &other) Vertex Vertex::operator/(const float &other) const
{ {
return Vertex(x / other, y / other, z / other, normalX, normalY, normalZ, texX, texY); return Vertex(x / other, y / other, z / other, normalX, normalY, normalZ, texX, texY);
} }
Vertex Vertex::operator*(Vertex & other) Vertex Vertex::operator*(const Vertex & other) const
{ {
return Vertex(x*other.x, y*other.y, z*other.z, normalX, normalY, normalZ, texX, texY); return Vertex(x*other.x, y*other.y, z*other.z, normalX, normalY, normalZ, texX, texY);
} }
Vertex Vertex::operator*(float & other) Vertex Vertex::operator*(const float & other) const
{ {
return Vertex(x*other, y*other, z*other, normalX, normalY, normalZ, texX, texY); return Vertex(x*other, y*other, z*other, normalX, normalY, normalZ, texX, texY);
} }
Vertex Vertex::operator+(Vertex & other) Vertex Vertex::operator+(const Vertex & other) const
{ {
return Vertex(x+other.x, y+other.y, z+other.z, normalX, normalY, normalZ, texX, texY); return Vertex(x+other.x, y+other.y, z+other.z, normalX, normalY, normalZ, texX, texY);
} }
+4 -4
View File
@@ -16,9 +16,9 @@ public:
float texX; float texX;
float texY; float texY;
Vertex operator/(float &other); Vertex operator/(const float &other) const;
Vertex operator*(Vertex &other); Vertex operator*(const Vertex &other) const;
Vertex operator*(float &other); Vertex operator*(const float &other) const;
Vertex operator+(Vertex &other); Vertex operator+(const Vertex &other) const;
}; };
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+35 -8
View File
@@ -3,7 +3,6 @@
#include "Entity.h" #include "Entity.h"
#include "json.h" #include "json.h"
#include "Model.h" #include "Model.h"
#include "CrystalPoint.h"
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
@@ -12,6 +11,8 @@
World::World(const std::string &fileName): World::World(const std::string &fileName):
music_id(-1) music_id(-1)
{ {
nextworld = false;
//Store player instance //Store player instance
player = Player::getInstance(); player = Player::getInstance();
@@ -122,12 +123,16 @@ World::World(const std::string &fileName):
if (e["file"].isNull()) if (e["file"].isNull())
std::cout << "Invalid world file: enemies file - " << fileName << "\n"; std::cout << "Invalid world file: enemies file - " << fileName << "\n";
//Music
if (e["music"].isNull())
std::cout << "Invalid world file: enemies music - " << fileName << "\n";
//Create //Create
Vec3f position(e["pos"][0].asFloat(), e["pos"][1].asFloat(), e["pos"][2].asFloat()); Vec3f position(e["pos"][0].asFloat(), e["pos"][1].asFloat(), e["pos"][2].asFloat());
position.y = getHeight(position.x, position.z) + 2.0f; position.y = getHeight(position.x, position.z) + 2.0f;
maxEnemies++; maxEnemies++;
enemies.push_back(new Enemy(e["file"].asString(), position, rotation, scale)); enemies.push_back(new Enemy(e["file"].asString(), e["music"].asString(), position, rotation, scale));
} }
maxCrystals = 0; maxCrystals = 0;
if (!v["crystal"].isNull()) if (!v["crystal"].isNull())
@@ -179,9 +184,7 @@ World::World(const std::string &fileName):
if (!v["world"]["music"].isNull()) if (!v["world"]["music"].isNull())
{ {
music_id = CrystalPoint::GetSoundSystem().LoadSound(v["world"]["music"].asString().c_str(), true); music_id = CrystalPoint::GetSoundSystem().LoadSound(v["world"]["music"].asString().c_str(), true);
Sound* music = CrystalPoint::GetSoundSystem().GetSound(music_id); music = CrystalPoint::GetSoundSystem().GetSound(music_id);
music->SetPos(Vec3f(), Vec3f());
music->Play();
} }
if (!v["portal"].isNull()) if (!v["portal"].isNull())
@@ -214,7 +217,10 @@ World::World(const std::string &fileName):
World::~World() World::~World()
{ {
delete heightmap; delete heightmap;
music->Stop();
delete music;
delete skybox; delete skybox;
delete portal;
} }
std::pair<std::string, bool> World::getObjectFromValue(int val) std::pair<std::string, bool> World::getObjectFromValue(int val)
@@ -237,9 +243,14 @@ void World::draw()
{ {
player->setCamera(); player->setCamera();
float lightPosition[4] = { 0, 2, 1, 0 }; float lightPosition[4] = { 0, 12, 1, 0 };
glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
float lightAmbient[4] = { 0.2, 0.2, 0.2, 1 };
GLfloat lightAmbient[] = { 0.05, 0.05, 0.05, 0 };
GLfloat light_diffuse[] = { 0.9, 0.9, 0.9, 0 };
glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
GLfloat mat_specular[] = { 0.15, 0.15, 0.15, 0 };
glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient); glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient);
skybox->draw(); skybox->draw();
@@ -257,6 +268,18 @@ void World::draw()
void World::update(float elapsedTime) void World::update(float elapsedTime)
{ {
if (nextworld)
{
WorldHandler::getInstance()->NextWorld();
return;
}
music->SetPos(player->position, Vec3f());
if (music->IsPlaying() == false)
{
music->Play();
}
for (auto &entity : entities) for (auto &entity : entities)
entity->update(elapsedTime); entity->update(elapsedTime);
@@ -300,7 +323,11 @@ void World::update(float elapsedTime)
skybox->update(elapsedTime, maxEnemies - enemies.size(), maxEnemies); skybox->update(elapsedTime, maxEnemies - enemies.size(), maxEnemies);
if (portal->mayEnter) if (portal->mayEnter)
WorldHandler::getInstance()->NextWorld(); {
if (portal->enter(elapsedTime))
nextworld = true;
}
} }
void World::addLevelObject(LevelObject* obj) void World::addLevelObject(LevelObject* obj)
+4
View File
@@ -8,6 +8,7 @@
#include "Interface.h" #include "Interface.h"
#include "Crystal.h" #include "Crystal.h"
#include "Skybox.h" #include "Skybox.h"
#include "CrystalPoint.h"
#include "Portal.h" #include "Portal.h"
class Entity; class Entity;
@@ -16,6 +17,7 @@ class World
{ {
private: private:
std::vector<std::pair<int, std::pair<std::string, bool>>> objecttemplates; std::vector<std::pair<int, std::pair<std::string, bool>>> objecttemplates;
Sound* music;
Player* player; Player* player;
HeightMap* heightmap; HeightMap* heightmap;
@@ -23,6 +25,8 @@ private:
Skybox* skybox; Skybox* skybox;
Portal* portal; Portal* portal;
bool nextworld;
int music_id,maxCrystals,maxEnemies; int music_id,maxCrystals,maxEnemies;
std::vector<Entity*> entities; std::vector<Entity*> entities;
Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

+9
View File
@@ -0,0 +1,9 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Blauw.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

+28
View File
@@ -0,0 +1,28 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
newmtl Mat.3
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
newmtl Mat.2
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Blauw.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Wit.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
File diff suppressed because it is too large Load Diff
+28
View File
@@ -0,0 +1,28 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
newmtl Mat.3
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
newmtl Mat.2
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Blauw.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Wit.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

+21
View File
@@ -0,0 +1,21 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat.2
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd congruent_pentagon2.png
illum 7
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Blauw.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd congruent_pentagon_blue.png
Ks 1.00000000000000 1.00000000000000 1.00000000000000
Ns 100
illum 7
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

+12
View File
@@ -0,0 +1,12 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen_1.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
illum 7
+478
View File
@@ -0,0 +1,478 @@
# WaveFront *.obj file (generated by CINEMA 4D)
mtllib ./tree1.mtl
v -1.24235423558039 6.41245259173359 1.73544112875567
v -1.24235423558038 5.37573338375617 1.30433252514800
v -0.39880969214413 5.70839009706014 1.96646050267696
v -0.57295418026973 5.28249848785093 2.99063401275938
v -1.52412593632106 5.72334549250970 3.39258867844630
v -1.52412593632106 4.68662628453229 2.96148007483863
v -2.36767047975732 5.39068877920574 2.73046070091734
v -2.19352599163172 5.81658038841494 1.70628719083492
v -0.82864224932734 6.35483025712659 2.77763276337901
v -1.93783792257411 6.42169553443661 2.61683681369500
v -1.93783792257410 4.74424861913928 1.91928844021529
v -0.82864224932734 4.67738334182926 2.08008438989929
# 12 vertices
vt 0.00000000000000 -0.00000000000000 0.00000000000000
vt 1.00000000000000 -0.00000000000000 0.00000000000000
vt 0.50000000000000 -1.00000000000000 0.00000000000000
# 3 texture coordinates
o Platonic.4
usemtl Mat
f 10/1 9/2 1/3
f 9/1 3/2 1/3
f 9/1 4/2 3/3
f 9/1 5/2 4/3
f 9/1 10/2 5/3
f 5/1 10/2 7/3
f 7/1 10/2 8/3
f 10/1 1/2 8/3
f 12/1 11/2 2/3
f 3/1 12/2 2/3
f 3/1 4/2 12/3
f 4/1 6/2 12/3
f 6/1 11/2 12/3
f 6/1 7/2 11/3
f 7/1 8/2 11/3
f 8/1 2/2 11/3
f 2/1 8/2 1/3
f 3/1 2/2 1/3
f 5/1 6/2 4/3
f 5/1 7/2 6/3
v -0.77150120306034 8.04858110514051 -0.58997606175297
v -0.77150120306034 6.24427347540975 -1.19657334469352
v 0.76849962936640 6.95897842110483 -0.33571298255606
v 0.76849962936640 6.35238113816428 1.46859464717470
v -0.77150120306034 7.06708608385936 2.32945500931217
v -0.77150120306034 5.26277845412860 1.72285772637161
v -2.31150203548708 6.35238113816428 1.46859464717470
v -2.31150203548708 6.95897842110483 -0.33571298255606
v 0.18027165408251 8.11539531516712 1.05718834294990
v -1.72327406020320 8.11539531516712 1.05718834294990
v -1.72327406020320 5.19596424410199 0.07569332166875
v 0.18027165408251 5.19596424410199 0.07569332166875
# 12 vertices
# 0 texture coordinate
o Platonic.3
usemtl Mat
f 22/1 21/2 13/3
f 21/1 15/2 13/3
f 21/1 16/2 15/3
f 21/1 17/2 16/3
f 21/1 22/2 17/3
f 17/1 22/2 19/3
f 19/1 22/2 20/3
f 22/1 13/2 20/3
f 24/1 23/2 14/3
f 15/1 24/2 14/3
f 15/1 16/2 24/3
f 16/1 18/2 24/3
f 18/1 23/2 24/3
f 18/1 19/2 23/3
f 19/1 20/2 23/3
f 20/1 14/2 23/3
f 14/1 20/2 13/3
f 15/1 14/2 13/3
f 17/1 18/2 16/3
f 17/1 19/2 18/3
v -0.98913458547754 4.68882818882168 -2.16281117680024
v -0.98913458547754 3.74824469248918 -1.83175745913806
v -0.27168896700711 4.37810221252871 -1.54392909615370
v -0.49452097313084 4.70078381170267 -0.62713230288246
v -1.34968434516706 5.21093798382931 -0.67940280451046
v -1.34968434516706 4.27035448749681 -0.34834908684829
v -2.06712996363748 4.58108046378978 -0.96723116749482
v -1.84429795751375 4.25839886461582 -1.88402796076606
v -0.68344656174892 5.27752974010950 -1.41831188653112
v -1.65537236889568 5.20354900253218 -1.62850454439681
v -1.65537236889568 3.68165293620899 -1.09284837711740
v -0.68344656174892 3.75563367378631 -0.88265571925171
# 12 vertices
# 0 texture coordinate
o Platonic.2
usemtl Mat
f 34/1 33/2 25/3
f 33/1 27/2 25/3
f 33/1 28/2 27/3
f 33/1 29/2 28/3
f 33/1 34/2 29/3
f 29/1 34/2 31/3
f 31/1 34/2 32/3
f 34/1 25/2 32/3
f 36/1 35/2 26/3
f 27/1 36/2 26/3
f 27/1 28/2 36/3
f 28/1 30/2 36/3
f 30/1 35/2 36/3
f 30/1 31/2 35/3
f 31/1 32/2 35/3
f 32/1 26/2 35/3
f 26/1 32/2 25/3
f 27/1 26/2 25/3
f 29/1 30/2 28/3
f 29/1 31/2 30/3
v 0.62394505772953 5.94431501979733 -1.41702326809472
v 0.62394505772953 4.82159308684731 -1.15586016881769
v 1.61256542993587 5.35159045136135 -1.42127165390790
v 2.16922208454817 5.58028218070681 -0.43814187358598
v 1.52463444495606 6.31434601082428 0.17371413181837
v 1.52463444495606 5.19162407787425 0.43487723109540
v 0.53601407274972 5.78434864631023 0.43912561690858
v -0.02064258186258 5.55565691696477 -0.54400416341334
v 1.57897878233784 6.41321066669636 -0.97344896729389
v 0.56960072034775 6.53933067840333 -0.43126784094293
v 0.56960072034775 4.72272843097522 -0.00869706970543
v 1.57897878233783 4.59660841926825 -0.55087819605639
# 12 vertices
# 0 texture coordinate
o Platonic.1
usemtl Mat
f 46/1 45/2 37/3
f 45/1 39/2 37/3
f 45/1 40/2 39/3
f 45/1 41/2 40/3
f 45/1 46/2 41/3
f 41/1 46/2 43/3
f 43/1 46/2 44/3
f 46/1 37/2 44/3
f 48/1 47/2 38/3
f 39/1 48/2 38/3
f 39/1 40/2 48/3
f 40/1 42/2 48/3
f 42/1 47/2 48/3
f 42/1 43/2 47/3
f 43/1 44/2 47/3
f 44/1 38/2 47/3
f 38/1 44/2 37/3
f 39/1 38/2 37/3
f 41/1 42/2 40/3
f 41/1 43/2 42/3
v -0.47583662442670 5.11473864491041 1.15052415689974
v -0.47583662442670 4.48554150205327 1.15052415689974
v 0.03319455695689 4.80014007348184 1.34495676685476
v 0.03319455695689 4.80014007348184 1.97415390971190
v -0.47583662442670 5.11473864491041 2.16858651966692
v -0.47583662442670 4.48554150205327 2.16858651966692
v -0.98486780581028 4.80014007348184 1.97415390971190
v -0.98486780581028 4.80014007348184 1.34495676685476
v -0.16123805299812 5.30917125486543 1.65955533828333
v -0.79043519585527 5.30917125486543 1.65955533828333
v -0.79043519585527 4.29110889209825 1.65955533828333
v -0.16123805299812 4.29110889209825 1.65955533828333
# 12 vertices
# 0 texture coordinate
o Platonic
usemtl Mat
f 58/1 57/2 49/3
f 57/1 51/2 49/3
f 57/1 52/2 51/3
f 57/1 53/2 52/3
f 57/1 58/2 53/3
f 53/1 58/2 55/3
f 55/1 58/2 56/3
f 58/1 49/2 56/3
f 60/1 59/2 50/3
f 51/1 60/2 50/3
f 51/1 52/2 60/3
f 52/1 54/2 60/3
f 54/1 59/2 60/3
f 54/1 55/2 59/3
f 55/1 56/2 59/3
f 56/1 50/2 59/3
f 50/1 56/2 49/3
f 51/1 50/2 49/3
f 53/1 54/2 52/3
f 53/1 55/2 54/3
v -0.31267799671822 3.18288872419396 -0.11638685692337
v -0.58404539715929 3.32521713635960 -0.44715538076993
v -0.44913605856942 3.13541997840002 -0.02687313948369
v -0.61534215011658 3.28261505863834 -0.21939256609872
v -0.70899880379487 3.34575691011816 -0.33379068633018
v -0.24222711497488 3.07522511109852 -0.22743643935449
v -0.46547773357010 3.12720045522424 -0.41951085097730
v -0.56911365395105 3.17842259835914 -0.53150700635770
v -0.24667081661035 3.33802108308335 -0.09485099193192
v -0.38208398597231 3.40176024501343 -0.35376303780887
v -0.47402373373195 3.45147190060151 -0.47616844962189
v -0.66286559627425 3.46561268486690 -0.51640241434361
v -0.61481836793006 3.26589587735626 -0.65408853251734
v -0.47197684883302 3.46681424408337 -0.67360562311278
v -0.77412991472294 3.56232228109497 -0.89627925069904
v -0.79030283410452 3.40749285880943 -0.95886055291318
v -0.66637986897502 3.50710865266110 -1.01243223425911
v -0.85957739237051 3.76672238665826 -1.16713347070836
v -0.89906227925418 3.66846052382041 -1.18269590856759
v -0.81320258861286 3.70097056100065 -1.23772181572250
v -0.96838366888859 4.21372093716817 -1.22539440053189
v -0.99561961842228 4.14594170950512 -1.23612908424528
v -0.93639518128068 4.16836653585926 -1.27408494403366
v -0.52101018845181 3.81767815612312 0.35498925422104
v -0.10510915986771 4.10551050696789 -0.00100788297670
v -0.67087152831016 3.81767815612312 0.17639146405387
v -0.42385985869385 4.07258997439660 -0.01464933982127
v -0.27860528391809 4.19018867824923 -0.13171478441912
v -0.36874440685037 3.64282101326598 0.37939628562337
v -0.14166827394712 3.79801314613471 0.07502925511626
v -0.00258590877590 3.90443508053061 -0.05943088962102
v -0.52341463019490 3.99253529898026 0.50918001298587
v -0.18922509968096 4.12286684292938 0.31013603833437
v -0.03413628690915 4.22190776212384 0.18812202511006
v -0.01090196771267 4.31927685836573 -0.05785485465870
v 0.16450567133567 4.03294716692253 -0.10599280379123
v 0.23568307868772 4.23301754908552 0.15853585826441
v 0.49490692601269 4.47736033488526 -0.23561444237857
v 0.56169204088840 4.27996973632964 -0.33331879780106
v 0.66576688364380 4.35472710996771 -0.14214033869071
v 0.86790824909184 4.76917838696929 -0.31377931564725
v 0.87244225447090 4.65735295805965 -0.40881722698364
v 0.96523787466458 4.66084902647575 -0.29508755308415
v 0.97237667412130 5.39570818675469 -0.27936931825224
v 0.97550414773047 5.31857306041282 -0.34492472340184
v 1.03951286164647 5.32098458417450 -0.26647608385184
v -0.85242001291369 4.68258781707173 0.40151752328953
v -0.84704641222685 4.65814333457985 1.01952131061974
v -0.61927715577083 4.68258781707173 0.40151752328953
v -0.63170745023064 4.74733763813614 0.79919117997193
v -0.63539795783136 4.75592126454738 1.01952131061974
v -0.96899144148512 4.48068018007513 0.40151752328953
v -0.88179449378227 4.43028362671568 0.79919117997193
v -0.86819246814326 4.42596143141788 1.01952131061974
v -0.96899144148512 4.88449545406833 0.40151752328953
v -1.03132780026834 4.80539236529896 0.79919117997193
v -1.03754881070593 4.79254730777429 1.01952131061974
v -0.86405432132233 4.78891671281588 1.22054787803318
v -0.93992836991085 4.45829166395246 1.22054787803318
v -1.18832103705978 4.68931304194980 1.22054787803318
v -1.05301026669432 4.67495414299646 1.73410379216059
v -1.02109303250800 4.44702711257329 1.73410379216059
v -1.23444224815677 4.53334949216098 1.73410379216059
v -1.23289312875170 4.75968648794881 2.17097916982674
v -1.16300426736675 4.63056160498236 2.17097916982674
v -1.30977412696887 4.63459851706464 2.17097916982674
v -1.32640372525630 5.27332264254076 2.53439485303996
v -1.27819567271064 5.18425467062586 2.53439485303996
v -1.37943482532533 5.18703925841179 2.53439485303996
v -0.00000000000000 0.11314336465414 -0.00000000000000
v 0.01317058991873 1.62785852967916 0.05991294728402
v 0.57142857142857 0.11314336465414 -0.00000000000000
v 0.54096216343884 1.62785852967916 -0.15870054182454
v 0.53191680167238 1.62785852967916 -0.17973884185207
v -0.28571428571429 0.11314336465414 0.49487165930539
v -0.07199627663868 1.62785852967916 0.61839262342170
v -0.03865797850384 1.62785852967916 0.62898623934768
v -0.28571428571429 0.11314336465414 -0.49487165930539
v -0.43849947881043 1.62785852967916 -0.30099153977263
v -0.45374705341235 1.62785852967916 -0.26950855564353
v -0.02851546178588 3.02500138682202 -0.26061003858861
v -0.21448126714989 3.02500138682202 0.54974547333155
v -0.82328682388749 3.02500138682202 -0.01648339430900
v -0.49164277887409 4.31928710110774 0.01870998547860
v -0.41341426371153 4.31928710110774 0.57735466788834
v -0.93632900794873 4.31928710110774 0.36578020811458
v -0.93253214666180 5.25357281539345 0.16438903292080
v -0.76123591777710 5.25357281539345 0.48087158921112
v -1.12096596582151 5.25357281539345 0.47097719685259
v -1.16172478515346 6.37642995825059 0.21347838469966
v -1.04356779361996 6.37642995825059 0.43178223743226
v -1.29170297159716 6.37642995825059 0.42495726736871
# 92 vertices
vn 0.00000000000000 -1.00000000000000 0.00000000000000
vn 0.00000000000000 0.00000000000000 0.00000000000000
vn 0.65473896138118 -0.04643234974086 0.75442755076086
vn 0.77887241693344 0.14749715968695 0.60959195042630
vn -0.98206713298651 -0.00000001535854 0.18853155255195
vn -0.91533004350017 -0.12179848481718 0.38384377103480
vn 0.32882915485233 0.04643233289338 -0.94324727690101
vn 0.12947389855611 0.05885494669571 -0.98983463509928
vn 0.00000000000000 1.00000000000000 0.00000000000000
vn -0.00790999322925 0.95772261401622 0.28758446865061
vn 0.92279319804813 0.30289724091557 0.23813016415784
vn -0.67365463653437 -0.21227441990904 0.70790465553493
vn -0.27147114914340 0.10905786859773 -0.95624776939854
vn 0.95514593019003 0.26652111908505 -0.12908425590706
vn -0.37948119811963 0.04712919539665 0.92399830043943
vn -0.60890505509565 -0.09318418465913 -0.78775081187415
vn 0.91658261447315 -0.07790527241918 -0.39218245674029
vn -0.11649198781263 0.59098708381708 0.79822545908837
vn -0.67921057820424 -0.52131902635761 -0.51662313460879
vn 0.80304321697298 -0.40768046679948 -0.43464724623981
vn -0.61480729443351 -0.69226162129662 -0.37787013429367
vn 0.96546885712314 -0.18279621995498 0.18562173335983
vn 0.96546886230147 -0.18279616133077 0.18562176415775
vn 0.96546884389275 -0.18279626215349 0.18562176061847
vn -0.05865696960886 0.37546033584090 0.92498048418685
vn -0.19788508779456 0.57087858441688 0.79683068081162
vn 0.96546886517519 -0.18279623638067 0.18562167530328
vn -0.15489537176706 -0.97566962928974 -0.15516506786893
vn -0.07566824101723 -0.99465751644877 0.07021924432321
vn 0.21378906478447 0.60170049621484 -0.76957829272492
vn 0.19028696014488 0.43161227384321 -0.88176057853973
vn -0.96546893136030 0.18279552237084 -0.18562203419631
vn -0.99310028696434 0.08058029163436 0.08519763278090
vn -0.24444768700451 0.84639075422575 0.47314693223069
vn -0.03722444919051 -0.88327997859285 0.46736583080011
vn 0.08877060813919 0.05559402489245 -0.99449941353771
vn -0.11941952962423 0.98120557925134 0.15157370217280
vn -0.30530267667880 -0.62614601263967 0.71744787020954
vn 0.20644246402154 -0.34801981928807 -0.91447455647022
vn 0.27057590028200 0.96184923483783 -0.04043181455819
vn -0.77121513477484 -0.24265609876707 0.58851103101418
vn 0.54818295185834 -0.57414691616907 -0.60815357430950
vn 0.58615161544699 0.80822813398574 -0.05651165492904
vn 0.68788096192007 -0.58717337587407 -0.42666990624202
vn -0.52667165311378 0.72094995479923 0.45038664776099
vn -0.52667186359401 0.72094979734574 0.45038665367166
vn -0.52667152455539 0.72094994200145 0.45038681857999
vn -0.33942471747186 -0.62352511599694 0.70427785063152
vn -0.37740295280727 -0.78609434991014 0.48951270080735
vn -0.52667163612668 0.72095005075524 0.45038651402508
vn 0.84113541226022 0.51858987249476 0.15347886625755
vn 0.77795496390374 0.49755509490469 0.38369910303768
vn -0.50299613756654 0.10414256711882 -0.85799138183728
vn -0.34940709984651 0.23046879498029 -0.90818434974249
vn 0.52667139029998 -0.72095015982368 -0.45038662689926
vn 0.59107610212649 -0.78746185203066 -0.17473658200673
vn -0.51485515708719 -0.85253043750966 0.09008895792665
vn 0.62677547058152 0.30415083289393 0.71738746875537
vn 0.00832392867456 0.42134113806714 -0.90686402375643
vn -0.66254870025932 -0.71571836632878 -0.22085388808972
vn 0.58756382390127 -0.13460208731445 0.79790414896347
vn 0.21978710769671 0.70865201367666 -0.67045204959216
vn -0.88646791470987 -0.35137595975484 -0.30118029666017
vn 0.62772298067275 -0.63894504520504 0.44464939980084
vn 0.12647094191149 0.96332856764397 -0.23664989248476
vn -0.98085288292976 -0.03094247668630 -0.19227632507640
vn 0.02348471077695 0.99911756059416 -0.03482195388101
vn 0.27929194682883 -0.35365550344094 0.89270588287660
vn 0.27929197430645 -0.35365550049727 0.89270587544612
vn 0.27929191935121 -0.35365550638460 0.89270589030708
vn -0.11909661511739 -0.94544739084407 -0.30322471438477
vn -0.34217144237467 -0.86576691271981 -0.36519358820061
vn 0.88777427685910 0.44934337734212 -0.09973646567869
vn 0.96569497655360 0.23772074615724 -0.10450865564913
vn -0.76924386410985 0.49581746191176 0.40302471635462
vn -0.63687302523445 0.65226276614648 0.41103045340663
vn -0.82249180937631 0.15884133878870 -0.54614709795136
vn -0.27929206851399 0.35365538736674 -0.89270589079027
vn -0.69675702991907 -0.63855464306831 -0.32676843341159
vn 0.97085038954529 -0.17050009197096 -0.16846138951598
vn -0.31313841762673 0.88694951730824 0.33950682637158
vn -0.90723990740476 -0.35437166435540 -0.22657553688382
vn 0.81466157527794 -0.48245588705103 -0.32181180030489
vn 0.07659294495092 0.93526518819248 0.34556120809349
vn -0.98614752416356 -0.14438955503936 -0.08163771788587
vn 0.61703654948650 -0.64801963830284 -0.44647110205661
vn 0.36638277431329 0.84778469019397 0.38343810681674
vn 0.53790870606725 -0.69081416261469 -0.48314595793407
vn 0.44536094422201 0.82249895067476 0.35376419476905
# 89 normals
vt 0.50000000000000 -0.50000000000000 0.00000000000000
vt 0.00000000000000 -0.50000000000000 0.00000000000000
vt 0.75000000000000 -0.06698729097843 0.00000000000000
vt 0.00000000000000 -1.00000000000000 0.00000000000000
vt 0.33333334326744 -0.00000000000000 0.00000000000000
vt 0.33333334326744 -1.00000000000000 0.00000000000000
vt 0.75000000000000 -0.93301272392273 0.00000000000000
vt 0.66666668653488 -0.00000000000000 0.00000000000000
vt 0.66666668653488 -1.00000000000000 0.00000000000000
vt 1.00000000000000 -1.00000000000000 0.00000000000000
# 10 texture coordinates
o Cylinder.4
usemtl Mat.1
f 61/4/1 63/5/1 66/6/1
f 63/7/3 64/1/4 67/8/4 66/9/3
f 61/4/1 69/10/1 63/5/1
f 61/4/1 66/6/1 69/10/1
f 66/9/5 67/8/6 70/11/6 69/12/5
f 69/12/7 70/11/8 64/2/8 63/13/7
f 81/1/9 83/2/10 82/13/10
f 64/1/4 72/1/11 73/13/11 67/13/4
f 67/13/6 73/13/12 74/2/12 70/2/6
f 70/2/8 74/2/13 72/1/13 64/1/8
f 72/1/11 75/1/14 76/13/14 73/13/11
f 73/13/12 76/13/15 77/2/15 74/2/12
f 74/2/13 77/2/16 75/1/16 72/1/13
f 75/1/14 78/1/17 79/13/17 76/13/14
f 76/13/15 79/13/18 80/2/18 77/2/15
f 77/2/16 80/2/19 78/1/19 75/1/16
f 78/1/17 81/1/20 82/13/20 79/13/17
f 79/13/18 82/13/10 83/2/10 80/2/18
f 80/2/19 83/2/21 81/1/21 78/1/19
f 84/4/22 86/5/23 89/6/24
f 86/7/25 87/1/26 90/8/26 89/9/25
f 84/4/22 92/10/27 86/5/23
f 84/4/22 89/6/24 92/10/27
f 89/9/28 90/8/29 93/11/29 92/12/28
f 92/12/30 93/11/31 87/2/31 86/13/30
f 104/1/32 106/2/33 105/13/33
f 87/1/26 95/1/34 96/13/34 90/13/26
f 90/13/29 96/13/35 97/2/35 93/2/29
f 93/2/31 97/2/36 95/1/36 87/1/31
f 95/1/34 98/1/37 99/13/37 96/13/34
f 96/13/35 99/13/38 100/2/38 97/2/35
f 97/2/36 100/2/39 98/1/39 95/1/36
f 98/1/37 101/1/40 102/13/40 99/13/37
f 99/13/38 102/13/41 103/2/41 100/2/38
f 100/2/39 103/2/42 101/1/42 98/1/39
f 101/1/40 104/1/43 105/13/43 102/13/40
f 102/13/41 105/13/33 106/2/33 103/2/41
f 103/2/42 106/2/44 104/1/44 101/1/42
f 107/4/45 109/5/46 112/6/47
f 109/7/48 110/1/49 113/8/49 112/9/48
f 107/4/45 115/10/50 109/5/46
f 107/4/45 112/6/47 115/10/50
f 112/9/51 113/8/52 116/11/52 115/12/51
f 115/12/53 116/11/54 110/2/54 109/13/53
f 127/1/55 129/2/56 128/13/56
f 110/1/49 118/1/57 119/13/57 113/13/49
f 113/13/52 119/13/58 120/2/58 116/2/52
f 116/2/54 120/2/59 118/1/59 110/1/54
f 118/1/57 121/1/60 122/13/60 119/13/57
f 119/13/58 122/13/61 123/2/61 120/2/58
f 120/2/59 123/2/62 121/1/62 118/1/59
f 121/1/60 124/1/63 125/13/63 122/13/60
f 122/13/61 125/13/64 126/2/64 123/2/61
f 123/2/62 126/2/65 124/1/65 121/1/62
f 124/1/63 127/1/66 128/13/66 125/13/63
f 125/13/64 128/13/56 129/2/56 126/2/64
f 126/2/65 129/2/67 127/1/67 124/1/65
f 130/4/68 132/5/69 135/6/70
f 132/7/71 133/1/72 136/8/72 135/9/71
f 130/4/68 138/10/68 132/5/69
f 130/4/68 135/6/70 138/10/68
f 135/9/73 136/8/74 139/11/74 138/12/73
f 138/12/75 139/11/76 133/2/76 132/13/75
f 150/1/77 152/2/78 151/13/77
f 133/1/72 141/1/79 142/13/79 136/13/72
f 136/13/74 142/13/80 143/2/80 139/2/74
f 139/2/76 143/2/81 141/1/81 133/1/76
f 141/1/79 144/1/82 145/13/82 142/13/79
f 142/13/80 145/13/83 146/2/83 143/2/80
f 143/2/81 146/2/84 144/1/84 141/1/81
f 144/1/82 147/1/85 148/13/85 145/13/82
f 145/13/83 148/13/86 149/2/86 146/2/83
f 146/2/84 149/2/87 147/1/87 144/1/84
f 147/1/85 150/1/77 151/13/77 148/13/85
f 148/13/86 151/13/88 152/2/88 149/2/86
f 149/2/87 152/2/89 150/1/89 147/1/87
+12
View File
@@ -0,0 +1,12 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen_1.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
illum 7
+478
View File
@@ -0,0 +1,478 @@
# WaveFront *.obj file (generated by CINEMA 4D)
mtllib ./tree2.mtl
v -1.75211392476365 6.41245259173359 0.75799257659643
v -1.47500265593537 5.37573338375617 0.42774422642200
v -1.25441770589511 5.70839009706014 1.47718366498118
v -2.04614616577368 5.28249848785093 2.14980817190714
v -3.03315748270777 5.72334549250970 1.84632189046877
v -2.75604621387949 4.68662628453229 1.51607354029433
v -3.25374243274803 5.39068877920574 0.79688245190958
v -2.46201397286946 5.81658038841494 0.12425794498363
v -2.10510002629763 6.35483025712659 1.82228662570700
v -2.85143556397527 6.42169553443661 0.98613254649458
v -2.40306011234551 4.74424861913928 0.45177949118377
v -1.65672457466787 4.67738334182926 1.28793357039618
# 12 vertices
vt 0.00000000000000 -0.00000000000000 0.00000000000000
vt 1.00000000000000 -0.00000000000000 0.00000000000000
vt 0.50000000000000 -1.00000000000000 0.00000000000000
# 3 texture coordinates
o Platonic.4
usemtl Mat
f 10/1 9/2 1/3
f 9/1 3/2 1/3
f 9/1 4/2 3/3
f 9/1 5/2 4/3
f 9/1 10/2 5/3
f 5/1 10/2 7/3
f 7/1 10/2 8/3
f 10/1 1/2 8/3
f 12/1 11/2 2/3
f 3/1 12/2 2/3
f 3/1 4/2 12/3
f 4/1 6/2 12/3
f 6/1 11/2 12/3
f 6/1 7/2 11/3
f 7/1 8/2 11/3
f 8/1 2/2 11/3
f 2/1 8/2 1/3
f 3/1 2/2 1/3
f 5/1 6/2 4/3
f 5/1 7/2 6/3
v 0.10332978173509 8.04858110514051 -0.72072184483883
v 0.49324299927879 6.24427347540975 -1.18540232264651
v 1.11960170490567 6.95897842110483 0.46394842806114
v -0.04018488354815 6.35238113816428 1.84612826149357
v -1.77324433807948 7.06708608385936 1.51569210421950
v -1.38333112053578 5.26277845412860 1.05101162641182
v -2.39960304370636 6.35238113816428 -0.13365864648816
v -1.23981645525254 6.95897842110483 -1.51583847992058
v -0.22634678039886 8.11539531516712 1.15286709409456
v -1.68454739705038 8.11539531516712 -0.07070850552021
v -1.05365455840183 5.19596424410199 -0.82257731252158
v 0.40454605824969 5.19596424410199 0.40099828709319
# 12 vertices
# 0 texture coordinate
o Platonic.3
usemtl Mat
f 22/1 21/2 13/3
f 21/1 15/2 13/3
f 21/1 16/2 15/3
f 21/1 17/2 16/3
f 21/1 22/2 17/3
f 17/1 22/2 19/3
f 19/1 22/2 20/3
f 22/1 13/2 20/3
f 24/1 23/2 14/3
f 15/1 24/2 14/3
f 15/1 16/2 24/3
f 16/1 18/2 24/3
f 18/1 23/2 24/3
f 18/1 19/2 23/3
f 19/1 20/2 23/3
f 20/1 14/2 23/3
f 14/1 20/2 13/3
f 15/1 14/2 13/3
f 17/1 18/2 16/3
f 17/1 19/2 18/3
v 0.94761186252949 4.68882818882168 -2.06547548633514
v 0.73481463467558 3.74824469248918 -1.81187362554615
v 1.09939735850220 4.37810221252871 -1.13021915333326
v 0.33939251914696 4.70078381170267 -0.57114571695646
v -0.28210179916169 5.21093798382931 -1.16087566407027
v -0.49489902701561 4.27035448749681 -0.90727380328128
v -0.64668452298831 4.58108046378978 -1.84253013628316
v 0.11332031636693 4.25839886461582 -2.40160357265996
v 0.70322755522942 5.27752974010950 -1.29866346803614
v 0.09379842766386 5.20354900253219 -2.08442225194709
v -0.25051471971553 3.68165293620899 -1.67408582158029
v 0.35891440785003 3.75563367378630 -0.88832703766934
# 12 vertices
# 0 texture coordinate
o Platonic.2
usemtl Mat
f 34/1 33/2 25/3
f 33/1 27/2 25/3
f 33/1 28/2 27/3
f 33/1 29/2 28/3
f 33/1 34/2 29/3
f 29/1 34/2 31/3
f 31/1 34/2 32/3
f 34/1 25/2 32/3
f 36/1 35/2 26/3
f 27/1 36/2 26/3
f 27/1 28/2 36/3
f 28/1 30/2 36/3
f 30/1 35/2 36/3
f 30/1 31/2 35/3
f 31/1 32/2 35/3
f 32/1 26/2 35/3
f 26/1 32/2 25/3
f 27/1 26/2 25/3
f 29/1 30/2 28/3
f 29/1 31/2 30/3
v 1.70391933234667 5.94431501979733 -0.45730119503487
v 1.53604692802406 4.82159308684731 -0.25723865408597
v 2.46397728459143 5.35159045136135 0.17491727855865
v 2.25845738007761 5.58028218070681 1.28585038407339
v 1.37138114147867 6.31434601082428 1.34022632891546
v 1.20350873715606 5.19162407787425 1.54028886986436
v 0.44345078491130 5.78434864631023 0.90807039627085
v 0.64897068942513 5.55565691696477 -0.20286270924390
v 2.15039354554394 6.41321066669636 0.49638027821500
v 1.02865777992594 6.53933067840333 0.26289940548351
v 0.75703452395879 4.72272843097522 0.58660739661449
v 1.87877028957679 4.59660841926825 0.82008826934599
# 12 vertices
# 0 texture coordinate
o Platonic.1
usemtl Mat
f 46/1 45/2 37/3
f 45/1 39/2 37/3
f 45/1 40/2 39/3
f 45/1 41/2 40/3
f 45/1 46/2 41/3
f 41/1 46/2 43/3
f 43/1 46/2 44/3
f 46/1 37/2 44/3
f 48/1 47/2 38/3
f 39/1 48/2 38/3
f 39/1 40/2 48/3
f 40/1 42/2 48/3
f 42/1 47/2 48/3
f 42/1 43/2 47/3
f 43/1 44/2 47/3
f 44/1 38/2 47/3
f 38/1 44/2 37/3
f 39/1 38/2 37/3
f 41/1 42/2 40/3
f 41/1 43/2 42/3
v -0.78894998598217 5.11473864491041 0.80262820367634
v -0.78894998598217 4.48554150205327 0.80262820367634
v -0.52398835070708 4.80014007348184 1.27877116043097
v -0.92842847818583 4.80014007348184 1.76076413534303
v -1.44334785865711 5.11473864491041 1.58250921942271
v -1.44334785865711 4.48554150205327 1.58250921942271
v -1.70830949393220 4.80014007348184 1.10636626266808
v -1.30386936645346 4.80014007348184 0.62437328775603
v -0.87515243486362 5.30917125486543 1.39478877528890
v -1.35714540977567 5.30917125486543 0.99034864781016
v -1.35714540977567 4.29110889209825 0.99034864781016
v -0.87515243486362 4.29110889209825 1.39478877528890
# 12 vertices
# 0 texture coordinate
o Platonic
usemtl Mat
f 58/1 57/2 49/3
f 57/1 51/2 49/3
f 57/1 52/2 51/3
f 57/1 53/2 52/3
f 57/1 58/2 53/3
f 53/1 58/2 55/3
f 55/1 58/2 56/3
f 58/1 49/2 56/3
f 60/1 59/2 50/3
f 51/1 60/2 50/3
f 51/1 52/2 60/3
f 52/1 54/2 60/3
f 54/1 59/2 60/3
f 54/1 55/2 59/3
f 55/1 56/2 59/3
f 56/1 50/2 59/3
f 50/1 56/2 49/3
f 51/1 50/2 49/3
f 53/1 54/2 52/3
f 53/1 55/2 54/3
v 0.15039147638173 3.18288872419396 -0.06300559408461
v 0.15512589603308 3.32521713635960 -0.49082058641230
v -0.01167977208537 3.13541997840002 -0.08214765965682
v -0.01525192287550 3.28261505863834 -0.33646131290866
v -0.01346338773066 3.34575691011816 -0.48429669376433
v 0.27574127850164 3.07522511109852 -0.10278955574055
v 0.22818443463287 3.12720045522424 -0.39342982291741
v 0.22078445472858 3.17842259835914 -0.54583974093660
v 0.18711292272893 3.33802108308335 -0.00407956685647
v 0.24980587190237 3.40176024501343 -0.28945960831133
v 0.25805662110133 3.45147190060151 -0.44232532453599
v 0.13925725568425 3.46561268486690 -0.59453153906802
v 0.26456649875250 3.26589587735626 -0.66912106173020
v 0.38653479471533 3.46681424408337 -0.59225526190231
v 0.29820396643540 3.56232228109497 -0.95705340392675
v 0.32604127707543 3.40749285880943 -1.01538921492198
v 0.45540698888695 3.50710865266110 -0.97677135718471
v 0.40684913765825 3.76672238665826 -1.21946435397104
v 0.38660530170626 3.66846052382041 -1.25676626907319
v 0.48774761194090 3.70097056100065 -1.24372901416103
v 0.36094809797449 4.21372093716817 -1.33403414191525
v 0.34698427186601 4.14594170950512 -1.35976431762084
v 0.41675037922215 4.16836653585926 -1.35077145871025
v -0.31219496516443 3.81767815612312 0.16417610493140
v 0.23523425554447 4.10551050696789 0.15880250424455
v -0.31219496516443 3.81767815612312 -0.06896675221146
v -0.00017438659382 4.07258997439660 -0.05653645775165
v 0.18634529056070 4.19018867824923 -0.05284595015094
v -0.21124114666613 3.64282101326598 0.28074753350282
v 0.15835261911641 3.79801314613471 0.19355058579998
v 0.35132520712545 3.90443508053061 0.17994856016096
v -0.41314878366273 3.99253529898026 0.28074753350282
v -0.02920175017523 4.12286684292938 0.34308389228605
v 0.16803226894725 4.22190776212384 0.34930490272363
v 0.34394168064207 4.31927685836573 0.17581041334003
v 0.50925420507379 4.03294716692253 0.25168446192855
v 0.39374351607511 4.23301754908552 0.50007712907749
v 0.84567543344986 4.47736033488526 0.36476635871202
v 0.95963894866145 4.27996973632964 0.33284912452570
v 0.91647775886760 4.35472710996771 0.54619834017448
v 1.18165443632050 4.76917838696929 0.54464922076941
v 1.24621687780372 4.65735295805965 0.47476035938445
v 1.24419842176258 4.66084902647575 0.62153021898657
v 1.23956357282085 5.39570818675469 0.63815981727401
v 1.28409755877830 5.31857306041282 0.58995176472834
v 1.28270526488534 5.32098458417450 0.69119091734304
v -0.59597741444588 4.68258781707173 -0.01320730199323
v -0.98910617473539 4.65814333457985 0.46366514905846
v -0.41737962427871 4.68258781707173 0.13665403786512
v -0.68252148149017 4.74733763813614 0.43329969347796
v -0.82697405235101 4.75592126454738 0.59971015315319
v -0.68527630952946 4.48068018007513 -0.08813797192240
v -0.87409927149895 4.43028362671568 0.27254684053983
v -1.00530499336404 4.42596143141788 0.45007272632166
v -0.68527630952946 4.88449545406833 -0.08813797192240
v -0.98864842999381 4.80539236529896 0.17642868389513
v -1.13503947849113 4.79254730777429 0.34121256770054
v -1.13135237573823 4.78891671281588 0.60672796071156
v -1.18947526903641 4.45829166395246 0.55795706238211
v -1.37975509141735 4.68931304194980 0.39829333360178
v -1.60620840616709 4.67495414299646 0.87867607449803
v -1.58175838627893 4.44702711257329 0.89919207716847
v -1.74519336737047 4.53334949216098 0.76205384481309
v -2.02482475279941 4.75968648794881 1.09771555496925
v -1.97128677889955 4.63056160498236 1.14263924912261
v -2.08371901426511 4.63459851706464 1.04829740189493
v -2.33005712395973 5.27332264254076 1.31600066682948
v -2.29312761319353 5.18425467062586 1.34698820569295
v -2.37068130348010 5.18703925841179 1.28191293277706
v 0.31510468869260 0.11314336465414 0.22713745302569
v 0.28668264573847 1.62785852967916 0.28149932537552
v 0.75284437047487 0.11314336465414 0.59444465856086
v 0.83151648986790 1.62785852967916 0.45328956080875
v 0.83811049933727 1.62785852967916 0.43135904151137
v -0.22186252318506 0.11314336465414 0.42257753492608
v -0.13754277520875 1.62785852967916 0.65457537129675
v -0.11881360223850 1.62785852967916 0.68411999687849
v 0.41433221878799 0.11314336465414 -0.33560983440985
v 0.17266823202563 1.62785852967916 -0.28529747527630
v 0.14075104011664 1.62785852967916 -0.27098106226329
v 0.46077748141325 3.02500138682202 0.00916919562342
v -0.20256707289948 3.02500138682202 0.51040101696732
v -0.30497428621208 3.02500138682202 -0.31468812920151
v -0.07354207690653 4.31928710110774 -0.07455175321971
v -0.37270543764305 4.31928710110774 0.40367922168890
v -0.63728393042225 4.31928710110774 -0.09451933604476
v -0.50492361381733 5.25357281539345 -0.24635335130422
v -0.57713415541830 5.25357281539345 0.10619344579919
v -0.84634336693221 5.25357281539345 -0.13261611620000
v -0.71204938802864 6.37642995825059 -0.35607091441152
v -0.76185889293209 6.37642995825059 -0.11289061095868
v -0.94755446097053 6.37642995825059 -0.27761705928142
# 92 vertices
vn 0.00000000000000 -1.00000000000000 0.00000000000000
vn 0.00000000000000 0.00000000000000 0.00000000000000
vn 0.65473896138118 -0.04643234974086 0.75442755076086
vn 0.77887241693344 0.14749715968695 0.60959195042630
vn -0.98206713298651 -0.00000001535854 0.18853155255195
vn -0.91533004350017 -0.12179848481718 0.38384377103480
vn 0.32882915485233 0.04643233289338 -0.94324727690101
vn 0.12947389855611 0.05885494669571 -0.98983463509928
vn 0.00000000000000 1.00000000000000 0.00000000000000
vn -0.00790999322925 0.95772261401622 0.28758446865061
vn 0.92279319804813 0.30289724091557 0.23813016415784
vn -0.67365463653437 -0.21227441990904 0.70790465553493
vn -0.27147114914340 0.10905786859773 -0.95624776939854
vn 0.95514593019003 0.26652111908505 -0.12908425590706
vn -0.37948119811963 0.04712919539665 0.92399830043943
vn -0.60890505509565 -0.09318418465913 -0.78775081187415
vn 0.91658261447315 -0.07790527241918 -0.39218245674029
vn -0.11649198781263 0.59098708381708 0.79822545908837
vn -0.67921057820424 -0.52131902635761 -0.51662313460879
vn 0.80304321697298 -0.40768046679948 -0.43464724623981
vn -0.61480729443351 -0.69226162129662 -0.37787013429367
vn 0.96546885712314 -0.18279621995498 0.18562173335983
vn 0.96546886230147 -0.18279616133077 0.18562176415775
vn 0.96546884389275 -0.18279626215349 0.18562176061847
vn -0.05865696960886 0.37546033584090 0.92498048418685
vn -0.19788508779456 0.57087858441688 0.79683068081162
vn 0.96546886517519 -0.18279623638067 0.18562167530328
vn -0.15489537176706 -0.97566962928974 -0.15516506786893
vn -0.07566824101723 -0.99465751644877 0.07021924432321
vn 0.21378906478447 0.60170049621484 -0.76957829272492
vn 0.19028696014488 0.43161227384321 -0.88176057853973
vn -0.96546893136030 0.18279552237084 -0.18562203419631
vn -0.99310028696434 0.08058029163436 0.08519763278090
vn -0.24444768700451 0.84639075422575 0.47314693223069
vn -0.03722444919051 -0.88327997859285 0.46736583080011
vn 0.08877060813919 0.05559402489245 -0.99449941353771
vn -0.11941952962423 0.98120557925134 0.15157370217280
vn -0.30530267667880 -0.62614601263967 0.71744787020954
vn 0.20644246402154 -0.34801981928807 -0.91447455647022
vn 0.27057590028200 0.96184923483783 -0.04043181455819
vn -0.77121513477484 -0.24265609876707 0.58851103101418
vn 0.54818295185834 -0.57414691616907 -0.60815357430950
vn 0.58615161544699 0.80822813398574 -0.05651165492904
vn 0.68788096192007 -0.58717337587407 -0.42666990624202
vn -0.52667165311378 0.72094995479923 0.45038664776099
vn -0.52667186359401 0.72094979734574 0.45038665367166
vn -0.52667152455539 0.72094994200145 0.45038681857999
vn -0.33942471747186 -0.62352511599694 0.70427785063152
vn -0.37740295280727 -0.78609434991014 0.48951270080735
vn -0.52667163612668 0.72095005075524 0.45038651402508
vn 0.84113541226022 0.51858987249476 0.15347886625755
vn 0.77795496390374 0.49755509490469 0.38369910303768
vn -0.50299613756654 0.10414256711882 -0.85799138183728
vn -0.34940709984651 0.23046879498029 -0.90818434974249
vn 0.52667139029998 -0.72095015982368 -0.45038662689926
vn 0.59107610212649 -0.78746185203066 -0.17473658200673
vn -0.51485515708719 -0.85253043750966 0.09008895792665
vn 0.62677547058152 0.30415083289393 0.71738746875537
vn 0.00832392867456 0.42134113806714 -0.90686402375643
vn -0.66254870025932 -0.71571836632878 -0.22085388808972
vn 0.58756382390127 -0.13460208731445 0.79790414896347
vn 0.21978710769671 0.70865201367666 -0.67045204959216
vn -0.88646791470987 -0.35137595975484 -0.30118029666017
vn 0.62772298067275 -0.63894504520504 0.44464939980084
vn 0.12647094191149 0.96332856764397 -0.23664989248476
vn -0.98085288292976 -0.03094247668630 -0.19227632507640
vn 0.02348471077695 0.99911756059416 -0.03482195388101
vn 0.27929194682883 -0.35365550344094 0.89270588287660
vn 0.27929197430645 -0.35365550049727 0.89270587544612
vn 0.27929191935121 -0.35365550638460 0.89270589030708
vn -0.11909661511739 -0.94544739084407 -0.30322471438477
vn -0.34217144237467 -0.86576691271981 -0.36519358820061
vn 0.88777427685910 0.44934337734212 -0.09973646567869
vn 0.96569497655360 0.23772074615724 -0.10450865564913
vn -0.76924386410985 0.49581746191176 0.40302471635462
vn -0.63687302523445 0.65226276614648 0.41103045340663
vn -0.82249180937631 0.15884133878870 -0.54614709795136
vn -0.27929206851399 0.35365538736674 -0.89270589079027
vn -0.69675702991907 -0.63855464306831 -0.32676843341159
vn 0.97085038954529 -0.17050009197096 -0.16846138951598
vn -0.31313841762673 0.88694951730824 0.33950682637158
vn -0.90723990740476 -0.35437166435540 -0.22657553688382
vn 0.81466157527794 -0.48245588705103 -0.32181180030489
vn 0.07659294495092 0.93526518819248 0.34556120809349
vn -0.98614752416356 -0.14438955503936 -0.08163771788587
vn 0.61703654948650 -0.64801963830284 -0.44647110205661
vn 0.36638277431329 0.84778469019397 0.38343810681674
vn 0.53790870606725 -0.69081416261469 -0.48314595793407
vn 0.44536094422201 0.82249895067476 0.35376419476905
# 89 normals
vt 0.50000000000000 -0.50000000000000 0.00000000000000
vt 0.00000000000000 -0.50000000000000 0.00000000000000
vt 0.75000000000000 -0.06698729097843 0.00000000000000
vt 0.00000000000000 -1.00000000000000 0.00000000000000
vt 0.33333334326744 -0.00000000000000 0.00000000000000
vt 0.33333334326744 -1.00000000000000 0.00000000000000
vt 0.75000000000000 -0.93301272392273 0.00000000000000
vt 0.66666668653488 -0.00000000000000 0.00000000000000
vt 0.66666668653488 -1.00000000000000 0.00000000000000
vt 1.00000000000000 -1.00000000000000 0.00000000000000
# 10 texture coordinates
o Cylinder.4
usemtl Mat.1
f 61/4/1 63/5/1 66/6/1
f 63/7/3 64/1/4 67/8/4 66/9/3
f 61/4/1 69/10/1 63/5/1
f 61/4/1 66/6/1 69/10/1
f 66/9/5 67/8/6 70/11/6 69/12/5
f 69/12/7 70/11/8 64/2/8 63/13/7
f 81/1/9 83/2/10 82/13/10
f 64/1/4 72/1/11 73/13/11 67/13/4
f 67/13/6 73/13/12 74/2/12 70/2/6
f 70/2/8 74/2/13 72/1/13 64/1/8
f 72/1/11 75/1/14 76/13/14 73/13/11
f 73/13/12 76/13/15 77/2/15 74/2/12
f 74/2/13 77/2/16 75/1/16 72/1/13
f 75/1/14 78/1/17 79/13/17 76/13/14
f 76/13/15 79/13/18 80/2/18 77/2/15
f 77/2/16 80/2/19 78/1/19 75/1/16
f 78/1/17 81/1/20 82/13/20 79/13/17
f 79/13/18 82/13/10 83/2/10 80/2/18
f 80/2/19 83/2/21 81/1/21 78/1/19
f 84/4/22 86/5/23 89/6/24
f 86/7/25 87/1/26 90/8/26 89/9/25
f 84/4/22 92/10/27 86/5/23
f 84/4/22 89/6/24 92/10/27
f 89/9/28 90/8/29 93/11/29 92/12/28
f 92/12/30 93/11/31 87/2/31 86/13/30
f 104/1/32 106/2/33 105/13/33
f 87/1/26 95/1/34 96/13/34 90/13/26
f 90/13/29 96/13/35 97/2/35 93/2/29
f 93/2/31 97/2/36 95/1/36 87/1/31
f 95/1/34 98/1/37 99/13/37 96/13/34
f 96/13/35 99/13/38 100/2/38 97/2/35
f 97/2/36 100/2/39 98/1/39 95/1/36
f 98/1/37 101/1/40 102/13/40 99/13/37
f 99/13/38 102/13/41 103/2/41 100/2/38
f 100/2/39 103/2/42 101/1/42 98/1/39
f 101/1/40 104/1/43 105/13/43 102/13/40
f 102/13/41 105/13/33 106/2/33 103/2/41
f 103/2/42 106/2/44 104/1/44 101/1/42
f 107/4/45 109/5/46 112/6/47
f 109/7/48 110/1/49 113/8/49 112/9/48
f 107/4/45 115/10/50 109/5/46
f 107/4/45 112/6/47 115/10/50
f 112/9/51 113/8/52 116/11/52 115/12/51
f 115/12/53 116/11/54 110/2/54 109/13/53
f 127/1/55 129/2/56 128/13/56
f 110/1/49 118/1/57 119/13/57 113/13/49
f 113/13/52 119/13/58 120/2/58 116/2/52
f 116/2/54 120/2/59 118/1/59 110/1/54
f 118/1/57 121/1/60 122/13/60 119/13/57
f 119/13/58 122/13/61 123/2/61 120/2/58
f 120/2/59 123/2/62 121/1/62 118/1/59
f 121/1/60 124/1/63 125/13/63 122/13/60
f 122/13/61 125/13/64 126/2/64 123/2/61
f 123/2/62 126/2/65 124/1/65 121/1/62
f 124/1/63 127/1/66 128/13/66 125/13/63
f 125/13/64 128/13/56 129/2/56 126/2/64
f 126/2/65 129/2/67 127/1/67 124/1/65
f 130/4/68 132/5/69 135/6/70
f 132/7/71 133/1/72 136/8/72 135/9/71
f 130/4/68 138/10/68 132/5/69
f 130/4/68 135/6/70 138/10/68
f 135/9/73 136/8/74 139/11/74 138/12/73
f 138/12/75 139/11/76 133/2/76 132/13/75
f 150/1/77 152/2/78 151/13/77
f 133/1/72 141/1/79 142/13/79 136/13/72
f 136/13/74 142/13/80 143/2/80 139/2/74
f 139/2/76 143/2/81 141/1/81 133/1/76
f 141/1/79 144/1/82 145/13/82 142/13/79
f 142/13/80 145/13/83 146/2/83 143/2/80
f 143/2/81 146/2/84 144/1/84 141/1/81
f 144/1/82 147/1/85 148/13/85 145/13/82
f 145/13/83 148/13/86 149/2/86 146/2/83
f 146/2/84 149/2/87 147/1/87 144/1/84
f 147/1/85 150/1/77 151/13/77 148/13/85
f 148/13/86 151/13/88 152/2/88 149/2/86
f 149/2/87 152/2/89 150/1/89 147/1/87
+12
View File
@@ -0,0 +1,12 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen_1.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
illum 7
+478
View File
@@ -0,0 +1,478 @@
# WaveFront *.obj file (generated by CINEMA 4D)
mtllib ./tree3.mtl
v 0.05707717430603 6.41245259173359 2.14407899244613
v -0.27317117586841 5.37573338375617 1.86696772361785
v 0.77626826269077 5.70839009706014 1.64638277357759
v 1.44889276961673 5.28249848785093 2.43811123345616
v 1.14540648817836 5.72334549250970 3.42512255039025
v 0.81515813800392 4.68662628453228 3.14801128156197
v 0.09596704961917 5.39068877920573 3.64570750043051
v -0.57665745730678 5.81658038841494 2.85397904055194
v 1.12137122341659 6.35483025712659 2.49706509398011
v 0.28521714420417 6.42169553443661 3.24340063165775
v -0.24913591110664 4.74424861913928 2.79502518002799
v 0.58701816810577 4.67738334182926 2.04868964235035
# 12 vertices
vt 0.00000000000000 -0.00000000000000 0.00000000000000
vt 1.00000000000000 -0.00000000000000 0.00000000000000
vt 0.50000000000000 -1.00000000000000 0.00000000000000
# 3 texture coordinates
o Platonic.4
usemtl Mat
f 10/1 9/2 1/3
f 9/1 3/2 1/3
f 9/1 4/2 3/3
f 9/1 5/2 4/3
f 9/1 10/2 5/3
f 5/1 10/2 7/3
f 7/1 10/2 8/3
f 10/1 1/2 8/3
f 12/1 11/2 2/3
f 3/1 12/2 2/3
f 3/1 4/2 12/3
f 4/1 6/2 12/3
f 6/1 11/2 12/3
f 6/1 7/2 11/3
f 7/1 8/2 11/3
f 8/1 2/2 11/3
f 2/1 8/2 1/3
f 3/1 2/2 1/3
f 5/1 6/2 4/3
f 5/1 7/2 6/3
v -1.42163724712924 8.04858110514051 0.28863528594739
v -1.88631772493692 6.24427347540975 -0.10127793159631
v -0.23696697422926 6.95897842110483 -0.72763663722319
v 1.14521285920316 6.35238113816428 0.43214995123063
v 0.81477670192909 7.06708608385936 2.16520940576196
v 0.35009622412141 5.26277845412860 1.77529618821826
v -0.83457404877857 6.35238113816428 2.79156811138884
v -2.21675388221099 6.95897842110483 1.63178152293502
v 0.45195169180415 8.11539531516712 0.61831184808134
v -0.77162390781061 8.11539531516712 2.07651246473286
v -1.52349271481198 5.19596424410199 1.44561962608431
v -0.29991711519721 5.19596424410199 -0.01258099056721
# 12 vertices
# 0 texture coordinate
o Platonic.3
usemtl Mat
f 22/1 21/2 13/3
f 21/1 15/2 13/3
f 21/1 16/2 15/3
f 21/1 17/2 16/3
f 21/1 22/2 17/3
f 17/1 22/2 19/3
f 19/1 22/2 20/3
f 22/1 13/2 20/3
f 24/1 23/2 14/3
f 15/1 24/2 14/3
f 15/1 16/2 24/3
f 16/1 18/2 24/3
f 18/1 23/2 24/3
f 18/1 19/2 23/3
f 19/1 20/2 23/3
f 20/1 14/2 23/3
f 14/1 20/2 13/3
f 15/1 14/2 13/3
f 17/1 18/2 16/3
f 17/1 19/2 18/3
v -2.76639088862555 4.68882818882168 -0.55564679484701
v -2.51278902783656 3.74824469248918 -0.34284956699310
v -1.83113455562367 4.37810221252871 -0.70743229081972
v -1.27206111924687 4.70078381170267 0.05257254853552
v -1.86179106636068 5.21093798382931 0.67406686684417
v -1.60818920557169 4.27035448749681 0.88686409469809
v -2.54344553857357 4.58108046378978 1.03864959067079
v -3.10251897495037 4.25839886461582 0.27864475131555
v -1.99957887032654 5.27752974010950 -0.31126248754694
v -2.78533765423749 5.20354900253219 0.29816664001862
v -2.37500122387069 3.68165293620899 0.64247978739801
v -1.58924243995974 3.75563367378630 0.03305065983245
# 12 vertices
# 0 texture coordinate
o Platonic.2
usemtl Mat
f 34/1 33/2 25/3
f 33/1 27/2 25/3
f 33/1 28/2 27/3
f 33/1 29/2 28/3
f 33/1 34/2 29/3
f 29/1 34/2 31/3
f 31/1 34/2 32/3
f 34/1 25/2 32/3
f 36/1 35/2 26/3
f 27/1 36/2 26/3
f 27/1 28/2 36/3
f 28/1 30/2 36/3
f 30/1 35/2 36/3
f 30/1 31/2 35/3
f 31/1 32/2 35/3
f 32/1 26/2 35/3
f 26/1 32/2 25/3
f 27/1 26/2 25/3
f 29/1 30/2 28/3
f 29/1 31/2 30/3
v -1.15821659732527 5.94431501979733 -1.31195426466419
v -0.95815405637637 4.82159308684731 -1.14408186034158
v -0.52599812373176 5.35159045136135 -2.07201221690895
v 0.58493498178298 5.58028218070681 -1.86649231239513
v 0.63931092662505 6.31434601082428 -0.97941607379619
v 0.83937346757395 5.19162407787425 -0.81154366947358
v 0.20715499398044 5.78434864631023 -0.05148571722882
v -0.90377811153430 5.55565691696477 -0.25700562174265
v -0.20453512407541 6.41321066669636 -1.75842847786146
v -0.43801599680690 6.53933067840333 -0.63669271224346
v -0.11430800567591 4.72272843097522 -0.36506945627631
v 0.11917286705558 4.59660841926825 -1.48680522189431
# 12 vertices
# 0 texture coordinate
o Platonic.1
usemtl Mat
f 46/1 45/2 37/3
f 45/1 39/2 37/3
f 45/1 40/2 39/3
f 45/1 41/2 40/3
f 45/1 46/2 41/3
f 41/1 46/2 43/3
f 43/1 46/2 44/3
f 46/1 37/2 44/3
f 48/1 47/2 38/3
f 39/1 48/2 38/3
f 39/1 40/2 48/3
f 40/1 42/2 48/3
f 42/1 47/2 48/3
f 42/1 43/2 47/3
f 43/1 44/2 47/3
f 44/1 38/2 47/3
f 38/1 44/2 37/3
f 39/1 38/2 37/3
f 41/1 42/2 40/3
f 41/1 43/2 42/3
v 0.10171280138593 5.11473864491041 1.18091505366465
v 0.10171280138593 4.48554150205327 1.18091505366465
v 0.57785575814057 4.80014007348184 0.91595341838956
v 1.05984873305262 4.80014007348184 1.32039354586831
v 0.88159381713231 5.11473864491041 1.83531292633959
v 0.88159381713231 4.48554150205327 1.83531292633959
v 0.40545086037767 4.80014007348184 2.10027456161468
v -0.07654211453438 4.80014007348184 1.69583443413594
v 0.69387337299849 5.30917125486543 1.26711750254610
v 0.28943324551975 5.30917125486543 1.74911047745815
v 0.28943324551975 4.29110889209825 1.74911047745815
v 0.69387337299849 4.29110889209825 1.26711750254610
# 12 vertices
# 0 texture coordinate
o Platonic
usemtl Mat
f 58/1 57/2 49/3
f 57/1 51/2 49/3
f 57/1 52/2 51/3
f 57/1 53/2 52/3
f 57/1 58/2 53/3
f 53/1 58/2 55/3
f 55/1 58/2 56/3
f 58/1 49/2 56/3
f 60/1 59/2 50/3
f 51/1 60/2 50/3
f 51/1 52/2 60/3
f 52/1 54/2 60/3
f 54/1 59/2 60/3
f 54/1 55/2 59/3
f 55/1 56/2 59/3
f 56/1 50/2 59/3
f 50/1 56/2 49/3
f 51/1 50/2 49/3
f 53/1 54/2 52/3
f 53/1 55/2 54/3
v -0.76392099637502 3.18288872419396 0.24157359130074
v -1.19173598870271 3.32521713635960 0.23683917164940
v -0.78306306194722 3.13541997840002 0.40364483976785
v -1.03737671519907 3.28261505863834 0.40721699055798
v -1.18521209605474 3.34575691011816 0.40542845541314
v -0.80370495803096 3.07522511109852 0.11622378918084
v -1.09434522520782 3.12720045522424 0.16378063304961
v -1.24675514322701 3.17842259835914 0.17118061295390
v -0.70499496914688 3.33802108308335 0.20485214495355
v -0.99037501060173 3.40176024501343 0.14215919578011
v -1.14324072682640 3.45147190060151 0.13390844658115
v -1.29544694135843 3.46561268486690 0.25270781199823
v -1.37003646402061 3.26589587735626 0.12739856892998
v -1.29317066419271 3.46681424408337 0.00543027296715
v -1.65796880621715 3.56232228109497 0.09376110124708
v -1.71630461721239 3.40749285880943 0.06592379060705
v -1.67768675947512 3.50710865266110 -0.06344192120447
v -1.92037975626145 3.76672238665826 -0.01488406997577
v -1.95768167136360 3.66846052382041 0.00535976597622
v -1.94464441645144 3.70097056100065 -0.09578254425842
v -2.03494954420566 4.21372093716817 0.03101696970799
v -2.06067971991125 4.14594170950512 0.04498079581648
v -2.05168686100066 4.16836653585926 -0.02478531153966
v -0.53673929735901 3.81767815612312 0.70416003284691
v -0.54211289804585 4.10551050696789 0.15673081213801
v -0.76988215450187 3.81767815612312 0.70416003284691
v -0.75745186004206 4.07258997439660 0.39213945427630
v -0.75376135244134 4.19018867824923 0.20561977712178
v -0.42016786878758 3.64282101326598 0.60320621434861
v -0.50736481649043 3.79801314613471 0.23361244856607
v -0.52096684212944 3.90443508053061 0.04063986055703
v -0.42016786878758 3.99253529898026 0.80511385134521
v -0.35783151000436 4.12286684292938 0.42116681785771
v -0.35161049956677 4.22190776212384 0.22393279873523
v -0.52510498895037 4.31927685836573 0.04802338704041
v -0.44923094036186 4.03294716692253 -0.11728913739131
v -0.20083827321292 4.23301754908552 -0.00177844839263
v -0.33614904357838 4.47736033488526 -0.45371036576738
v -0.36806627776471 4.27996973632964 -0.56767388097897
v -0.15471706211593 4.35472710996771 -0.52451269118513
v -0.15626618152100 4.76917838696929 -0.78968936863802
v -0.22615504290596 4.65735295805965 -0.85425181012124
v -0.07938518330384 4.66084902647575 -0.85223335408010
v -0.06275558501640 5.39570818675469 -0.84759850513837
v -0.11096363756207 5.31857306041282 -0.89213249109582
v -0.00972448494737 5.32098458417450 -0.89074019720286
v -0.71412270428364 4.68258781707173 0.98794248212836
v -0.23725025323194 4.65814333457985 1.38107124241787
v -0.56426136442529 4.68258781707173 0.80934469196119
v -0.26761570881245 4.74733763813614 1.07448654917265
v -0.10120524913721 4.75592126454738 1.21893912003349
v -0.78905337421281 4.48068018007513 1.07724137721194
v -0.42836856175058 4.43028362671568 1.26606433918143
v -0.25084267596875 4.42596143141788 1.39727006104652
v -0.78905337421281 4.88449545406833 1.07724137721194
v -0.52448671839528 4.80539236529896 1.38061349767629
v -0.35970283458986 4.79254730777429 1.52700454617361
v -0.09418744157884 4.78891671281588 1.52331744342071
v -0.14295833990830 4.45829166395246 1.58144033671889
v -0.30262206868863 4.68931304194980 1.77172015909983
v 0.17776067220763 4.67495414299646 1.99817347384957
v 0.19827667487806 4.44702711257329 1.97372345396141
v 0.06113844252268 4.53334949216098 2.13715843505295
v 0.39680015267885 4.75968648794881 2.41678982048189
v 0.44172384683220 4.63056160498236 2.36325184658203
v 0.34738199960452 4.63459851706464 2.47568408194759
v 0.61508526453907 5.27332264254076 2.72202219164221
v 0.64607280340254 5.18425467062586 2.68509268087601
v 0.58099753048665 5.18703925841179 2.76264637116258
v -0.47377794926471 0.11314336465414 0.07686037898988
v -0.41941607691488 1.62785852967916 0.10528242194401
v -0.10647074372955 0.11314336465414 -0.36087930279239
v -0.24762584148166 1.62785852967916 -0.43955142218542
v -0.26955636077904 1.62785852967916 -0.44614543165479
v -0.27833786736433 0.11314336465414 0.61382759086754
v -0.04634003099366 1.62785852967916 0.52950784289123
v -0.01679540541192 1.62785852967916 0.51077866992098
v -1.03652523670026 0.11314336465414 -0.02236715110551
v -0.98621287756671 1.62785852967916 0.21929683565685
v -0.97189646455370 1.62785852967916 0.25121402756584
v -0.69174620666699 3.02500138682202 -0.06881241373077
v -0.19051438532309 3.02500138682202 0.59453214058195
v -1.01560353149192 3.02500138682202 0.69693935389456
v -0.77546715551012 4.31928710110774 0.46550714458901
v -0.29723618060151 4.31928710110774 0.76467050532553
v -0.79543473833517 4.31928710110774 1.02924899810473
v -0.94726875359463 5.25357281539345 0.89688868149980
v -0.59472195649122 5.25357281539345 0.96909922310078
v -0.83353151849041 5.25357281539345 1.23830843461469
v -1.05698631670193 6.37642995825059 1.10401445571112
v -0.81380601324909 6.37642995825059 1.15382396061457
v -0.97853246157182 6.37642995825059 1.33951952865301
# 92 vertices
vn 0.00000000000000 -1.00000000000000 0.00000000000000
vn 0.00000000000000 0.00000000000000 0.00000000000000
vn 0.65473896138118 -0.04643234974086 0.75442755076086
vn 0.77887241693344 0.14749715968695 0.60959195042630
vn -0.98206713298651 -0.00000001535854 0.18853155255195
vn -0.91533004350017 -0.12179848481718 0.38384377103480
vn 0.32882915485233 0.04643233289338 -0.94324727690101
vn 0.12947389855611 0.05885494669571 -0.98983463509928
vn 0.00000000000000 1.00000000000000 0.00000000000000
vn -0.00790999322925 0.95772261401622 0.28758446865061
vn 0.92279319804813 0.30289724091557 0.23813016415784
vn -0.67365463653437 -0.21227441990904 0.70790465553493
vn -0.27147114914340 0.10905786859773 -0.95624776939854
vn 0.95514593019003 0.26652111908505 -0.12908425590706
vn -0.37948119811963 0.04712919539665 0.92399830043943
vn -0.60890505509565 -0.09318418465913 -0.78775081187415
vn 0.91658261447315 -0.07790527241918 -0.39218245674029
vn -0.11649198781263 0.59098708381708 0.79822545908837
vn -0.67921057820424 -0.52131902635761 -0.51662313460879
vn 0.80304321697298 -0.40768046679948 -0.43464724623981
vn -0.61480729443351 -0.69226162129662 -0.37787013429367
vn 0.96546885712314 -0.18279621995498 0.18562173335983
vn 0.96546886230147 -0.18279616133077 0.18562176415775
vn 0.96546884389275 -0.18279626215349 0.18562176061847
vn -0.05865696960886 0.37546033584090 0.92498048418685
vn -0.19788508779456 0.57087858441688 0.79683068081162
vn 0.96546886517519 -0.18279623638067 0.18562167530328
vn -0.15489537176706 -0.97566962928974 -0.15516506786893
vn -0.07566824101723 -0.99465751644877 0.07021924432321
vn 0.21378906478447 0.60170049621484 -0.76957829272492
vn 0.19028696014488 0.43161227384321 -0.88176057853973
vn -0.96546893136030 0.18279552237084 -0.18562203419631
vn -0.99310028696434 0.08058029163436 0.08519763278090
vn -0.24444768700451 0.84639075422575 0.47314693223069
vn -0.03722444919051 -0.88327997859285 0.46736583080011
vn 0.08877060813919 0.05559402489245 -0.99449941353771
vn -0.11941952962423 0.98120557925134 0.15157370217280
vn -0.30530267667880 -0.62614601263967 0.71744787020954
vn 0.20644246402154 -0.34801981928807 -0.91447455647022
vn 0.27057590028200 0.96184923483783 -0.04043181455819
vn -0.77121513477484 -0.24265609876707 0.58851103101418
vn 0.54818295185834 -0.57414691616907 -0.60815357430950
vn 0.58615161544699 0.80822813398574 -0.05651165492904
vn 0.68788096192007 -0.58717337587407 -0.42666990624202
vn -0.52667165311378 0.72094995479923 0.45038664776099
vn -0.52667186359401 0.72094979734574 0.45038665367166
vn -0.52667152455539 0.72094994200145 0.45038681857999
vn -0.33942471747186 -0.62352511599694 0.70427785063152
vn -0.37740295280727 -0.78609434991014 0.48951270080735
vn -0.52667163612668 0.72095005075524 0.45038651402508
vn 0.84113541226022 0.51858987249476 0.15347886625755
vn 0.77795496390374 0.49755509490469 0.38369910303768
vn -0.50299613756654 0.10414256711882 -0.85799138183728
vn -0.34940709984651 0.23046879498029 -0.90818434974249
vn 0.52667139029998 -0.72095015982368 -0.45038662689926
vn 0.59107610212649 -0.78746185203066 -0.17473658200673
vn -0.51485515708719 -0.85253043750966 0.09008895792665
vn 0.62677547058152 0.30415083289393 0.71738746875537
vn 0.00832392867456 0.42134113806714 -0.90686402375643
vn -0.66254870025932 -0.71571836632878 -0.22085388808972
vn 0.58756382390127 -0.13460208731445 0.79790414896347
vn 0.21978710769671 0.70865201367666 -0.67045204959216
vn -0.88646791470987 -0.35137595975484 -0.30118029666017
vn 0.62772298067275 -0.63894504520504 0.44464939980084
vn 0.12647094191149 0.96332856764397 -0.23664989248476
vn -0.98085288292976 -0.03094247668630 -0.19227632507640
vn 0.02348471077695 0.99911756059416 -0.03482195388101
vn 0.27929194682883 -0.35365550344094 0.89270588287660
vn 0.27929197430645 -0.35365550049727 0.89270587544612
vn 0.27929191935121 -0.35365550638460 0.89270589030708
vn -0.11909661511739 -0.94544739084407 -0.30322471438477
vn -0.34217144237467 -0.86576691271981 -0.36519358820061
vn 0.88777427685910 0.44934337734212 -0.09973646567869
vn 0.96569497655360 0.23772074615724 -0.10450865564913
vn -0.76924386410985 0.49581746191176 0.40302471635462
vn -0.63687302523445 0.65226276614648 0.41103045340663
vn -0.82249180937631 0.15884133878870 -0.54614709795136
vn -0.27929206851399 0.35365538736674 -0.89270589079027
vn -0.69675702991907 -0.63855464306831 -0.32676843341159
vn 0.97085038954529 -0.17050009197096 -0.16846138951598
vn -0.31313841762673 0.88694951730824 0.33950682637158
vn -0.90723990740476 -0.35437166435540 -0.22657553688382
vn 0.81466157527794 -0.48245588705103 -0.32181180030489
vn 0.07659294495092 0.93526518819248 0.34556120809349
vn -0.98614752416356 -0.14438955503936 -0.08163771788587
vn 0.61703654948650 -0.64801963830284 -0.44647110205661
vn 0.36638277431329 0.84778469019397 0.38343810681674
vn 0.53790870606725 -0.69081416261469 -0.48314595793407
vn 0.44536094422201 0.82249895067476 0.35376419476905
# 89 normals
vt 0.50000000000000 -0.50000000000000 0.00000000000000
vt 0.00000000000000 -0.50000000000000 0.00000000000000
vt 0.75000000000000 -0.06698729097843 0.00000000000000
vt 0.00000000000000 -1.00000000000000 0.00000000000000
vt 0.33333334326744 -0.00000000000000 0.00000000000000
vt 0.33333334326744 -1.00000000000000 0.00000000000000
vt 0.75000000000000 -0.93301272392273 0.00000000000000
vt 0.66666668653488 -0.00000000000000 0.00000000000000
vt 0.66666668653488 -1.00000000000000 0.00000000000000
vt 1.00000000000000 -1.00000000000000 0.00000000000000
# 10 texture coordinates
o Cylinder.4
usemtl Mat.1
f 61/4/1 63/5/1 66/6/1
f 63/7/3 64/1/4 67/8/4 66/9/3
f 61/4/1 69/10/1 63/5/1
f 61/4/1 66/6/1 69/10/1
f 66/9/5 67/8/6 70/11/6 69/12/5
f 69/12/7 70/11/8 64/2/8 63/13/7
f 81/1/9 83/2/10 82/13/10
f 64/1/4 72/1/11 73/13/11 67/13/4
f 67/13/6 73/13/12 74/2/12 70/2/6
f 70/2/8 74/2/13 72/1/13 64/1/8
f 72/1/11 75/1/14 76/13/14 73/13/11
f 73/13/12 76/13/15 77/2/15 74/2/12
f 74/2/13 77/2/16 75/1/16 72/1/13
f 75/1/14 78/1/17 79/13/17 76/13/14
f 76/13/15 79/13/18 80/2/18 77/2/15
f 77/2/16 80/2/19 78/1/19 75/1/16
f 78/1/17 81/1/20 82/13/20 79/13/17
f 79/13/18 82/13/10 83/2/10 80/2/18
f 80/2/19 83/2/21 81/1/21 78/1/19
f 84/4/22 86/5/23 89/6/24
f 86/7/25 87/1/26 90/8/26 89/9/25
f 84/4/22 92/10/27 86/5/23
f 84/4/22 89/6/24 92/10/27
f 89/9/28 90/8/29 93/11/29 92/12/28
f 92/12/30 93/11/31 87/2/31 86/13/30
f 104/1/32 106/2/33 105/13/33
f 87/1/26 95/1/34 96/13/34 90/13/26
f 90/13/29 96/13/35 97/2/35 93/2/29
f 93/2/31 97/2/36 95/1/36 87/1/31
f 95/1/34 98/1/37 99/13/37 96/13/34
f 96/13/35 99/13/38 100/2/38 97/2/35
f 97/2/36 100/2/39 98/1/39 95/1/36
f 98/1/37 101/1/40 102/13/40 99/13/37
f 99/13/38 102/13/41 103/2/41 100/2/38
f 100/2/39 103/2/42 101/1/42 98/1/39
f 101/1/40 104/1/43 105/13/43 102/13/40
f 102/13/41 105/13/33 106/2/33 103/2/41
f 103/2/42 106/2/44 104/1/44 101/1/42
f 107/4/45 109/5/46 112/6/47
f 109/7/48 110/1/49 113/8/49 112/9/48
f 107/4/45 115/10/50 109/5/46
f 107/4/45 112/6/47 115/10/50
f 112/9/51 113/8/52 116/11/52 115/12/51
f 115/12/53 116/11/54 110/2/54 109/13/53
f 127/1/55 129/2/56 128/13/56
f 110/1/49 118/1/57 119/13/57 113/13/49
f 113/13/52 119/13/58 120/2/58 116/2/52
f 116/2/54 120/2/59 118/1/59 110/1/54
f 118/1/57 121/1/60 122/13/60 119/13/57
f 119/13/58 122/13/61 123/2/61 120/2/58
f 120/2/59 123/2/62 121/1/62 118/1/59
f 121/1/60 124/1/63 125/13/63 122/13/60
f 122/13/61 125/13/64 126/2/64 123/2/61
f 123/2/62 126/2/65 124/1/65 121/1/62
f 124/1/63 127/1/66 128/13/66 125/13/63
f 125/13/64 128/13/56 129/2/56 126/2/64
f 126/2/65 129/2/67 127/1/67 124/1/65
f 130/4/68 132/5/69 135/6/70
f 132/7/71 133/1/72 136/8/72 135/9/71
f 130/4/68 138/10/68 132/5/69
f 130/4/68 135/6/70 138/10/68
f 135/9/73 136/8/74 139/11/74 138/12/73
f 138/12/75 139/11/76 133/2/76 132/13/75
f 150/1/77 152/2/78 151/13/77
f 133/1/72 141/1/79 142/13/79 136/13/72
f 136/13/74 142/13/80 143/2/80 139/2/74
f 139/2/76 143/2/81 141/1/81 133/1/76
f 141/1/79 144/1/82 145/13/82 142/13/79
f 142/13/80 145/13/83 146/2/83 143/2/80
f 143/2/81 146/2/84 144/1/84 141/1/81
f 144/1/82 147/1/85 148/13/85 145/13/82
f 145/13/83 148/13/86 149/2/86 146/2/83
f 146/2/84 149/2/87 147/1/87 144/1/84
f 147/1/85 150/1/77 151/13/77 148/13/85
f 148/13/86 151/13/88 152/2/88 149/2/86
f 149/2/87 152/2/89 150/1/89 147/1/87
+12
View File
@@ -0,0 +1,12 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen_1.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
illum 7
+449
View File
@@ -0,0 +1,449 @@
# WaveFront *.obj file (generated by CINEMA 4D)
mtllib ./tree4.mtl
v 0.17524259902529 6.03351831041842 1.94735930097997
v -0.09790049336883 5.01388687942237 1.56475514483919
v 0.98060044492344 5.28516781038334 1.71929875322697
v 1.31702458725661 4.83100690732714 2.68945235698487
v 0.71958829595638 5.29867053291214 3.51710080616846
v 0.44644520356227 3.84048756689350 2.96291000659710
v -0.35891264233589 4.58883806692858 3.19097055435011
v -0.69533678466905 5.48155050500737 2.39240359402278
v 1.04971439038649 5.92049227180193 2.64246040513826
v 0.01392821948699 6.04186345188188 3.05846207474215
v -0.42802658779894 3.95351360550998 2.26780890243882
v 0.60775958310056 3.83214242543004 1.85180723283493
# 12 vertices
vt 0.00000000000000 -0.00000000000000 0.00000000000000
vt 1.00000000000000 -0.00000000000000 0.00000000000000
vt 0.50000000000000 -1.00000000000000 0.00000000000000
# 3 texture coordinates
o Platonic.4
usemtl Mat
f 10/1 9/2 1/3
f 9/1 3/2 1/3
f 9/1 4/2 3/3
f 9/1 5/2 4/3
f 9/1 10/2 5/3
f 5/1 10/2 7/3
f 7/1 10/2 8/3
f 10/1 1/2 8/3
f 12/1 11/2 2/3
f 3/1 12/2 2/3
f 3/1 4/2 12/3
f 4/1 6/2 12/3
f 6/1 11/2 12/3
f 6/1 7/2 11/3
f 7/1 8/2 11/3
f 8/1 2/2 11/3
f 2/1 8/2 1/3
f 3/1 2/2 1/3
f 5/1 6/2 4/3
f 5/1 7/2 6/3
v -0.17770436190905 8.24165063376631 1.03137306521434
v -1.44541691895436 7.52357850201519 -0.89061027588971
v 0.89497607131702 6.96858442321953 -0.71373489388372
v 1.06421863485915 4.68042369363326 0.02951479998393
v 0.09613585824527 4.97788033659557 2.40556297545073
v -1.17157669880003 4.25980820484445 0.48357963434668
v -2.24425713202611 5.09432288036864 2.05710095001417
v -2.41349969556824 7.38248360995491 1.31385125614652
v 1.37333570972286 6.92303586193118 1.77162827943590
v -0.67141476516760 6.74028809222699 2.85315879184256
v -2.72261677043195 5.57842297667958 -0.25667557987488
v -0.67786629554149 5.32261921136117 -1.50979273571211
# 12 vertices
# 0 texture coordinate
o Platonic.3
usemtl Mat
f 22/1 21/2 13/3
f 21/1 15/2 13/3
f 21/1 16/2 15/3
f 21/1 17/2 16/3
f 21/1 22/2 17/3
f 17/1 22/2 19/3
f 19/1 22/2 20/3
f 22/1 13/2 20/3
f 24/1 23/2 14/3
f 15/1 24/2 14/3
f 15/1 16/2 24/3
f 16/1 18/2 24/3
f 18/1 23/2 24/3
f 18/1 19/2 23/3
f 19/1 20/2 23/3
f 20/1 14/2 23/3
f 14/1 20/2 13/3
f 15/1 14/2 13/3
f 17/1 18/2 16/3
f 17/1 19/2 18/3
v -2.26370230064518 4.18587649605736 -0.47692918539461
v -2.12244606418572 3.66197148860015 -0.35840112947998
v -1.74276452316314 4.01280212726217 -0.56147370665140
v -1.38064610586090 4.21611191573714 0.04844835136575
v -1.75984019964365 4.47669165187661 0.20802132416738
v -1.56786944994383 3.97636278215448 0.51314874257830
v -2.13952174066623 4.12586101321459 0.41109390133881
v -2.45092564472811 3.94612736247469 -0.01222879418206
v -1.83658800645264 4.51378326012467 -0.34080712622846
v -2.27425564909104 4.47257598929411 -0.00135510217445
v -2.04569825737673 3.62487988035209 0.19042732091587
v -1.60803061473833 3.66608715118265 -0.14902470313814
# 12 vertices
# 0 texture coordinate
o Platonic.2
usemtl Mat
f 34/1 33/2 25/3
f 33/1 27/2 25/3
f 33/1 28/2 27/3
f 33/1 29/2 28/3
f 33/1 34/2 29/3
f 29/1 34/2 31/3
f 31/1 34/2 32/3
f 34/1 25/2 32/3
f 36/1 35/2 26/3
f 27/1 36/2 26/3
f 27/1 28/2 36/3
f 28/1 30/2 36/3
f 30/1 35/2 36/3
f 30/1 31/2 35/3
f 31/1 32/2 35/3
f 32/1 26/2 35/3
f 26/1 32/2 25/3
f 27/1 26/2 25/3
f 29/1 30/2 28/3
f 29/1 31/2 30/3
v -0.69502396167023 5.11292499800254 -1.34296286806114
v -0.57938781300177 4.46399172075743 -1.24593261836267
v -0.32960168393318 4.77033019744655 -1.78227636445861
v 0.31251765105434 4.90251401700823 -1.66348585964962
v 0.34394694717306 5.76535444583872 -0.97916915030886
v 0.45958309584152 5.11642116859360 -0.88213890061039
v 0.09416081810447 5.45901596914960 -0.44282540421292
v -0.54795851688305 5.32683214958792 -0.56161590902191
v -0.14379607013181 5.38394668191019 -1.60102496328916
v -0.27874801457061 5.89539558369941 -0.78107504733139
v -0.09164479569690 4.40684794966337 -0.79566344881295
v 0.04330714874190 4.33395058289674 -1.44402672134015
# 12 vertices
# 0 texture coordinate
o Platonic.1
usemtl Mat
f 46/1 45/2 37/3
f 45/1 39/2 37/3
f 45/1 40/2 39/3
f 45/1 41/2 40/3
f 45/1 46/2 41/3
f 41/1 46/2 43/3
f 43/1 46/2 44/3
f 46/1 37/2 44/3
f 48/1 47/2 38/3
f 39/1 48/2 38/3
f 39/1 40/2 48/3
f 40/1 42/2 48/3
f 42/1 47/2 48/3
f 42/1 43/2 47/3
f 43/1 44/2 47/3
f 44/1 38/2 47/3
f 38/1 44/2 37/3
f 39/1 38/2 37/3
f 41/1 42/2 40/3
f 41/1 43/2 42/3
v -0.76392099637502 3.18288872419396 0.24157359130074
v -1.19173598870271 3.32521713635960 0.23683917164940
v -0.78306306194722 3.13541997840002 0.40364483976785
v -1.03737671519907 2.84406352361574 0.23563034712740
v -1.18521209605474 3.34575691011816 0.40542845541314
v -0.80370495803096 3.07522511109852 0.11622378918084
v -0.80370495803096 2.63667357607592 -0.05536285424973
v -1.09434522520782 2.68864892020165 -0.00780601038096
v -1.24675514322701 3.17842259835914 0.17118061295390
v -0.70499496914688 3.33802108308335 0.20485214495355
v -0.70499496914688 2.89946954806075 0.03326550152297
v -0.99037501060173 2.96320870999084 -0.02942744765046
v -1.14324072682640 3.45147190060151 0.13390844658115
v -1.29544694135843 3.02706114984431 0.08112116856766
v -1.37003646402061 2.82734434233366 -0.04418807450059
v -1.29317066419271 3.02826270906078 -0.16615637046342
v -1.65796880621715 3.12377074607238 -0.07782554218349
v -1.71630461721239 2.96894132378683 -0.10566285282352
v -1.67768675947512 3.06855711763851 -0.23502856463504
v -1.92037975626145 3.76672238665826 -0.01488406997577
v -1.95768167136360 3.22990898879781 -0.16622687745435
v -1.94464441645144 3.70097056100065 -0.09578254425842
v -2.03494954420566 4.21372093716817 0.03101696970799
v -2.06067971991125 4.14594170950512 0.04498079581648
v -2.05168686100066 4.16836653585926 -0.02478531153966
v -0.53673929735901 3.81767815612312 0.70416003284691
v -0.54211289804585 4.10551050696789 0.15673081213801
v -0.76988215450187 3.81767815612312 0.70416003284691
v -0.75745186004206 4.07258997439660 0.39213945427630
v -0.75376135244134 4.19018867824923 0.20561977712178
v -0.42016786878758 3.64282101326598 0.60320621434861
v -0.50736481649043 3.35946161111212 0.06202580513550
v -0.52096684212944 3.90443508053061 0.04063986055703
v -0.42016786878758 3.99253529898026 0.80511385134521
v -0.35783151000436 4.12286684292938 0.42116681785771
v -0.35161049956677 4.22190776212384 0.22393279873523
v -0.52510498895037 3.88072532334313 -0.12356325639017
v -0.44923094036186 3.59439563189994 -0.28887578082188
v -0.20083827321292 4.23301754908552 -0.00177844839263
v -0.33614904357838 4.03880879986266 -0.62529700919796
v -0.36806627776471 3.84141820130705 -0.73926052440954
v -0.15471706211593 4.35472710996771 -0.52451269118513
v -0.15626618152100 4.33062685194670 -0.96127601206859
v -0.22615504290596 4.21880142303706 -1.02583845355182
v -0.07938518330384 4.22229749145316 -1.02381999751068
v -0.06275558501640 5.39570818675469 -0.84759850513837
v -0.11096363756207 5.31857306041282 -0.89213249109582
v -0.00972448494737 5.32098458417450 -0.89074019720286
v -0.71412270428364 4.68258781707173 0.98794248212836
v -0.23725025323194 4.65814333457985 1.38107124241787
v -0.56426136442529 4.68258781707173 0.80934469196119
v -0.26761570881245 4.74733763813614 1.07448654917265
v -0.10120524913721 4.75592126454738 1.21893912003349
v -0.78905337421281 4.48068018007513 1.07724137721194
v -0.78905337421281 4.04212864505253 0.90565473378137
v -0.42836856175058 3.99173209169308 1.09447769575086
v -0.25084267596875 4.42596143141788 1.39727006104652
v -0.78905337421281 4.88449545406833 1.07724137721194
v -0.52448671839528 4.80539236529896 1.38061349767629
v -0.35970283458986 4.79254730777429 1.52700454617361
v -0.09418744157884 4.78891671281588 1.52331744342071
v -0.14295833990830 4.01974012892986 1.40985369328832
v -0.30262206868863 4.25076150692721 1.60013351566926
v 0.17776067220763 4.67495414299646 1.99817347384957
v 0.19827667487806 4.00847557755069 1.80213681053083
v 0.06113844252268 4.53334949216098 2.13715843505295
v 0.39680015267885 4.75968648794881 2.41678982048189
v 0.44172384683220 4.63056160498236 2.36325184658203
v 0.34738199960452 4.63459851706464 2.47568408194759
v 0.61508526453907 5.27332264254076 2.72202219164221
v 0.64607280340254 5.18425467062586 2.68509268087601
v 0.58099753048665 5.18703925841179 2.76264637116258
v -0.47377794926471 0.11314336465414 0.07686037898988
v -0.41941607691488 1.62785852967916 0.10528242194401
v -0.10647074372955 0.11314336465414 -0.36087930279239
v -0.24762584148166 1.62785852967916 -0.43955142218542
v -0.26955636077904 1.62785852967916 -0.44614543165479
v -0.27833786736433 0.11314336465414 0.61382759086754
v -0.04634003099366 1.62785852967916 0.52950784289123
v -0.01679540541192 1.62785852967916 0.51077866992098
v -1.03652523670026 0.11314336465414 -0.02236715110551
v -0.98621287756671 1.62785852967916 0.21929683565685
v -0.97189646455370 1.62785852967916 0.25121402756584
v -0.69174620666699 2.58644985179942 -0.24039905716134
v -0.19051438532309 3.02500138682202 0.59453214058195
v -1.01560353149192 2.58644985179942 0.52535271046399
v -0.77546715551012 4.31928710110774 0.46550714458901
v -0.29723618060151 4.31928710110774 0.76467050532553
v -0.79543473833517 3.88073556608514 0.85766235467416
v -0.94726875359463 5.25357281539345 0.89688868149980
v -0.59472195649122 5.25357281539345 0.96909922310078
v -0.83353151849041 5.25357281539345 1.23830843461469
v -1.05698631670193 6.37642995825059 1.10401445571112
v -0.81380601324909 6.37642995825059 1.15382396061457
v -0.97853246157182 6.37642995825059 1.33951952865301
# 95 vertices
vn 0.00000000000000 -1.00000000000000 0.00000000000000
vn 0.00000000000000 0.00000000000000 0.00000000000000
vn 0.71371421421621 -0.58134546489149 0.39070381477000
vn 0.87839837659910 -0.14132063376809 0.45655752152324
vn -0.98206713022755 -0.00000000767927 0.18853156692346
vn -0.91533005316631 -0.12179847817211 0.38384375009308
vn -0.31961071122923 0.53969483017657 -0.77883148597641
vn -0.20610153293287 0.31754814990219 -0.92557297422538
vn 0.00000000000000 1.00000000000000 0.00000000000000
vn -0.36329736293245 0.90448007447300 0.22345205518781
vn 0.92279320965267 0.30289721492232 0.23813015225128
vn -0.67365476488670 -0.21227437808661 0.70790454593355
vn -0.27147115002573 0.10905783914987 -0.95624777250651
vn 0.96671063330607 0.25585839317147 0.00265218715029
vn -0.71998892591248 0.05488760273081 0.69181160559061
vn -0.58207377085028 -0.25854824003290 -0.77093640001236
vn 0.98933185664323 0.05670207111702 -0.13419147723275
vn -0.76077126391121 0.46930142579806 0.44831156102742
vn -0.60802319228710 -0.65465571798651 -0.44914773577140
vn 0.96572099187599 -0.13711740649007 -0.22041275527404
vn -0.61480729443351 -0.69226162129662 -0.37787013429367
vn 0.96546885712314 -0.18279621995498 0.18562173335983
vn 0.96546886230147 -0.18279616133077 0.18562176415775
vn 0.96546884389275 -0.18279626215349 0.18562176061847
vn 0.41353097293455 0.46871289310992 0.78057693935726
vn -0.00241630827065 0.99992102379695 -0.01233319193065
vn 0.11524497103139 0.70706100072906 0.69769860104489
vn 0.96546886517519 -0.18279623638067 0.18562167530328
vn -0.05122354491577 -0.97032735173132 -0.23630695911957
vn 0.01324813967889 -0.98899190269852 -0.14737538190555
vn 0.21378906478447 0.60170049621484 -0.76957829272492
vn -0.11682070934173 0.70049352307965 -0.70403248930170
vn -0.96546893136030 0.18279552237084 -0.18562203419631
vn -0.99357016251034 0.11320834893286 0.00148388040772
vn -0.24587896350236 0.96928709288044 0.00510557365989
vn -0.17975254565255 0.89163666566244 0.41553950326989
vn 0.02852632773553 -0.99943135041604 -0.01797844352237
vn -0.26794439641453 0.86783709692775 -0.41840718639390
vn -0.18637960366833 0.95386435557720 -0.23538359011565
vn -0.11941955030860 0.98120556555140 0.15157377456228
vn -0.12232699735499 -0.94564006743261 0.30133199064181
vn -0.22630968516019 0.75526517049268 -0.61510848526366
vn 0.53412303695067 0.66376022683255 -0.52357897462922
vn 0.40998807245937 0.91208671178667 -0.00275873580272
vn -0.74574824626640 -0.47820622451152 0.46387321546844
vn -0.32478983245239 0.40260968895351 -0.85581364974877
vn 0.98261520436641 0.04836403440206 -0.17924363398544
vn 0.79753479896208 0.60309813557461 0.01452182188804
vn 0.79476391291000 -0.52472566912496 -0.30498081070347
vn -0.52667165311378 0.72094995479923 0.45038664776099
vn -0.52667186359401 0.72094979734574 0.45038665367166
vn -0.52667152455539 0.72094994200145 0.45038681857999
vn -0.76563188473941 -0.59070280906284 0.25471161817957
vn -0.68014172204664 -0.72540995797675 0.10577159731984
vn -0.52667163612668 0.72095005075524 0.45038651402508
vn 0.84137677497326 0.50047856183222 0.20397630176554
vn 0.76180178707102 0.51354432631887 0.39488006042480
vn -0.50299613756654 0.10414256711882 -0.85799138183728
vn -0.11389798702541 0.29440407100763 -0.94886958615275
vn 0.52667139029998 -0.72095015982368 -0.45038662689926
vn 0.59107610212649 -0.78746185203066 -0.17473658200673
vn -0.61352818658661 -0.77969735167365 -0.12512075789750
vn 0.73088689905623 0.37574804984534 0.56975235306701
vn 0.69166162140158 0.72186395165653 -0.02272964537683
vn 0.29179530185972 0.71351245214202 -0.63698938959050
vn -0.67472275112309 -0.67399235584887 -0.30080477618245
vn 0.85361127358178 -0.01577405786627 0.52067165537652
vn 0.76738161088731 0.63520162469730 0.08743202647718
vn 0.23587391552100 0.89340141358086 -0.38235769926670
vn -0.88535610389956 -0.34315197047396 -0.31367386637658
vn 0.77295674815415 -0.55975505765251 0.29868401516550
vn 0.12647094191149 0.96332856764397 -0.23664989248476
vn -0.98085288292976 -0.03094247668630 -0.19227632507640
vn 0.02348471077695 0.99911756059416 -0.03482195388101
vn 0.27929194682883 -0.35365550344094 0.89270588287660
vn 0.27929197430645 -0.35365550049727 0.89270587544612
vn 0.27929191935121 -0.35365550638460 0.89270589030708
vn -0.11909661511739 -0.94544739084407 -0.30322471438477
vn -0.36728566952465 -0.85289739758995 -0.37103539743010
vn 0.88777427685910 0.44934337734212 -0.09973646567869
vn 0.95634934033323 0.27892591600548 -0.08715659828551
vn -0.76924386410985 0.49581746191176 0.40302471635462
vn -0.62539466201418 0.63895006996444 0.44791106797735
vn -0.82249180937631 0.15884133878870 -0.54614709795136
vn -0.27929206851399 0.35365538736674 -0.89270589079027
vn -0.70818534868007 -0.62429144955664 -0.32974793088866
vn 0.98945924180031 -0.06377646489484 -0.13001142773419
vn -0.26765416583632 0.88704742092963 0.37617565116917
vn -0.90284271183540 -0.36386302571120 -0.22908237864574
vn 0.86511407167261 -0.41221024718355 -0.28576276018912
vn 0.07672312101243 0.93841439370342 0.33688572007782
vn -0.98614752416356 -0.14438955503936 -0.08163771788587
vn 0.63726310649875 -0.63906590854864 -0.43068607781825
vn 0.33296447674753 0.86107856960667 0.38428941461922
vn 0.53790870606725 -0.69081416261469 -0.48314595793407
vn 0.44536094422201 0.82249895067476 0.35376419476905
# 96 normals
vt 0.50000000000000 -0.50000000000000 0.00000000000000
vt 0.00000000000000 -0.50000000000000 0.00000000000000
vt 0.75000000000000 -0.06698729097843 0.00000000000000
vt 0.00000000000000 -1.00000000000000 0.00000000000000
vt 0.33333334326744 -0.00000000000000 0.00000000000000
vt 0.33333334326744 -1.00000000000000 0.00000000000000
vt 0.75000000000000 -0.93301272392273 0.00000000000000
vt 0.66666668653488 -0.00000000000000 0.00000000000000
vt 0.66666668653488 -1.00000000000000 0.00000000000000
vt 1.00000000000000 -1.00000000000000 0.00000000000000
# 10 texture coordinates
o Cylinder.4
usemtl Mat.1
f 49/4/1 51/5/1 54/6/1
f 51/7/3 52/1/4 56/8/4 55/9/3
f 49/4/1 58/10/1 51/5/1
f 49/4/1 54/6/1 58/10/1
f 55/9/5 56/8/6 60/11/6 59/12/5
f 59/12/7 60/11/8 52/2/8 51/13/7
f 71/1/9 73/2/10 72/13/10
f 52/1/4 62/1/11 63/13/11 56/13/4
f 56/13/6 63/13/12 64/2/12 60/2/6
f 60/2/8 64/2/13 62/1/13 52/1/8
f 62/1/11 65/1/14 66/13/14 63/13/11
f 63/13/12 66/13/15 67/2/15 64/2/12
f 64/2/13 67/2/16 65/1/16 62/1/13
f 65/1/14 68/1/17 69/13/17 66/13/14
f 66/13/15 69/13/18 70/2/18 67/2/15
f 67/2/16 70/2/19 68/1/19 65/1/16
f 68/1/17 71/1/20 72/13/20 69/13/17
f 69/13/18 72/13/10 73/2/10 70/2/18
f 70/2/19 73/2/21 71/1/21 68/1/19
f 74/4/22 76/5/23 79/6/24
f 76/7/25 77/1/26 80/8/27 79/9/25
f 74/4/22 82/10/28 76/5/23
f 74/4/22 79/6/24 82/10/28
f 79/9/29 80/8/30 83/11/30 82/12/29
f 82/12/31 83/11/32 77/2/26 76/13/31
f 94/1/33 96/2/34 95/13/34
f 77/1/26 85/1/35 86/13/36 80/13/27
f 80/13/30 86/13/37 87/2/37 83/2/30
f 83/2/32 87/2/38 85/1/35 77/1/26
f 85/1/35 88/1/39 89/13/40 86/13/36
f 86/13/37 89/13/41 90/2/41 87/2/37
f 87/2/38 90/2/42 88/1/39 85/1/35
f 88/1/39 91/1/43 92/13/44 89/13/40
f 89/13/41 92/13/45 93/2/45 90/2/41
f 90/2/42 93/2/46 91/1/43 88/1/39
f 91/1/43 94/1/47 95/13/48 92/13/44
f 92/13/45 95/13/34 96/2/34 93/2/45
f 93/2/49 96/2/49 94/1/47 91/1/43
f 97/4/50 99/5/51 102/6/52
f 99/7/53 100/1/54 104/8/54 103/9/53
f 97/4/50 106/10/55 99/5/51
f 97/4/50 102/6/52 106/10/55
f 103/9/56 104/8/57 107/11/57 106/12/56
f 106/12/58 107/11/59 100/2/59 99/13/58
f 118/1/60 120/2/61 119/13/61
f 100/1/54 109/1/62 110/13/62 104/13/54
f 104/13/57 110/13/63 111/2/64 107/2/57
f 107/2/59 111/2/64 109/1/65 100/1/59
f 109/1/62 112/1/66 113/13/66 110/13/62
f 110/13/63 113/13/67 114/2/68 111/2/64
f 111/2/64 114/2/68 112/1/69 109/1/65
f 112/1/66 115/1/70 116/13/70 113/13/66
f 113/13/67 116/13/71 117/2/71 114/2/68
f 114/2/68 117/2/72 115/1/72 112/1/69
f 115/1/70 118/1/73 119/13/73 116/13/70
f 116/13/71 119/13/61 120/2/61 117/2/71
f 117/2/72 120/2/74 118/1/74 115/1/72
f 121/4/75 123/5/76 126/6/77
f 123/7/78 124/1/79 127/8/79 126/9/78
f 121/4/75 129/10/75 123/5/76
f 121/4/75 126/6/77 129/10/75
f 126/9/80 127/8/81 130/11/81 129/12/80
f 129/12/82 130/11/83 124/2/83 123/13/82
f 141/1/84 143/2/85 142/13/84
f 124/1/79 132/1/86 133/13/86 127/13/79
f 127/13/81 133/13/87 134/2/87 130/2/81
f 130/2/83 134/2/88 132/1/88 124/1/83
f 132/1/86 135/1/89 136/13/89 133/13/86
f 133/13/87 136/13/90 137/2/90 134/2/87
f 134/2/88 137/2/91 135/1/91 132/1/88
f 135/1/89 138/1/92 139/13/92 136/13/89
f 136/13/90 139/13/93 140/2/93 137/2/90
f 137/2/91 140/2/94 138/1/94 135/1/91
f 138/1/92 141/1/84 142/13/84 139/13/92
f 139/13/93 142/13/95 143/2/95 140/2/93
f 140/2/94 143/2/96 141/1/96 138/1/94
+12
View File
@@ -0,0 +1,12 @@
# WaveFront *.mtl file (generated by CINEMA 4D)
newmtl Mat
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Groen_1.png
illum 7
newmtl Mat.1
Kd 0.80000001192093 0.80000001192093 0.80000001192093
map_Kd Bruin.png
illum 7
+442
View File
@@ -0,0 +1,442 @@
# WaveFront *.obj file (generated by CINEMA 4D)
mtllib ./tree5.mtl
v -0.68522162256080 6.03351831041842 2.19125097755093
v -0.64852815968378 5.01388687942237 1.72258619436266
v 0.07831277436571 5.28516781038334 2.53422050695725
v -0.28757409685723 4.83100690732714 3.49365055437902
v -1.27723901623686 5.29867053291214 3.74364140410728
v -1.24054555335984 4.27903910191609 3.27497662091901
v -2.00407995028635 5.02738960195117 2.93200709151269
v -1.63819307906342 5.48155050500737 1.97257704409092
v -0.46213974335663 5.92049227180193 3.28582894830462
v -1.52299870266397 6.04186345188188 2.93871419869404
v -1.46362743256401 4.39206514053258 2.18039865016531
v -0.40276847325667 4.27069396045263 2.52751339977590
# 12 vertices
vt 0.00000000000000 -0.00000000000000 0.00000000000000
vt 1.00000000000000 -0.00000000000000 0.00000000000000
vt 0.50000000000000 -1.00000000000000 0.00000000000000
# 3 texture coordinates
o Platonic.4
usemtl Mat
f 10/1 9/2 1/3
f 9/1 3/2 1/3
f 9/1 4/2 3/3
f 9/1 5/2 4/3
f 9/1 10/2 5/3
f 5/1 10/2 7/3
f 7/1 10/2 8/3
f 10/1 1/2 8/3
f 12/1 11/2 2/3
f 3/1 12/2 2/3
f 3/1 4/2 12/3
f 4/1 6/2 12/3
f 6/1 11/2 12/3
f 6/1 7/2 11/3
f 7/1 8/2 11/3
f 8/1 2/2 11/3
f 2/1 8/2 1/3
f 3/1 2/2 1/3
f 5/1 6/2 4/3
f 5/1 7/2 6/3
v -0.47710384609159 8.68020216878891 1.39413787301751
v -0.21280092820268 7.96213003703779 -0.89305670951526
v 1.46635081269730 7.40713595824212 0.74681330993865
v 1.11824644391651 5.11897522865585 1.42496263065231
v -1.04034854641123 4.97788033659557 2.49140652337988
v -0.77604562852232 4.25980820484445 0.20421194084711
v -2.71950028731121 5.53287441539124 0.85153650392597
v -2.37139591853043 7.82103514497750 0.17338718321230
v 0.34552867051430 6.92303586193118 2.82675261182067
v -2.02632924959824 7.17883962724959 2.47235577546659
v -1.59867814512821 6.01697451170218 -1.22840279795606
v 0.77317977498433 5.76117074638377 -0.87400596160197
# 12 vertices
# 0 texture coordinate
o Platonic.3
usemtl Mat
f 22/1 21/2 13/3
f 21/1 15/2 13/3
f 21/1 16/2 15/3
f 21/1 17/2 16/3
f 21/1 22/2 17/3
f 17/1 22/2 19/3
f 19/1 22/2 20/3
f 22/1 13/2 20/3
f 24/1 23/2 14/3
f 15/1 24/2 14/3
f 15/1 16/2 24/3
f 16/1 18/2 24/3
f 18/1 23/2 24/3
f 18/1 19/2 23/3
f 19/1 20/2 23/3
f 20/1 14/2 23/3
f 14/1 20/2 13/3
f 15/1 14/2 13/3
f 17/1 18/2 16/3
f 17/1 19/2 18/3
v -1.07635339581419 4.20945263379243 -1.05804324269799
v -1.04433320656067 3.68554762633523 -0.87644772552379
v -0.62294773543256 4.03637826499725 -0.78795575461981
v -0.65650508874033 4.21611191573714 -0.26350518493091
v -1.13065033403864 4.50026778961168 -0.20946439552210
v -1.09863014478512 3.97636278215448 -0.02786887834790
v -1.55203580516674 4.14943715094967 -0.29795636642608
v -1.51847845185898 3.96970350020977 -0.82240693611498
v -0.83666243720832 4.53735939785975 -0.67922391946087
v -1.39013085792939 4.49615212702918 -0.70051592057748
v -1.33832110339099 3.64845601808716 -0.40668820158502
v -0.78485268266992 3.68966328891773 -0.38539620046841
# 12 vertices
# 0 texture coordinate
o Platonic.2
usemtl Mat
f 34/1 33/2 25/3
f 33/1 27/2 25/3
f 33/1 28/2 27/3
f 33/1 29/2 28/3
f 33/1 34/2 29/3
f 29/1 34/2 31/3
f 31/1 34/2 32/3
f 34/1 25/2 32/3
f 36/1 35/2 26/3
f 27/1 36/2 26/3
f 27/1 28/2 36/3
f 28/1 30/2 36/3
f 30/1 35/2 36/3
f 30/1 31/2 35/3
f 31/1 32/2 35/3
f 32/1 26/2 35/3
f 26/1 32/2 25/3
f 27/1 26/2 25/3
f 29/1 30/2 28/3
f 29/1 31/2 30/3
v 0.65280006833782 5.55147653302514 -0.75723560374037
v 0.67901265517801 4.90254325578003 -0.60857663654845
v 1.21511504584254 5.20888173246915 -0.85888035401001
v 1.63064992958935 5.34106555203082 -0.35513519543565
v 1.32514963375141 5.76535444583872 0.05784118450116
v 1.35136222059160 5.11642116859360 0.20650015169308
v 0.78904724308688 5.45901596914960 0.30814490196272
v 0.37351235934007 5.32683214958792 -0.19560025661165
v 1.24094424888534 5.82249821693278 -0.60060017897490
v 0.72080518360359 5.89539558369941 -0.19067053472137
v 0.76321804004408 4.84539948468596 0.04986472692761
v 1.28335710532583 4.77250211791933 -0.36006491732592
# 12 vertices
# 0 texture coordinate
o Platonic.1
usemtl Mat
f 46/1 45/2 37/3
f 45/1 39/2 37/3
f 45/1 40/2 39/3
f 45/1 41/2 40/3
f 45/1 46/2 41/3
f 41/1 46/2 43/3
f 43/1 46/2 44/3
f 46/1 37/2 44/3
f 48/1 47/2 38/3
f 39/1 48/2 38/3
f 39/1 40/2 48/3
f 40/1 42/2 48/3
f 42/1 47/2 48/3
f 42/1 43/2 47/3
f 43/1 44/2 47/3
f 44/1 38/2 47/3
f 38/1 44/2 37/3
f 39/1 38/2 37/3
f 41/1 42/2 40/3
f 41/1 43/2 42/3
v -0.30820475703468 3.18288872419396 0.28086059090741
v -1.19173598870271 3.32521713635960 0.23683917164940
v -0.42704582039717 3.13541997840002 0.39271008761138
v -0.62415751554785 3.28261505863834 0.23197684858973
v -1.18521209605474 3.34575691011816 0.40542845541314
v -0.25810774010713 3.07522511109852 0.15926443393072
v -0.51132005171923 3.12720045522425 0.00887512729139
v -1.24675514322701 3.17842259835914 0.17118061295390
v -0.23946071059974 3.33802108308335 0.29060725118015
v -0.41777625458990 3.40176024501343 0.05914291114409
v -1.14324072682640 3.45147190060151 0.13390844658115
v -0.72253419267064 3.46561268486690 -0.05226839286108
v -0.69912585319743 3.26589587735626 -0.19620606316464
v -0.56184352495389 3.46681424408338 -0.24023081478564
v -0.89807307648353 3.56232228109497 -0.40705320035569
v -0.92486742196486 3.40749285880943 -0.46587535399161
v -0.81212974996934 3.50710865266110 -0.54015215818880
v -1.02925575666421 3.76672238665826 -0.65895473737721
v -1.07084316836837 3.66846052382041 -0.66742426818401
v -0.99584302785549 3.70097056100065 -0.73652358698161
v -1.14652592564864 4.21372093716817 -0.69743654112903
v -1.17521215817474 4.14594170950512 -0.70327866787255
v -1.12347843919394 4.16836653585926 -0.75094210844738
v -0.43151831196000 3.81767815612312 0.78125194519106
v -0.54211289804585 4.10551050696789 0.15673081213801
v -0.61011610212717 3.81767815612312 0.63139060533272
v -0.40003098225748 4.07258997439660 0.40035901424345
v -0.75376135244134 4.19018867824923 0.20561977712178
v -0.27732755319517 3.64282101326598 0.77884750344797
v -0.10655399717746 3.79801314613471 0.43967313537297
v -0.52096684212944 3.90443508053061 0.04063986055703
v -0.40711128055767 3.99253529898026 0.93351772679250
v -0.11256246340584 4.12286684292938 0.67946627439622
v -0.35161049956677 4.22190776212384 0.22393279873523
v -0.00084940846832 4.31927685836573 0.28610050303661
v 0.16353432726056 4.03294716692253 0.20823466064718
v 0.27956530996680 4.23301754908552 0.45638471085579
v 0.46640748314456 4.47736033488526 0.02320869023469
v 0.51521179879073 4.27996973632964 -0.08460842998188
v 0.65090330186346 4.35472710996771 0.08559319197348
v 0.82016889019604 4.76917838696930 -0.11853968299357
v 0.80813085373271 4.65735295805966 -0.21292107667934
v 0.91926565056432 4.66084902647576 -0.11703300241767
v 0.92902543845120 5.39570818675469 -0.10279320240793
v 0.92072182206841 5.31857306041282 -0.16789575374405
v 0.99738056309153 5.32098458417451 -0.10175392182826
v -0.74981372738073 4.68258781707173 0.88462205738267
v -0.23725025323194 4.65814333457985 1.38107124241787
v -0.52021283410703 4.68258781707173 0.84413722510375
v -0.46339897867423 4.74733763813614 1.23792782335411
v -0.10120524913721 4.75592126454738 1.21893912003349
v -0.86461417401758 4.48068018007513 0.90486447352213
v -0.70968663809178 4.43028362671568 1.28135498272496
v -0.25084267596875 4.42596143141788 1.39727006104652
v -0.86461417401758 4.88449545406833 0.90486447352213
v -0.85694819765281 4.80539236529897 1.30732116889678
v -0.35970283458986 4.79254730777429 1.52700454617361
v -0.61904815594736 4.78891671281588 1.69322977714013
v -0.69376950724976 4.45829166395246 1.70640516740974
v -0.93838853164941 4.68931304194980 1.74953810140598
v -0.71595538730915 4.67495414299646 2.23179547855126
v -0.68452304762775 4.44702711257329 2.22625310899864
v -0.89463100929774 4.53334949216098 2.26330081150272
v -0.81724281129801 4.75968648794881 2.69327006876680
v -0.74841571875690 4.63056160498236 2.68113399534809
v -0.89295581440158 4.63459851706464 2.70662031400443
v -0.84622630059897 5.27332264254076 3.06740259583698
v -0.79875063669438 5.18425467062586 3.05903135536355
v -0.89845173909772 5.18703925841179 3.07661134972364
v 0.01993332393887 0.11314336465414 0.34118330562760
v -0.41941607691488 1.62785852967916 0.10528242194401
v 0.58268061137442 0.11314336465414 0.24195577553221
v 0.52511899669711 1.62785852967916 0.09095668776365
v -0.26955636077904 1.62785852967916 -0.44614543165479
v -0.17550675796151 0.11314336465414 0.87815051750527
v 0.05641358465694 1.62785852967916 0.96268317781597
v -0.01679540541192 1.62785852967916 0.51077866992098
v -0.34737388159629 0.11314336465413 -0.09655637615467
v -0.46417099486013 1.62785852967916 0.12090913907176
v -0.97189646455370 1.62785852967916 0.25121402756584
v -0.05340338219120 3.02500138682202 0.08948417708718
v -0.09582719120156 3.02500138682202 0.91982119113215
v -0.79370823456185 3.02500138682202 0.46791258778140
v -0.46099134152627 4.31928710110774 0.44498191700026
v -0.28694366222377 4.31928710110774 0.98155529231685
v -0.83865367589355 4.31928710110774 0.86399831640424
v -0.86988570803166 5.25357281539345 0.66500740764184
v -0.64623523460106 5.25357281539345 0.94693660478262
v -1.00221831810884 5.25357281539345 0.99965899777154
v -1.08707211887232 6.37642995825059 0.75314986587276
v -0.93280213133285 6.37642995825059 0.94761944629785
v -1.17835272201402 6.37642995825059 0.98398638433600
# 92 vertices
vn 0.59692882988881 -0.79530578182024 -0.10566307515341
vn 0.59692893773732 -0.79530570707930 -0.10566302843894
vn 0.59692874197819 -0.79530586331664 -0.10566295838423
vn 0.00000000000000 0.00000000000000 0.00000000000000
vn 0.41373061666331 0.13248211950025 0.90070831285612
vn 0.41980200024686 0.39177670159124 0.81870464557069
vn 0.59692879125351 -0.79530578994994 -0.10566323222729
vn -0.80208998142381 -0.58860754397163 -0.10095950118360
vn -0.71005011908356 -0.69821132511165 0.09126759488045
vn 0.38958527600500 0.45702510371092 -0.79959450179333
vn 0.23368975974764 0.36892221095640 -0.89960296712057
vn -0.59692843065080 0.79530610381809 0.10566290697528
vn -0.62649596183231 0.68445611487076 0.37285739448727
vn 0.50269029990791 0.68874988838501 0.52242325142372
vn -0.52126237406035 -0.71918679657680 0.45940819433112
vn -0.11641255794478 0.17953317252110 -0.97683978026965
vn 0.61183549619128 0.77068426297564 0.17805362226606
vn -0.48190801642991 -0.40563222182821 0.77667700127872
vn -0.28881092946775 -0.20983501605527 -0.93410787013977
vn 0.83165056164121 0.54218862790580 -0.11995347052708
vn -0.57903673026002 0.20360160493292 0.78946998136632
vn -0.13420403255627 -0.65775157255880 -0.74118293723079
vn 0.94663099686441 0.22814929063968 -0.22767884608832
vn -0.00510073709113 -0.79339376703978 -0.60868736877280
vn 0.83495865733154 0.33928205945677 0.43328019188268
vn 0.83495860927479 0.33928209395153 0.43328025747981
vn 0.83495866109608 0.33928197157951 0.43328025344084
vn -0.42644388418508 0.03192423354043 0.90395047262226
vn -0.63063380015518 0.14313852086367 0.76276626429516
vn 0.83495868850308 0.33928207770541 0.43328011752342
vn 0.48714385942192 -0.82194152034493 -0.29513216930823
vn 0.52252698983424 -0.85052092574089 -0.05983059227200
vn -0.06144456660727 0.79127354657651 -0.60836727371110
vn 0.04061155593674 0.67148402659138 -0.73990533418609
vn -0.83495839624863 -0.33928184163096 -0.43328086557500
vn -0.84138134703211 -0.50441367383058 -0.19402132490827
vn -0.77691296348082 0.41862978251474 0.47027157299492
vn 0.41907817571309 -0.84140224160125 0.34119752412553
vn 0.20450132665309 0.34509484785688 -0.91601787830793
vn -0.70498503615567 0.67618579977889 0.21393658633805
vn 0.01307294953375 -0.84790365019592 0.52998914892187
vn 0.52419564120910 0.06862461956162 -0.84882836388012
vn -0.35511152603101 0.92421861993230 0.14041277239041
vn -0.55946600482686 -0.76682430568146 0.31460812713472
vn 0.87543587090196 -0.00063280038176 -0.48333387580617
vn -0.01318886196066 0.97990850505520 0.19901099376835
vn 0.96210635063835 0.01995480813007 -0.27194333176941
vn -0.91953395809460 0.16920892712512 0.35471909857243
vn -0.91953394141823 0.16920896875988 0.35471912194168
vn -0.01302741986495 -0.86127350250153 0.50797464525348
vn 0.09052274473113 -0.95706201624783 0.27538687285706
vn -0.91953396041312 0.16920891265060 0.35471909946683
vn 0.32419906808408 0.83677109860041 0.44125853283588
vn 0.24829734760772 0.72691291274747 0.64027029015249
vn -0.31166701549493 0.02322349475400 -0.94990754326087
vn -0.25813332381454 0.22099292433593 -0.94049418633499
vn 0.91953382686039 -0.16920846297635 -0.35471966017782
vn 0.96316560704717 -0.25648396307622 -0.08079597815595
vn 0.08987769409999 -0.98438661474386 -0.15134395533486
vn 0.18878543478171 0.40528863885804 0.89448374989537
vn -0.09172737722315 0.56946682364216 -0.81688042272947
vn -0.05507686086996 -0.87812675626706 -0.47524724020725
vn 0.40632932374921 0.01434982811990 0.91361401209397
vn -0.13733471763266 0.85451828395831 -0.50093680011924
vn -0.43460721247167 -0.69132437288728 -0.57722368482211
vn 0.79858077579338 -0.27513060320625 0.53532410342951
vn -0.43585583667716 0.89575386253077 -0.08749118467397
vn -0.71831311636300 -0.51605537554401 -0.46659738129678
vn -0.57209848590036 0.81636070109851 0.07911085976318
vn 0.27929158443177 -0.35365552720421 0.89270598684197
vn 0.27929159031910 -0.35365547505445 0.89270600565978
vn 0.27929153242018 -0.35365550701666 0.89270601111182
vn 0.52220117465090 -0.74067442785566 -0.42273789174133
vn 0.31015376605214 -0.78445187641923 -0.53706600617244
vn 0.27929162382668 -0.35365556915323 0.89270595789832
vn 0.44490490063013 0.87154509006999 0.20607956077738
vn 0.63314776123248 0.74736141475599 0.20143194428944
vn -0.96738987138900 -0.13142658631213 0.21652687857241
vn -0.95831184555530 0.06386485627612 0.27849539816885
vn -0.64759682249122 -0.18824135861884 -0.73836545585815
vn -0.27929227600352 0.35365568396323 -0.89270570837498
vn -0.11006865368823 -0.80875948496690 -0.57774820376297
vn 0.89167745751453 0.44174508139643 0.09885643541260
vn -0.83241303336445 0.44692019466467 0.32764444369756
vn -0.46171806648608 -0.72405013922318 -0.51241372246579
vn 0.98131027713327 0.14648691249036 -0.12478671588626
vn -0.55661333492007 0.69844150134627 0.44984560083025
vn -0.67344291524491 -0.63723094696663 -0.37471503857525
vn 0.94621070800465 -0.06243415718398 -0.31747011209572
vn -0.28351423100267 0.77886092541734 0.55945986422353
vn 0.91589438748635 -0.13075245893057 -0.37952768733600
vn -0.20146363545568 0.80976424880903 0.55108462593301
# 92 normals
vt 0.50000000000000 -0.50000000000000 0.00000000000000
vt 0.00000000000000 -0.50000000000000 0.00000000000000
vt 0.75000000000000 -0.06698729097843 0.00000000000000
vt 0.00000000000000 -1.00000000000000 0.00000000000000
vt 0.33333334326744 -0.00000000000000 0.00000000000000
vt 0.33333334326744 -1.00000000000000 0.00000000000000
vt 0.75000000000000 -0.93301272392273 0.00000000000000
vt 0.66666668653488 -0.00000000000000 0.00000000000000
vt 0.66666668653488 -1.00000000000000 0.00000000000000
vt 1.00000000000000 -1.00000000000000 0.00000000000000
# 10 texture coordinates
o Cylinder.4
usemtl Mat.1
f 49/4/1 51/5/2 54/6/3
f 51/7/5 52/1/6 55/8/6 54/9/5
f 49/4/1 57/10/7 51/5/2
f 49/4/1 54/6/3 57/10/7
f 54/9/8 55/8/9 58/11/9 57/12/8
f 57/12/10 58/11/11 52/2/11 51/13/10
f 69/1/12 71/2/13 70/13/13
f 52/1/6 60/1/14 61/13/14 55/13/6
f 55/13/9 61/13/15 62/2/15 58/2/9
f 58/2/11 62/2/16 60/1/16 52/1/11
f 60/1/14 63/1/17 64/13/17 61/13/14
f 61/13/15 64/13/18 65/2/18 62/2/15
f 62/2/16 65/2/19 63/1/19 60/1/16
f 63/1/17 66/1/20 67/13/20 64/13/17
f 64/13/18 67/13/21 68/2/21 65/2/18
f 65/2/19 68/2/22 66/1/22 63/1/19
f 66/1/20 69/1/23 70/13/23 67/13/20
f 67/13/21 70/13/13 71/2/13 68/2/21
f 68/2/22 71/2/24 69/1/24 66/1/22
f 72/4/25 74/5/26 77/6/27
f 74/7/28 75/1/29 78/8/29 77/9/28
f 72/4/25 80/10/30 74/5/26
f 72/4/25 77/6/27 80/10/30
f 77/9/31 78/8/32 81/11/32 80/12/31
f 80/12/33 81/11/34 75/2/34 74/13/33
f 92/1/35 94/2/36 93/13/36
f 75/1/29 83/1/37 84/13/37 78/13/29
f 78/13/32 84/13/38 85/2/38 81/2/32
f 81/2/34 85/2/39 83/1/39 75/1/34
f 83/1/37 86/1/40 87/13/40 84/13/37
f 84/13/38 87/13/41 88/2/41 85/2/38
f 85/2/39 88/2/42 86/1/42 83/1/39
f 86/1/40 89/1/43 90/13/43 87/13/40
f 87/13/41 90/13/44 91/2/44 88/2/41
f 88/2/42 91/2/45 89/1/45 86/1/42
f 89/1/43 92/1/46 93/13/46 90/13/43
f 90/13/44 93/13/36 94/2/36 91/2/44
f 91/2/45 94/2/47 92/1/47 89/1/45
f 95/4/48 97/5/49 100/6/48
f 97/7/50 98/1/51 101/8/51 100/9/50
f 95/4/48 103/10/52 97/5/49
f 95/4/48 100/6/48 103/10/52
f 100/9/53 101/8/54 104/11/54 103/12/53
f 103/12/55 104/11/56 98/2/56 97/13/55
f 115/1/57 117/2/58 116/13/58
f 98/1/51 106/1/59 107/13/59 101/13/51
f 101/13/54 107/13/60 108/2/60 104/2/54
f 104/2/56 108/2/61 106/1/61 98/1/56
f 106/1/59 109/1/62 110/13/62 107/13/59
f 107/13/60 110/13/63 111/2/63 108/2/60
f 108/2/61 111/2/64 109/1/64 106/1/61
f 109/1/62 112/1/65 113/13/65 110/13/62
f 110/13/63 113/13/66 114/2/66 111/2/63
f 111/2/64 114/2/67 112/1/67 109/1/64
f 112/1/65 115/1/68 116/13/68 113/13/65
f 113/13/66 116/13/58 117/2/58 114/2/66
f 114/2/67 117/2/69 115/1/69 112/1/67
f 118/4/70 120/5/71 123/6/72
f 120/7/73 121/1/74 124/8/74 123/9/73
f 118/4/70 126/10/75 120/5/71
f 118/4/70 123/6/72 126/10/75
f 123/9/76 124/8/77 127/11/77 126/12/76
f 126/12/78 127/11/79 121/2/79 120/13/78
f 138/1/80 140/2/81 139/13/80
f 121/1/74 129/1/82 130/13/82 124/13/74
f 124/13/77 130/13/83 131/2/83 127/2/77
f 127/2/79 131/2/84 129/1/84 121/1/79
f 129/1/82 132/1/85 133/13/85 130/13/82
f 130/13/83 133/13/86 134/2/86 131/2/83
f 131/2/84 134/2/87 132/1/87 129/1/84
f 132/1/85 135/1/88 136/13/88 133/13/85
f 133/13/86 136/13/89 137/2/89 134/2/86
f 134/2/87 137/2/90 135/1/90 132/1/87
f 135/1/88 138/1/80 139/13/80 136/13/88
f 136/13/89 139/13/91 140/2/91 137/2/89
f 137/2/90 140/2/92 138/1/92 135/1/90
+62 -13
View File
@@ -1,41 +1,90 @@
{ {
"world": { "world": {
"heightmap": "worlds/hmcs.png", "heightmap": "worlds/watermap.png",
"texture": "worlds/hmcstexture.png", "texture": "worlds/watertexture.png",
"skybox": "skyboxes/peaceful/", "skybox": "skyboxes/water/",
"music": "WAVE/test2.wav",
"object-templates": [ "object-templates": [
{ {
"color": 100, "color": 205,
"file": "models/boom/Boom.obj", "file": "models/puddle/Puddle.obj",
"collision": true
},
{
"color": 220,
"file": "models/islands/isle.obj",
"collision": false
},
{
"color": 223,
"file": "models/islands/isle2.obj",
"collision": false
},
{
"color": 210,
"file": "models/trees/tree1.obj",
"collision": true
},
{
"color": 211,
"file": "models/trees/tree2.obj",
"collision": true
},
{
"color": 212,
"file": "models/trees/tree3.obj",
"collision": true
},
{
"color": 213,
"file": "models/trees/tree4.obj",
"collision": true
},
{
"color": 215,
"file": "models/grass/grass.obj",
"collision": false
},
{
"color": 214,
"file": "models/trees/tree5.obj",
"collision": true "collision": true
} }
], ]
"music": "WAVE/bond.wav"
}, },
"player": { "player": {
"startposition": [ 1, 5, 20 ] "startposition": [ 385, 5, 375]
}, },
"objects": [ ], "objects": [ ],
"portal": { "portal": {
"file": "models/Teleporter/Teleporter.obj", "file": "models/Teleporter/Teleporter.obj",
"pos": [ 10, 5, 10 ] "pos": [ 380, 5, 385 ]
}, },
"enemies": [ "enemies": [
{ {
"file": "models/squid/Blooper.obj", "file": "models/squid/Blooper.obj",
"pos": [ 20, 5, 10 ], "pos": [ 350, 5, 350 ],
"scale": 0.01 "scale": 0.01,
"music": "WAVE/enemy.wav"
}], }],
"crystal": { "crystal": {
"full texture": "models/crystal/Crystal.obj", "full texture": "models/crystal/Crystal.obj",
"empty texture": "models/crystal/PickedUpCrystal.obj", "empty texture": "models/crystal/PickedUpCrystal.obj",
"instances": [ "instances": [
{ {
"pos": [ 31, 5, 33 ], "pos": [ 255, 5, 225 ],
"rot": [ 0, 0, 0 ] "rot": [ 0, 0, 0 ]
}, },
{ {
"pos": [ 40, 5, 40 ], "pos": [ 250, 5, 540 ],
"rot": [ 0, 0, 0 ]
},
{
"pos": [ 250, 5, 490 ],
"rot": [ 0, 0, 0 ]
},
{
"pos": [ 480, 5, 500 ],
"rot": [ 0, 0, 0 ] "rot": [ 0, 0, 0 ]
} }
] ]
+3 -1
View File
@@ -3,6 +3,7 @@
"heightmap": "worlds/rockHeightmap.png", "heightmap": "worlds/rockHeightmap.png",
"texture": "worlds/rockStone2.png", "texture": "worlds/rockStone2.png",
"skybox": "skyboxes/water/", "skybox": "skyboxes/water/",
"music": "WAVE/test2.wav",
"object-templates": [ "object-templates": [
{ {
"color": 50, "color": 50,
@@ -93,7 +94,8 @@
{ {
"file": "models/squid/Blooper.obj", "file": "models/squid/Blooper.obj",
"pos": [ 20, 5, 10 ], "pos": [ 20, 5, 10 ],
"scale": 0.01 "scale": 0.01,
"music": "WAVE/enemy.wav"
}], }],
"crystal": { "crystal": {
"full texture": "models/crystal/Crystal.obj", "full texture": "models/crystal/Crystal.obj",
+5 -3
View File
@@ -9,7 +9,7 @@
"collision": true "collision": true
} }
], ],
"music": "WAVE/bond.wav" "music": "WAVE/test1.wav"
}, },
"player": { "player": {
"startposition": [ 20, 5, 20 ] "startposition": [ 20, 5, 20 ]
@@ -23,12 +23,14 @@
{ {
"file": "models/squid/Blooper.obj", "file": "models/squid/Blooper.obj",
"pos": [ 20, 5, 10 ], "pos": [ 20, 5, 10 ],
"scale": 0.01 "scale": 0.01,
"music": "WAVE/enemy.wav"
}, },
{ {
"file": "models/squid/Blooper.obj", "file": "models/squid/Blooper.obj",
"pos": [ 30, 10, 10 ], "pos": [ 30, 10, 10 ],
"scale": 0.01 "scale": 0.01,
"music": "WAVE/enemy.wav"
}], }],
"crystal": { "crystal": {
"full texture": "models/crystal/Crystal.obj", "full texture": "models/crystal/Crystal.obj",
Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

+1 -1
View File
@@ -1,8 +1,8 @@
{ {
"worlds": [ "worlds": [
"worlds/ice.json",
"worlds/small.json", "worlds/small.json",
"worlds/rock.json", "worlds/rock.json",
"worlds/ice.json",
"worlds/fire.json" "worlds/fire.json"
] ]
} }