Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

raysan5

About

Username
raysan5
Joined
Visits
114
Last Active
Roles
Administrator

Comments

  • Hi Berni, I don't understand completely your problem... It shouldn't be a problem to just draw the texture and the info/lines over the texture in the usual way. One possible solution, use a RenderTexture2D to draw to texture first and then draw tha…
  • Just added your proposed check on file open: https://github.com/raysan5/raylib/commit/8c1f32f2fe25790b3ddd68e8743d488e5b353f8c
  • I think it could be related to IsFileExtension() function, but can not test...
  • ok, just tried it and it works ok on Windows, image is not displayed and output is: INFO: Initializing raylib (v1.7.0) INFO: Display device initialized successfully INFO: Display size: 2160 x 1440 INFO: Render size: 800 x 450 INFO: Screen size: 800 …
  • Ouch, that's bad! Neither the loading warning is displayed... it seems there is a problem with the "image.png" file, please, could you share a small sample with the loading and the "image.png" file to check it?
  • Actually, raylib shows a command line WARNING in case filename is not correct. You can check if texture has been correctly loaded with: if (texture.id > 0) // Texture correctly loaded
  • You should use DrawTexturePro(). It let's you specify the origin. Destination rectangle defines the scale. DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint);
    in Texture origin Comment by raysan5 June 7
  • Hey Mark! Thank you very much for the addition! I'll copy it to raylib wiki!
  • To compile raylib program you should use GCC and link with required libraries: gcc -o rayproject.exe rayproject.c -s -lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm -std=c99 -Wl,-allow-multiple-definition -Wl,--subsystem,windows
  • You should try the tools provided, the Notepad++ script works great.
  • Hi Markz and dancho! Thanks to you for using raylib!
  • Great work Joan! Keep it up!
  • Hola Matías! Bienvenido al foro! Sin duda toda contribucion para mejorar la implementacion en Linux es bienvenida! Me encantaria que raylib se integrase mejor en Linux, tambien creo que puede ser especialmente util para entornos educativos! En e…
    in Hi! y Hola. Comment by raysan5 May 12
  • Sincerely, 3D models animation is not an easy topic, to some extend, it works similar to 2D sprites animation: you got multiple frames and you draw one at a time, you only need to change from one to another. Imagine the same but replacing each sprit…
  • Hola FernandoJS, bienvenido al foro! I also studied Electronic Engineering and I'm also constantly learning new things and working in new project, actually, raylib is probably my biggest project to date (around 4 years in development). Glad to r…
    in Hola! Comment by raysan5 May 10
  • Hi Berni, just review your code a bit, notice that any drawing should be done always between BeginDrawing() and EndDrawing(). glFlush() just forces the execution of drawing commands, usually that's controlled by the GPU driver in the most proper wa…
  • Hey Berni! Just used the same code you used, adapted to raymath: https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles
  • Wow, that sounds weird... are you using the following drawing structure? BeginDrawing(); ClearBackground(RAYWHITE); BeginTextureMode(target); // Enable drawing to texture Begin3dMode(camera); DrawModel(dwarf, position,…
  • I know, angles in 3d space are a lot of fun, best solution is using Quaternions for rotations, that way you avoid Euler gimbal lock and matrix rounding deviations. Most of the examples are intended for beginners, not advance users... but yes, some …
  • Wow! Truly amazing! Actually raylib is quite a thin layer over OpenGL to make things easier, you can use directly OpenGL if you require some extra functionality not exposed by raylib. It's true that line thick (for LINES drawing) is not exposed...…
  • Hi Berni! Sorry, limits for RPI are a bit lower, I tested it with the first RPI and decided to set a low limit for any RPI system. Yeah, GPU can set their own limits, usually related to maximum vertex data processed by shader in a single draw call…
  • MAX_LINES_BATCH controls the size of lines buffer, by default it's set to 8K lines (https://github.com/raysan5/raylib/blob/develop/src/rlgl.h#L109), you can increase that limit... are you drawing more than 8K lines on screen? are you drawing lines o…
  • Hi Berni, Yes, you're right, I've been trying to find the best approach to this issue since raylib first version, here it is some more details on that: https://github.com/raysan5/raylib/wiki/2D-vs-3D-development-with-raylib Right now, for upcoming…
  • Hi HomineLudens, Thanks for the report, actually, I didn't try to compile for web after some redesign I did over rlua.h (originally that library was implemented by a raylib user). It's great you manage to get it working! Lately I've been working o…
  • Actually, showing console output is a compiler option, I mean TraceLog() messages are always enabled, what I hide on compilation is console. It is done with the compiler option -Wl,--subsystem,windows. To compile rlua.c, just use the compiler line …
  • Hi ismyhc! Welcome to the forum! About package distribution, it depends on the platform. For example, in Android you generate a .apk, that file is actually a renamed .zip that includes the executable program and the required resources (images, soun…
    in Distribution Comment by raysan5 April 16
  • Yeah, that's a good project but requires some time... About TraceLog() messages, I can enable them, don't know why I disabled them... Just added in latest commit in GitHub!
  • Yes, I think it's possible but it will require some frontend work to integrate with a good online code editor. Writting the code and playing pressing a button wouldn't be difficult. A more interesting project would be an editor with the possibility…
  • Hi! No standard function, it was just coded... but you're not the first who ask for how-to, just prepared a new example to show it: https://github.com/raysan5/raylib/blob/develop/examples/text/text_input_box.c Additionally, you have raygui, a simpl…
  • Hi Cybermonkey342! Welcome to the forum! Just removed .rbmf fonts support on raylib v1.7, this format was a custom format created by me and I decided it was not good enough, so, I removed it. My intention is to replace it by a more general an powe…