Comments (7)
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.
@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.
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.
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.
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.
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.
@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)
- Documentation link to the rawgit.com is Supposed to stop Working in 2019_10 HOT 3
- Change the whole library to not use any null-terminated strings HOT 6
- Layouting using groups HOT 14
- Internal drawing bug HOT 2
- Nuklear render on hooked d3d9 app breaks when app displays a tooltip
- (Question) images in nuklear HOT 2
- NK_EDIT_GOTO_END_ON_ACTIVATE not working with nk_edit_string_zero_terminated
- Examples won't compile on macOS because it doesn't have pkg-config by default. HOT 1
- Rendering to a framebuffer instead of OpenGL HOT 10
- GLFW adapter not drawing Properly HOT 1
- combined character displaying each as different character
- Image created in memory triggers "if this triggers you forgot to add a font" HOT 1
- When I update the nk_begin title it blocks the entire window.
- Get rid of scissors?
- the GDI+ version make the nk_button_color draw the rectangle with inner black lines
- Suggestion: Center docs
- Option for component shadow
- Segmentation failed to try nk_style_set_font in the glfw_opengl3 demo HOT 1
- How to know if a edit_string is active or not ? HOT 1
- ALL DEVELOPMENT MOVED ELSEWHERE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuklear.