OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

ImGui integration


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
Flogo
User


Joined: 08 Apr 2016
Posts: 26

PostPosted: Thu Nov 09, 2017 11:45 am    Post subject:
ImGui integration
Reply with quote

Hi team,

I integrated DearImGui into OpenSceneGraph.
I forked the Gist from Megaton. You can find my version here: https://gist.github.com/fulezi/d2442ca7626bf270226014501357042c.

Features:

    Integrated with the OpenGL fixed pipeline
    Works with ASCII char and special keys (Control, alt, Super, Shift, enter)
    Partial integration of the UTF-8 keyboard (you can type 'ç' but not 'ê', it will result as '^e')
    Referenced ImGuiCallBack


To Do:
    Mouse scroll
    (or not to do) Clipboard



Have a good day,
Florian[/url][/list]
Back to top
View user's profile Send private message
kornerr
Appreciator


Joined: 01 Oct 2013
Posts: 280

PostPosted: Thu Nov 09, 2017 8:23 pm    Post subject:
ImGui integration
Reply with quote

Hi. Nice work. How about non-FFP version?

On 9 November 2017 at 18:45, Florian GOLESTIN
<> wrote:
Quote:
Hi team,

I integrated DearImGui into OpenSceneGraph.
I forked the Gist from Megaton. You can find my version here: https://gist.github.com/fulezi/d2442ca7626bf270226014501357042c.

Features:

Integrated with the OpenGL fixed pipeline
Works with ASCII char and special keys (Control, alt, Super, Shift, enter)
Partial integration of the UTF-8 keyboard (you can type 'ç' but not 'ê', it will result as '^e')
Referenced ImGuiCallBack

To Do:
Mouse scroll
(or not to do) Clipboard


Have a good day,
Florian[/url][/list]

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




Attachments:
http://forum.openscenegraph.org//files/capture_dcran_de_2017_11_09_11_49_48_118.png





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
tianzjyh
Guest





PostPosted: Fri Nov 10, 2017 1:55 am    Post subject:
ImGui integration
Reply with quote

Great work!! Thanks.


--
Cheers, TianZJ

------------------
Post generated by Mail2Forum
Back to top
Flogo
User


Joined: 08 Apr 2016
Posts: 26

PostPosted: Wed Nov 22, 2017 3:57 pm    Post subject:
Reply with quote

Thanks !

Yes Shader version is "in the pipe" Smile
Florian
Back to top
View user's profile Send private message
Flogo
User


Joined: 08 Apr 2016
Posts: 26

PostPosted: Mon Dec 18, 2017 2:51 pm    Post subject:
Reply with quote

Hi Everyone,

I was thinking to integrate ImGUI with the non FPP version but I'm not sure how to do it.

Itself, ImGUI render the ui inside a vector of (vector of ) struct containing the triplet Vertex Position, UV coordinates and Color value. As it's and "immediate GU", It refresh and refill the buffers every frames.

Here, I see two solution:
- Non-OSG'ish: render the UI still using the GL function (glGen...) and shader
- OSG version using geometries (created and destructed each frame)

What would be the recommended solution to integrate such library?


Thank you!
Florian
Back to top
View user's profile Send private message
Riccardo Corsi
Guest





PostPosted: Wed Dec 20, 2017 1:52 pm    Post subject:
ImGui integration
Reply with quote

Hi Florian,


I have a working implementation with non-FFP, which I cannot disclose,
but I can give you some pointers:
- I suggest to go for the "osg version" that you mention, using native osg geometries, not to have conflict with GL state and rendering in all osg threading schemes
- you can either 
1) create and destroy geometries
2) reuse them (updating vertex arrays and primitives). 
In both method, make sure to manipulate the geometries only when it's safe, as in some threading models update and draw will overlap.
For instance take a look at the FrameSwitch node mentioned in these threads:
http://forum.openscenegraph.org/viewtopic.php?t=14849

http://forum.openscenegraph.org/viewtopic.php?t=16463



HTH,
Riccardo




On Mon, Dec 18, 2017 at 3:51 PM, Florian GOLESTIN < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Everyone,

I was thinking to integrate ImGUI with the non FPP version but I'm not sure how to do it.

Itself, ImGUI render the ui inside a vector of (vector of ) struct containing the triplet Vertex Position, UV coordinates and Color value. As it's and "immediate GU", It refresh and refill the buffers every frames.

Here, I see two solution:
 - Non-OSG'ish: render the UI still using the GL function (glGen...) and shader
 - OSG version using geometries (created and destructed each frame)

What would be the recommended solution to integrate such library?


Thank you!
Florian

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





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading problem, OpenVR integration Oneiros General 8 Wed Nov 02, 2016 4:59 pm View latest post
No new posts IMGUI wrapper... Raizel General 0 Wed Aug 03, 2016 4:23 pm View latest post
No new posts VR headset integration cbuchner1 General 7 Wed Mar 30, 2016 1:26 pm View latest post
No new posts mygui integration (for Wang Rui) eugustus General 27 Mon Nov 09, 2015 7:03 pm View latest post
No new posts Chromium Embedded Framework (CEF3) i... aquawicket General [3rdparty] 2 Fri Sep 18, 2015 8:03 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP