Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 17:26

    syoyo on multithreaded-parser-merge

    Include experiment/tinyojb_load… (compare)

  • Oct 09 05:19
    syoyo synchronize #166
  • Oct 09 05:19
    syoyo closed #216
  • Oct 09 05:19

    syoyo on master

    Suppress gcc warnings. Fixes #2… (compare)

  • Oct 08 10:10
    patriciogonzalezvivo commented #218
  • Sep 26 03:40
    syoyo commented #224
  • Sep 26 03:40
    syoyo synchronize #166
  • Sep 26 03:40

    syoyo on master

    Fix readme typos Add conan badge Add installation paragraph and 1 more (compare)

  • Sep 26 03:40
    syoyo closed #224
  • Sep 26 03:40
    syoyo closed #206
  • Sep 25 18:04
    flostellbrink opened #224
  • Sep 25 10:12
    flostellbrink commented #206
  • Sep 25 03:04
    syoyo commented #206
  • Sep 24 18:48
    flostellbrink commented #206
  • Sep 24 18:43
    flostellbrink commented #206
  • Sep 19 08:08
    giomatfois62 commented #208
  • Sep 18 06:15
    syoyo synchronize #166
  • Sep 18 06:15
    syoyo closed #221
  • Sep 18 06:15

    syoyo on master

    Deprecate Wercker. Add Azure Pi… Merge branch 'master' of github… (compare)

  • Sep 18 06:04
    syoyo synchronize #166
Peter Taylor
@emersont1
Hello, I am loading a mesh from a file and it seems to replace it with a blank file
Peter Taylor
@emersont1
never mind, I'd parsed arguments wrong and wasn't protecting fopen() properly
Nikita Krupitskas
@IgrauBezRuk
result.png
@syoyo Hey! Here little offtopic :) I want to ask you about raytracing. I have example, which I must speed up. Example is 2048 * 2048 dimension png output which have 512 spheres and rays. Poor C++ and cpu computing. Like first chapter of Ray tracing in weekend.
Can you give me plz some advices how can I speed up? Im newbie :)
Maybe kd-tree? packet traversal? Hierarchical grid or Regular grid?
First Im trying to speed up this by algorithms. After will make it async and compute parallel on gpu by directx compute pipeline.
Thanks!
I saw u wrote aweome gi render and contributed to pbrt :)
Now it rendering for 20 seconds on my pc
Maybe some sort of Zbuffer? Sort them by z positions?
Syoyo Fujita
@syoyo
@Warezovvv This is offtopic. Please do not post message which is not related to tinyobjloader.
Patryk
@spartanPAGE
debug.png
What have i done wrong?
i'm loading my model like this: ```
scaffolding::models::raw_model tol_load(const char* filename) {
    scaffolding::models::raw_model result;

    std::vector<tinyobj::shape_t> shapes;
    std::vector<tinyobj::material_t> materials;

    std::ifstream ifs { filename };
    std::string err;

    tinyobj::attrib_t attrib;
    auto ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &err, &ifs);

    if(!err.empty()) { // `err` may contain warning message.
        std::cerr << err << std::endl;
    }

    if(!ret) {
        exit(1);
    }

    for(int i = 0; i < attrib.vertices.size(); i += 3) {
        result.vertices.push_back({
            glm::vec4 { attrib.vertices[i], attrib.vertices[i + 1], attrib.vertices[i + 2], 1 },
            glm::vec4 { 1, 1, 0, 1 }
        });
    }

    return result;
}
i don't need to worry about normals, texture coordinates; i need only vertices
You should read README example code carefully. At least you need to look up shapes.mesh.indices
MaximeJakubowski
@MaximeJakubowski
Hi, I'm working with this library and stumbled upon an error. When loading .obj's that do not have their normals or texture coordinates defined, the program crashed at the example code. It crashed at the moment it tries to get the tx or ty coordinate (or nx, ny, nz). How can I prevent such an error?
You need to check attrib.normals.size() and attrib.texcoords.size() is not empty.
Black Falcon
@capitalknew
Why William meshes removed from google and none of page?
Where I can load sponza, teapot, rungholt?
Syoyo Fujita
@syoyo
syoyo/tinyobjloader@dcbc8d5
Updated URL
Black Falcon
@capitalknew
Will obj to gltf converter?
Syoyo Fujita
@syoyo
You can contribute
Black Falcon
@capitalknew
Sad when I developed my ray tracer
With glTF
I did not made animation support
I just don't know how to
Black Falcon
@capitalknew
My ray tracer positioned as Real-Time
Black Falcon
@capitalknew
About NanoRT
I want ask questions, how to compile double precision example?
And will this example using newer tinyobjloader with double precision?
Syoyo Fujita
@syoyo
This is not the place to discuss NanoRT
Nikita Krupitskas
@IgrauBezRuk
I have a question about tinygltf. For now I need get vertices and indices
where can I get it?
Just to render primitive
Syoyo Fujita
@syoyo
This is no the place to discuss about tinygltf.
XenialDan
@thebigsmileXD
Hi. Stumbeled over the repo whilest searching for reading in/creating obj files. Might ask some questions in the future, for now i'll just text and fail. (just getting started with the project anyways)
sasherafat
@sasherafat
Hi bro, how can I add .obj file to visualStudio C++ opengl
When I use Fopen(filename,"r")
I give a wrong "invalide or currept"
And can't open this file
Syoyo Fujita
@syoyo
@sasherafat Please file an github issue with minimal & reproducable .obj/.mtl
kingdevnl
@kingdevnl
Hey
Somehow it's loading my text coords wrong
Syoyo Fujita
@syoyo
@kingdevnl Please describe in detail and if you still thing its an issue, use github issue(and please attach minimal & reproducable .obj/mtl)