Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 30 16:38
    syoyo commented #272
  • Mar 30 15:36
    syoyo commented #271
  • Mar 30 15:35
    syoyo synchronize #166
  • Mar 30 15:35

    syoyo on master

    Remove duplicate lookups (#271)… (compare)

  • Mar 30 15:35
    syoyo closed #271
  • Mar 30 15:33
    syoyo commented #270
  • Mar 30 15:33
    syoyo synchronize #166
  • Mar 30 15:33

    syoyo on master

    Fix calculating geometric norma… (compare)

  • Mar 30 15:33
    syoyo closed #270
  • Mar 30 14:35
    SeanCurtis-TRI opened #272
  • Mar 30 13:27
    domgho opened #271
  • Mar 30 13:04
    domgho edited #270
  • Mar 30 13:02
    domgho opened #270
  • Mar 24 15:13
    Geomazzix commented #269
  • Mar 24 15:10
    syoyo commented #269
  • Mar 24 15:00
    Geomazzix edited #269
  • Mar 24 15:00
    Geomazzix edited #269
  • Mar 24 14:59
    Geomazzix opened #269
  • Mar 20 15:11
    mberglundmx opened #268
  • Mar 19 15:11
    syoyo commented #267
Nikita Krupitskas
@krupitskas
@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
@krupitskas
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)
刘雨培
@LYP951018
How to extract per-shape vertex buffer from attrib_t and shape_t? If I use mesh_t::indices to extract vertices I'll get redundant vertices...
刘雨培
@LYP951018
Never mind. I figured it out
刘雨培
@LYP951018
Oh no... I still could not find a way to construct a vertex buffer/index buffer for each shape individually...