Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (775)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Good tutorials teaching how to use Nifty in LWJGL?  (Read 4830 times)
0 Members and 1 Guest are viewing this topic.
Offline ShadedVertex
« Posted 2015-12-13 10:00:14 »

I need to learn how to render GUI in LWJGL, and I don't really want to write my own GUI API, so are there any Nifty tutorials out there? I know there's a jMonkeyEngine one, but I'm using LWJGL, so...I need a tutorial which teaches how to use Nifty for LWJGL. Any ideas? Answers would be much appreciated. Thanks in advance Cheesy
Offline Phased
« Reply #1 - Posted 2015-12-13 10:30:07 »

LWJGL 2 or 3?

EDIT:

If you are using LWJGL3, LWJGL3 has got built in GUI Library: NanoVG

Hmm there was example code for NanoVG I saw somewhere, not sure where it is now.
Offline gouessej
« Reply #2 - Posted 2015-12-13 10:31:42 »

Hi

https://github.com/void256/nifty-gui/tree/1.4/nifty-examples/src/main/java/de/lessvoid/nifty/examples

This one is a bit old:
https://github.com/void256/nifty-gui/wiki/Nifty-1.4-LWJGL-example-%28without-Maven%29

Please look at the wiki.

Julien Gouesse | Personal blog | Website | Jogamp
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ShadedVertex
« Reply #3 - Posted 2015-12-13 11:13:05 »

Thanks, both of you. I'm gonna go with NanoVG Cheesy
Offline Phased
« Reply #4 - Posted 2015-12-13 11:21:22 »

It is a bit complicated,

NegativeZero just posted the link in IRC for the demo of it.

Offline gouessej
« Reply #5 - Posted 2015-12-13 11:53:39 »

NanoVG seems to require a lot more code than Nifty GUI to draw a widget :s

Julien Gouesse | Personal blog | Website | Jogamp
Offline KaiHH

JGO Kernel


Medals: 638



« Reply #6 - Posted 2015-12-13 12:06:58 »

Yes. Nifty or TWL are far better suited. NanoVG _is_not_ a GUI library!
It's like saying OpenGL is a render engine.
NanoVG is suited to be the technology used to realize the rendering backend of a GUI library. But it is _only_ about the renderig aspect and only about vector graphics primitives (drawing circles, paths, rectangles, ...) and rendering text. A real GUI framework has also many more aspects such as input, focus state, animation/transition. And every GUI framework provides the user with abstractions over widgets/controls that the user can build her GUI with, either programmatically or descriptively.
I would suggest using Nifty or TWL.
Offline Catharsis

JGO Ninja


Medals: 75
Projects: 1
Exp: 21 years


TyphonRT rocks!


« Reply #7 - Posted 2015-12-14 21:24:52 »

For those interested in investigating NanoVG for GUI applications perhaps checking out blendish / OUI is pertinent for inspiration.

Check out the TyphonRT Video Suite:
http://www.typhonvideo.com/

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline KaiHH

JGO Kernel


Medals: 638



« Reply #8 - Posted 2015-12-14 21:35:03 »

Now, how awesome is that?! Thanks for mentioning!
I love the Blender UI. Would be perfect for developing the UI of a custom tool.
Please, Spasi, if you read this, add Blendish and OpenUI as LWJGL bindings! Smiley
Offline Catharsis

JGO Ninja


Medals: 75
Projects: 1
Exp: 21 years


TyphonRT rocks!


« Reply #9 - Posted 2015-12-14 22:19:37 »

@KaiHH  I think porting blendish / OUI to Java as a 3rd party library using the LWJGL NanoVG bindings would be best as it's rather specific and requires larger amount of resources that aren't appropriate for LWJGL inclusion due to the size of the blender icon SVG resources. It shouldn't be too bad since there is a roadmap and working implementation to examine.

Check out the TyphonRT Video Suite:
http://www.typhonvideo.com/

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (45 views)
2018-11-16 13:46:03

hadezbladez (50 views)
2018-11-16 13:41:33

hadezbladez (35 views)
2018-11-16 13:35:35

hadezbladez (20 views)
2018-11-16 13:32:03

EgonOlsen (1902 views)
2018-06-10 19:43:48

EgonOlsen (1937 views)
2018-06-10 19:43:44

EgonOlsen (1286 views)
2018-06-10 19:43:20

DesertCoockie (1734 views)
2018-05-13 18:23:11

nelsongames (1412 views)
2018-04-24 18:15:36

nelsongames (2046 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!