lragnarsson / Emerald-Engine

3D graphics engine using OpenGL
MIT License
66 stars 21 forks source link

emerald cannot find tga resources #140

Open clort81 opened 5 years ago

clort81 commented 5 years ago

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 commented 5 years ago

an invisible typing error :

https://github.com/lragnarsson/Emerald-Engine/blob/4e67a7e2e9f062c5f6e04ccfbca6557b73657650/res/models/sponza/sponza.mtl#L16

remove the invisible blanks at the end of this line