Code Monkey home page Code Monkey logo

Comments (7)

dumblob avatar dumblob commented on May 18, 2024

Please note, that a week ago a note CURRENTLY UNDER HEAVY REFACTORING! (do not use at the moment) was added to the top of the Readme.md file.

Feel free to use the version from 15. 12. 2015 (i.e. before the major refactoring has begun), which should work with all the demos and examples flawlessly.

from nuklear.

trappedinspacetime avatar trappedinspacetime commented on May 18, 2024

@dumblob Thank you for the info. After I cloned the repo then cd zahnrad directory in my local disk then git reset --hard 9c3365e1abb1be4a826210acf92e6dce7fba2173 did the trick. Examples compile fine in that commit, but when I attempt to run the binary I get Missing TTF Font file argument: demo <path> error. However when I run it ./rahnrad --help command example runs and gui opens but screen gets extremely slow. One of the examples gave me unsported opengl 2.0 graphic card error. My computer rather old, may slowness be related to my graphic card?

from nuklear.

dumblob avatar dumblob commented on May 18, 2024

Regarding missing TTF font file, please use some of the bundled fonts (https://github.com/vurtun/zahnrad/tree/master/font).

Zahnrad is rendering-backend-agnostic and demos use different rendering backends to show how to use some of the well-known backends from various platforms (glfw, linuxgl, nanovg, sdl, win32, x11, ...).

Could you please tell us which backend did you use, so that we could look into the slowness? This library fits also embedded slow systems, so there should be no issue with speed (actually, I would guess, that you're running OpenGL demos/examples, but all the computations are performed by CPU as your graphic card doesn't support newer OpenGL specifications).

from nuklear.

vurtun avatar vurtun commented on May 18, 2024

Hey,
sorry for the not working examples/demos but I uploaded the complete changes even though I only wanted to upload the updated Readme and since I wrote a notice did not fix it. Was a big mistake on my part and something a learned from, but the new version will be uploaded in the next few days (definitely this week). I was able to simplify the API a lot but the new version will break almost everything so please don't start using this library until the new version.

Missing TTF Font file

Please call all demo/example programs with one of the .ttf files found inside the /font folder as an argument. Currently I do not have a default font inside the library only provide a way to bake one or use existing font handling so you have to provide a TTF-Font for them to work.

One of the examples gave me unsported opengl 2.0 graphic card error

You probably tried to run the linuxgl demo which requires at least OpenGL 2.0 with a number of extensions or OpenGL 3.0. If you have Linux please try the x11 demo which is guaranteed to work and does not need a TTF-Font to work.

from nuklear.

trappedinspacetime avatar trappedinspacetime commented on May 18, 2024

Thank you guys for responding, you are very helpful.

@vurtun Thanks for the info. I understand that your project is under development, it's OK. Luckily you and @dumblob directed me on the right path, and I could test your demos. I could run X11 demo, it runs smooth, no slowness. It looks fantastic! If only I could code like you.

@dumblob Only X11 example runs well. The rest of it very slow despite I add the font argument. For example the one in /zahnrad/example/demo/bin I ran it like ./demo ../../../font/DroidSans.ttf gui opens but very slow.

from nuklear.

vurtun avatar vurtun commented on May 18, 2024

The rest of it very slow despite I add the font argument

The /example/demo/ is slow since it uses NanoVG which is not really meant for this kind of GUI, at least the default OpenGL implementation of it and for older PCs. The only reason why I use it is because it is easy to load images and fonts with NanoVG and I can test out more advanced things more quickly while still having a nice looking UI. In theory everything could be done in X11 (even if the image handling with xlib is crappy) or Win32 (ugly as hell) but I would loose portability.

from nuklear.

trappedinspacetime avatar trappedinspacetime commented on May 18, 2024

@vurtun Thank you for the info. You provided a range of demos. I have to be content with X11 demo. I wish you determination in your project. I hope you come up with a gui designer in the future.
Happy new year.

from nuklear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.