GithubHelp home page GithubHelp logo

Comments (16)

robertosfield avatar robertosfield commented on September 27, 2024

simple_raygen.rgen exist in the repo:

https://github.com/vsg-dev/vsgExamples/blob/master/data/shaders/simple_raygen.rgen

What makes you think these files don't exist? If you can be specific then I can look into it. For now though I don't have anything to look into as the example you suggest does exist in the repo.

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

Sorry, a short look made me think that they weren't copied with clone ... but they are there. I get a "Could not create shaders." when starting some of the examples (e.g. vsgraytracing) and thought that's the reason why. I set VSG_FILE_PATH and also tried to specify the full path in vsg::read_castvsg::ShaderStage. I am overlooking something and will have a deeper look in it Monday.

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

OK, can't see the reason why the shaders are not loaded ... I just get "Could not create shaders.". Debugging is complicated due to the sophisticated templating and lambdas ... the project is too complicated for my purposes and I'm giving up here. However, interesting project, but I'm looking for things in a more comprehensive structure for use at university.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

rolandhill avatar rolandhill commented on September 27, 2024

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

I gave it another try, don't work.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

I'm on Ubuntu (Budgie) 21.10., Driver is NVidia 470.82.00 on a 2080 QMax. I only had few time to look in it in a short debug session, but I can't step into the library, because it is a separate project (from vsgExamples). Do you have an easy setup for this - would probably be easier for me than for you to "guess" from remote.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

No, I continue to get the same message. Some path issues were my first guess, I've already tried to give the absolute path in the .cpp, didn't work either. So, I don't think, its a mere path issue. But some more information about what's happening would be good indeed.

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

OK, I had a look in it. In the code below (part of read.cpp in module io), the endings .rgen, .rmiss and so on, are ignored. I think, it is assumed, that SPIR-V should be loaded there? Anyway, because the suffix is "wrong", reading the file fails.
`

ref_ptr vsg::read(const Path& filename, ref_ptr options)
{
std::cout << filename;

auto read_file = [&]() -> ref_ptr<Object> {
    if (options && !options->readerWriters.empty())
    {
        for (auto& readerWriter : options->readerWriters)
        {
            auto object = readerWriter->read(filename, options);
            if (object) return object;
        }
    }

    auto ext = vsg::lowerCaseFileExtension(filename);

    if (ext == "vsga" || ext == "vsgt" || ext == "vsgb")
    {
        VSG rw;
        return rw.read(filename, options);
    }
    else if (ext == "spv")
    {
        spirv rw;
        return rw.read(filename, options);
    }
    else
    {
        // no means of loading file
        return {};
    }
};`

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

I have checked in a fix to vsgraytracing so that it reads the .spv variants of the shaders where the GLSL shaders can't be read, such as when vsgraytracing isn't compiled with vsgXchange:

22a866c

I have tested vsgraytracing without vsgXchange and it works fine now. @benne3333 could you try the latest vsgExamples master to see it now works.

from vsgexamples.

benne3333 avatar benne3333 commented on September 27, 2024

Confirmed.
I tried to cross check with vsgXchange, but there seems to be a problem with my assimp installation (cmake complaining about /usr/lib/include not being there - it really isn't, but other applications use libassimp-dev successfully). Maybe you want to have a look in that. I think this issue here could be closed.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.