You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RT2D does not render anything on my local machine.
What did I do:
I cloned this repo, I built the project and I ran [start]. A window opens and it all seems well. But nothing is rendering.
Terminal output:
#######################
resourcemanager created
monitor: 1920x1080
Can't open shaders/sprite.vert
return new resource: shaders/sprite.vert_shaders/sprite.frag (shader)
Renderer using uberShader as fallback
Renderer::init() done
################ new Scene ################
Loading TGA: assets/square.tga
unable to open file
return new resource: assets/square.tga (texture)
return new resource: 0x0_0.50000x0.50000_1.00000x1.00000_0_-1 (mesh)
I think the issue starts with Can't open shaders/sprite.vert.
The same way shaders/sprite.vert can't be opened assets/square.tga also can't.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered:
There is a possibility that this issue is specific to my machine.
I have a project from February 2024, which also has this same problem, while it did not have this issue when I was developing this project back then.
Hi @douwehw Thanks for raising this issue.
The compiled executable needs access to the assets, shaders and fonts directory. CMake copies those directories to the build directory when you do cmake ..
On MS Windows, the compiler places the executable in build/Release or build/Debug directory. To get it to work, copy those 3 directories in Release and/or Debug directory by hand.
I'll see what I can do to tell Cmake to do the right thing on Windows.
Thanks again!
RT2D does not render anything on my local machine.
What did I do:
I cloned this repo, I built the project and I ran [start]. A window opens and it all seems well. But nothing is rendering.
Terminal output:
#######################
resourcemanager created
monitor: 1920x1080
Can't open shaders/sprite.vert
return new resource: shaders/sprite.vert_shaders/sprite.frag (shader)
Renderer using uberShader as fallback
Renderer::init() done
################ new Scene ################
Loading TGA: assets/square.tga
unable to open file
return new resource: assets/square.tga (texture)
return new resource: 0x0_0.50000x0.50000_1.00000x1.00000_0_-1 (mesh)
I think the issue starts with
Can't open shaders/sprite.vert
.The same way shaders/sprite.vert can't be opened assets/square.tga also can't.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: