Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-12 Thread Denis Colesnicov

robertosfield wrote:
> The osghud example illustrates how to do
> this.


Thanks!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69962#69962





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-07 Thread Robert Osfield
HI Denis,

I cannot comment on specific of librocket.

If you want to use 2D elements in a 3D scene the standard way of doing
this is to use a Camera that sets the project and view matrices to
creates a 2D projection.  The osghud example illustrates how to do
this.  Perhaps this would be useful to you.

The other alternative is to simply use the OSG's native osgWidget NodeKit.

Robert.

On 7 January 2017 at 12:15, Denis Colesnicov  wrote:
> Hi Robert,
>
> Implementation librocket, which are published them in order. Problem is only 
> in the GUI display is on the node that rotates around the axis XYZ. Myself 
> but needs to appear as a 2D GUI, something like over the base OSG viewport. I 
> should if you would like to display scores and other information in the game, 
> so I do not want the information to be rotated in any direction but to always 
> shows at front. Of course this applies also to menus, settings, etc. ... 
> OSG'm not so good, I learn, so do not know how do I do this. I tried to add 
> another camera and to hang it on the GUI but I failed. It is surprisingly 
> interesting that any other GUI has a problem with that it is not possible, or 
> is it difficult to implement 3D as a way librocket again not possible to 
> implement a 2D? Due to poor English and lack of tutorial and guidance in my 
> language, I do not fail. Should you ever been so good and tried to advise how 
> to do it, it would be cool.
>
> Thank you!
>
> Cheers,
> Denis
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69914#69914
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-07 Thread Denis Colesnicov
Hi Robert,

Implementation librocket, which are published them in order. Problem is only in 
the GUI display is on the node that rotates around the axis XYZ. Myself but 
needs to appear as a 2D GUI, something like over the base OSG viewport. I 
should if you would like to display scores and other information in the game, 
so I do not want the information to be rotated in any direction but to always 
shows at front. Of course this applies also to menus, settings, etc. ... OSG'm 
not so good, I learn, so do not know how do I do this. I tried to add another 
camera and to hang it on the GUI but I failed. It is surprisingly interesting 
that any other GUI has a problem with that it is not possible, or is it 
difficult to implement 3D as a way librocket again not possible to implement a 
2D? Due to poor English and lack of tutorial and guidance in my language, I do 
not fail. Should you ever been so good and tried to advise how to do it, it 
would be cool.

Thank you!

Cheers,
Denis

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69914#69914





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-07 Thread Robert Osfield
On 7 January 2017 at 08:10, Denis Colesnicov  wrote:
> I am sorry. Those rights, I need advice. I do not know how much English use 
> Translate. I tried librocket implement the OSG but it did not like it. What 
> you have here 3D GUI. I would like to but needed the implementation to 2D. I 
> was able to implement 2D + ImGui OSG, SFGUI + OSG, MyGUI + OSG but I wanted 
> to try librocket. You would not know how you ever 2D + librocket OSG? Thank 
> you

I can't personally help with librocket as I've never used it. Perhaps
others can contribute their experience or suggestions for
alternatives.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-07 Thread Denis Colesnicov
Hi,

I am sorry. Those rights, I need advice. I do not know how much English use 
Translate. I tried librocket implement the OSG but it did not like it. What you 
have here 3D GUI. I would like to but needed the implementation to 2D. I was 
able to implement 2D + ImGui OSG, SFGUI + OSG, MyGUI + OSG but I wanted to try 
librocket. You would not know how you ever 2D + librocket OSG? Thank you

Thank you!

Cheers,
Denis

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69910#69910





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-06 Thread Denis Colesnicov
Hi,

robertosfield. Nothing else. I will use ImGui

Thank you!

Cheers,
Denis

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69909#69909





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2017-01-05 Thread Robert Osfield
On 1 January 2017 at 00:43, Denis Colesnicov  wrote:
> Its no works guys, its not works :-/

You added the above useless statement to a 5 year old long dead thread
in the forum.  Are you hoping for a reply?  Are you just trolling?

If you want help with an issue the first thing you need to do is craft
a post that contains actual useful information so that others can
understand what problem you have.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2016-12-31 Thread Denis Colesnicov
Hi,

Its no works guys, its not works :-/

Thank you!

Cheers,
Denis

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69820#69820





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2012-04-10 Thread David Wilson
Hi Martin,

I tried adding a few different controls types to the demo.rml file - checkbox, 
radio button, select list, and button.
Button did work OK, although the text on the button would appear and disappear 
as I hovered over it.
Radio buttons, select, and checkboxes would not render at all however.

Cheers,
David

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46961#46961





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2012-04-08 Thread David Wilson
Hi Martin,

I just tried out your sample. This is exactly what I'm looking for, for a game 
I'm working on. Looks super slick.

One thing I did have to change before I could compile the sample - in 
CMakeLists.txt, I had to change:
SET(USE_OSG_GA   0)
to
SET(USE_OSG_GA   1)

(I got the latest version of the sample from the SVN trunk.)

Thank you!

Cheers,
David

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46925#46925





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2012-03-27 Thread Kim Bale
This looks really interesting, I shall check it out.

Kim.

On 27 March 2012 05:44, Martin Scheffler osgfo...@tevs.eu wrote:

 Hi,

 I can't read that last comment (not approved), but whatever the question:
 I am still improving osgLibRocket, subversion address:

 https://dtentity.googlecode.com/svn/trunk/source/osgLibRocket

 Recent improvements:

 * No longer re-adding osg geometry every frame, instead
 increasing/decreasing reference count on geometry, only removing geometry
 when not referenced during the frame
 * static compiling now possible
 * No longer holding geometries in a std::map for storage, instead using
 libRocket handles to hold geometry
 * Experimental: Use a shader to do screen transformation of libRocket
 geometries. No real performance gain, also scissoring does not work yet.
 Commented out in RenderInterface.cpp
 * Integration with dtEntity system: Use JavaScript in libRocket RML files;
 use libRocket elements as HUDs over osg scene elements to attach text,
 energy bars etc


 Thank you!

 Cheers,
 Martin

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=46604#46604





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2012-03-26 Thread Martin Scheffler
Hi,

I can't read that last comment (not approved), but whatever the question:
I am still improving osgLibRocket, subversion address:

https://dtentity.googlecode.com/svn/trunk/source/osgLibRocket

Recent improvements:

* No longer re-adding osg geometry every frame, instead increasing/decreasing 
reference count on geometry, only removing geometry when not referenced during 
the frame
* static compiling now possible
* No longer holding geometries in a std::map for storage, instead using 
libRocket handles to hold geometry
* Experimental: Use a shader to do screen transformation of libRocket 
geometries. No real performance gain, also scissoring does not work yet. 
Commented out in RenderInterface.cpp
* Integration with dtEntity system: Use JavaScript in libRocket RML files; use 
libRocket elements as HUDs over osg scene elements to attach text, energy bars 
etc


Thank you!

Cheers,
Martin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46604#46604





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2011-10-06 Thread Martin Scheffler
Some improvements to osgLibRocket:
* Should now work cleanly in non-singlethread mode
* scissor tests now work, widget contents is now correctly hidden
* lots of small stuff

Known issues:
* When starting OSG in fullscreen mode then fullscreen gui does not appear. 
Somehow the initial screen size is not correctly given by OSG.
* Demo crashes on shutdown on linux, it seems I don't delete stuff in the 
correct order.

To start demo: 

./sample-drag --assetsPath path-to-librocket-assets-folder

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43229#43229





osgLibRocket.tar.gz
Description: GNU Zip compressed data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2011-08-28 Thread Jeremy Moles
On Sat, 2011-08-27 at 07:09 +0200, Martin Scheffler wrote:
 Hi Jeremy,
 
 I hope I haven't discouraged you from continuing development on osgWidget! A 
 native osg gui would have a lot of advantages over an external library. The 
 main reason I did not consider osg widget was the lack of documentation, so 
 maybe you can invest some time in that...

It won't at all. I just need to find the time, or at least the funding
so I can MAKE time. :)

The next version will be much better, as I've learned exponentially
since then...

 About the missing CMake variables: Are you using the advanced mode in 
 cmake-gui? The libRocket variables are marked as advanced, I have not yet hd 
 time to find out how to mark them as non-advanced.

Whoops. Got it...

 Cheers,
 Martin
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=42272#42272
 
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2011-08-26 Thread Jeremy Moles
On Fri, 2011-08-26 at 06:38 +0200, Martin Scheffler wrote:
 Hi all,
 
 On a long train ride yesterday I had the chance to work on my osg 
 implementation of a libRocket interface. You can download the code from the 
 attachment.
 
 
 
 libRocket is a nice little GUI library that seems to be well thought through 
 and cleanly coded. There is an html-like format for writing GUIs. I have not 
 yet fully explored the library, but now that I can use it in OSG I surely 
 will.
 
 What it can do at this point:
 * Create fullscreen GUIs
 * Create in-scene GUIs
 * Mouse and keyboard events are transformed to GUI coordinates and forwarded 
 to libRocket system
 
 That's all, and I think that is all that is needed.
 I don't think I will wrap any other libRocket functionality as it is all 
 accessible.
 
 The included example shows two GUIs. One is full screen, the other is 
 in-scene and can be rotated with the default osgViewer mouse manipulator.
 
 If anyone is interested in this I can put it on source control somewhere. 
 Please give me feedback on what is missing or what can be improved!

Having made osgWidget all those years ago it really makes me sad when I
see stuff like this, but the bottom line is osgWidget simply isn't good
enough. I've wanted to, for a long, long, time, go back and make it
better. :)

HOWEVER, having said that, this is actually a great little library. Not
bad at all, the design seems very solid! I think if you figure out the
issues with cleaning up, it could become quite popular in the OSG
community.

BTW: I can't actually get it to compile yet (though I can run the Rocket
examples just fine); CMake won't find/define LIBROCKET_* variables...

 Cheers,
 Martin
 [/img]
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=42250#42250
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2011-08-26 Thread Farshid Lashkari
Hi Martin,

This sounds very interesting! I've always wanted to be able to create
interfaces for my application using HTML/CSS. I'm definitely going to have a
look at this.

Thanks,
Farshid

On Thu, Aug 25, 2011 at 9:38 PM, Martin Scheffler osgfo...@tevs.eu wrote:

 Hi all,

 On a long train ride yesterday I had the chance to work on my osg
 implementation of a libRocket interface. You can download the code from the
 attachment.



 libRocket is a nice little GUI library that seems to be well thought
 through and cleanly coded. There is an html-like format for writing GUIs. I
 have not yet fully explored the library, but now that I can use it in OSG I
 surely will.

 What it can do at this point:
 * Create fullscreen GUIs
 * Create in-scene GUIs
 * Mouse and keyboard events are transformed to GUI coordinates and
 forwarded to libRocket system

 That's all, and I think that is all that is needed.
 I don't think I will wrap any other libRocket functionality as it is all
 accessible.

 The included example shows two GUIs. One is full screen, the other is
 in-scene and can be rotated with the default osgViewer mouse manipulator.

 If anyone is interested in this I can put it on source control somewhere.
 Please give me feedback on what is missing or what can be improved!

 Cheers,
 Martin
 [/img]

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=42250#42250




 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I made the libRocket GUI library usable with OSG

2011-08-26 Thread Martin Scheffler
Hi Jeremy,

I hope I haven't discouraged you from continuing development on osgWidget! A 
native osg gui would have a lot of advantages over an external library. The 
main reason I did not consider osg widget was the lack of documentation, so 
maybe you can invest some time in that...

About the missing CMake variables: Are you using the advanced mode in 
cmake-gui? The libRocket variables are marked as advanced, I have not yet hd 
time to find out how to mark them as non-advanced.

Cheers,
Martin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42272#42272





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org