From bbb6aeff6a865340e1108f0d3457799f0f383417 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Thu, 12 May 2016 02:57:41 +0900 Subject: [PATCH] Adjust near/far clipping value. --- README.md | 6 +++++- examples/viewer/viewer.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74bc8f8..3e6663b 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,15 @@ What's new Example ------- -![Rungholt](https://github.com/syoyo/tinyobjloader/blob/master/images/rungholt.jpg?raw=true) +![Rungholt](images/rungholt.jpg) tinyobjloader can successfully load 6M triangles Rungholt scene. http://graphics.cs.williams.edu/data/meshes.xml +![](images/sanmugel.png) + +* [examples/viewer/](examples/viewer) OpenGL .obj viewer + Use case -------- diff --git a/examples/viewer/viewer.cc b/examples/viewer/viewer.cc index 3160643..94153c8 100644 --- a/examples/viewer/viewer.cc +++ b/examples/viewer/viewer.cc @@ -198,7 +198,7 @@ void reshapeFunc(GLFWwindow* window, int w, int h) glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(45.0, (float)w / (float)h, 0.1f, 1000.0f); + gluPerspective(45.0, (float)w / (float)h, 0.01f, 100.0f); glMatrixMode(GL_MODELVIEW); glLoadIdentity();