D
D
dotruger372019-11-20 23:24:44
Qt
dotruger37, 2019-11-20 23:24:44

Where does the program build and why is the obj format file not read?

I decided to write an obj reader in QtCreator, in C++. Everything seems to compile, but the file that I threw into the box.obj assembly is not visible to the program, although it says read("box.obj"). Tell me, please, what's the matter.

void load()
{
  objl::Loader Loader;
    
    // Load .obj File
    bool loadout = Loader.LoadFile("pistol_0.obj");
    std::cout << "bool = "<< loadout << "\n";
    
    // Check to see if it loaded
    
    // If so continue
    if (loadout)
    {

5dd5a0fed282a898436746.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2019-11-21
@dotruger37

Specify the full path to the file in the program and you will be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question