Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-05 Thread michael kapelko
I estimated it would take me about 2 months since I'm not good enough at OSG and CEGUI internals. But I may return to the issue later in 1 or 2 years when I expect to have a good understanding of both. 2014-07-04 21:54 GMT+07:00 Sergey Kurdakov sergey.fo...@gmail.com: Hi Michael, Do you

Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-05 Thread Sergey Kurdakov
Hi Michael. But I may return to the issue later in 1 or 2 years when I expect to have a good understanding of both. maybe someone will find this thread and will pick the task. but overall what I've seen does not look too difficult ( I'd like to start to experiment with it as native integration

[osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-04 Thread michael kapelko
Hi. I'm working on integrating CEGUI into OSG and I have successfully followed Wang Rui's example from his Cookbook: https://github.com/xarray/osgRecipes/tree/master/cookbook/chapter9/ch09_04 But there's an ugly part with CEGUI initialization: it happens in

Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-04 Thread Robert Osfield
Hi CEGUI, Unfortunately the design of CEGUI requires that your initialize it from a graphics thread so you are limited to a custom Drawable or a draw callback of some form. Robert. On 4 July 2014 14:07, michael kapelko korn...@gmail.com wrote: Hi. I'm working on integrating CEGUI into OSG

Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-04 Thread Sergey Kurdakov
Hi Michael, though I did not dig into code ( just spotted that there is native render for ogre ), but seems an approach like http://static.cegui.org.uk/docs/0.8.3/classCEGUI_1_1OgreRenderer.html can be of some use. That is - instead to render by CEGUI - render all things by osg itself ( see in

Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-04 Thread michael kapelko
I was thinking about OSG renderer module for CEGUI, but I'm not sure how to do it atm. Can you please elaborate (as much as possible) what you mean by here is need for the render class for osg though. Do you mean a module located in CEGUI or OSG? If the latter, what do I need to take into account?

Re: [osg-users] Where does RenderInfo come from which is passed to all Drawable::draw?

2014-07-04 Thread Sergey Kurdakov
Hi Michael, Do you mean a module located in CEGUI or OSG? module in CEGUI and calls there are made to osg My thought is this: osg is somewhat similar to ogre in many respects. So it is possible to take ogre renderer and to try to replace calls to ogre with similar calls to osg ( mostly the