question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raylib texture loading issue

See original GitHub issue

piecesTexture = Raylib.LoadTexture(UIHelper.GetResourcePath("Pieces.png")); this line in BoardUI ( line 56 ) doesn’t load the texture for me. A check like this Console.WriteLine("Piece.png loading..."); while (!Raylib.IsTextureReady(piecesTexture)){}
seems like just wont stop ever.

I have amd rx550.

I tried methods like : Raylib.LoadImageFromMemory(); and then use the image, but i couldn’t load an image either, the image height always remained 0.

Anyone else had problem with this?

Issue Analytics

  • State:closed
  • Created 2 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SebLaguecommented, Jul 24, 2023

I’ve added a patch that seems to fix this, so closing for now. Note however that font (or possibly shader/both) is still not loading correctly for non-ascii path so I will continue to look into it.

1reaction
SebLaguecommented, Jul 23, 2023

This issue seems to occur when the path to the project contains letters with diacritics. Would you mind posting the path to your project or confirming if it has any non-ascii characters? Currently looking into a solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem With Loading Textures : r/raylib
The code, unmodified, works for me (with my own image named to match yours) so I'm guessing either the path to the image...
Read more >
Loading textures not working. · Issue #2249 · raysan5/raylib
I am using raylib with C++11 and when I am loading a texture it is not working. Here is my C++ file: #include...
Read more >
textures to_image
raylib [textures] example - Retrieve image data from texture: LoadImageFromTexture() * * NOTE: Images are loaded in CPU memory (RAM); textures are loaded...
Read more >
Raylib Tutorial | Episode 3 | Drawing textures and animating
In this episode we learn the difference between a texture and an image in raylib. We learn how to draw and even animate...
Read more >
Using raylib for a game project
I'm having a problem with drawing my game map in Raylib. ... Texturas/mage (1).png"); Texture2D fairy = LoadTexture(".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found