Comments (16)
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.
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.
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.
from vsgexamples.
from vsgexamples.
I gave it another try, don't work.
from vsgexamples.
from vsgexamples.
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.
from vsgexamples.
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.
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.
from vsgexamples.
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:
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.
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.
from vsgexamples.
from vsgexamples.
Related Issues (20)
- Cannot render glb files with vsgviewer HOT 12
- how to render models with tileData? HOT 1
- If vsgTransform is no command line parameter, it will crash. HOT 1
- vsgviewer render readymap.vsgt? HOT 5
- Wayland support HOT 2
- Compiling issues for vsgvolume example HOT 4
- vertex and fragment source for vert_PushConstants.spv and frag_PushConstants.spv HOT 5
- Checked-in code inconsistent with .clang-format HOT 4
- vsgshadow without shadows on MacOS HOT 16
- None of the example models are actually compatible with vsgclip example HOT 2
- vsgshadow has black patches flickering on the ground HOT 4
- No CMakeLists.txt file for vsgoffscreenshot HOT 2
- vsgscreenshot can produce strange output HOT 2
- vsgexecutecommands crashes on windows HOT 8
- VSG_INSTANCE_POSITIONS format change HOT 2
- Request for a hello-world example HOT 3
- How to display a point on the earth map? HOT 1
- vsgvolume is actually broken on Windows 11 and Ubuntu 22.4 HOT 3
- problem with overlay views using multiple render graphs in the same window HOT 3
- DescriptorPool warning when using compileManager with storage buffers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsgexamples.