Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emerald cannot find tga resources #140

Open
clort81 opened this issue Oct 4, 2019 · 1 comment
Open

emerald cannot find tga resources #140

clort81 opened this issue Oct 4, 2019 · 1 comment

Comments

@clort81
Copy link

clort81 commented Oct 4, 2019

Hello!

Running emerald on devuan, i get

`
monkey@butt:~/nuproj/omw/Emerald-Engine $ ./emerald
2048 84
This is Emerald Engine.
A few useful commmands are:

Numbers 1-7 = Display different buffers
F = Follow path with camera
T = Toggle tweakbar display
Y = Toggle follow terrain.
X,Z = Interact with lights
P = Print profiling numbers

A complete description of all keyboard commands can be found in doc/keyboard_command_reference.md

Loaded shader 3 - build/shaders/forward.frag
Loaded shader 6 - build/shaders/geometry.frag
Loaded shader 10 - build/shaders/flat_no_bloom.frag
Loaded shader 13 - build/shaders/deferred.frag
Loaded shader 16 - build/shaders/flat.frag
Loaded shader 19 - build/shaders/flat_no_bloom.frag
Loaded shader 22 - build/shaders/flat_texture.frag
Loaded shader 25 - build/shaders/ssao.frag
Loaded shader 28 - build/shaders/blur_red_5_x.frag
Loaded shader 31 - build/shaders/blur_red_5_y.frag
Loaded shader 34 - build/shaders/blur_rgb_11_x.frag
Loaded shader 37 - build/shaders/blur_rgb_11_y.frag
Loaded shader 40 - build/shaders/show_rgb_component.frag
Loaded shader 43 - build/shaders/show_alpha_component.frag
Loaded shader 46 - build/shaders/show_red_component.frag
Loaded shader 49 - build/shaders/hdr_bloom.frag
Loaded shader 53 - build/shaders/grass.frag
Loaded shader 57 - build/shaders/grass.frag
Loaded shader 61 - build/shaders/grass.frag
Loaded shader 65 - build/shaders/grass_single_color.frag
Loaded shader 69 - build/shaders/grass_single_color.frag
Loaded shader 73 - build/shaders/grass_single_color.frag
Loaded shader 76 - build/shaders/shadow.frag
Loaded shader 79 - build/shaders/skydome.frag
Error 13: Can't load image!
Couldn't open res/models/sponza/textures/sponza_thorn_diff.tga

monkey@butt:~/nuproj/omw/Emerald-Engine $ ls -l res/models/sponza/textures/sponza_thorn_diff.tga
-rw-r--r-- 1 david david 786476 Oct 4 21:57 res/models/sponza/textures/sponza_thorn_diff.tga

monkey@butt:~/nuproj/omw/Emerald-Engine $ file res/models/sponza/textures/sponza_thorn_diff.tga
res/models/sponza/textures/sponza_thorn_diff.tga: Targa image data - RGB 512 x 512 x 24
`

running with strace shows:
openat(AT_FDCWD, "res/models/sponza/textures/sponza_thorn_diff.tga\t", O_RDONLY) = -1 ENOENT (No such file or directory)

What is the cause of the problem?

@ailin-nemui
Copy link

an invisible typing error :

map_Kd textures/sponza_thorn_diff.tga

remove the invisible blanks at the end of this line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants