Re: [osg-users] You have three guess...

2008-11-19 Thread Jean-Sébastien Guay

Hi Robert,


I have just written a CmakeModules/FindXUL.cmake script and converted
the osgbrowser example across to use instead of relying upon
pkg-config.  I have also attempted a clean up of the platform specific
parts to the build and the source code so fingers crossed osgbrowser
should be in a much better state for getting it running on Windows and
OSX.  It may still require work, but at least we should be heading in
the right direction.


OK, great. I've seen the settings in CMake and though I haven't tested 
them, it's in a better shape to get working on Windows now (for those 
who don't want to go the pkg-config route).


One question, out of curiosity, does the new script use pkg-config if 
available? It's convenient on Linux I would think, to fill out a bunch 
of settings in one fell swoop...


J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-19 Thread Robert Osfield
Hi J-S,

On Wed, Nov 19, 2008 at 7:00 PM, Jean-Sébastien Guay
[EMAIL PROTECTED] wrote:
 One question, out of curiosity, does the new script use pkg-config if
 available? It's convenient on Linux I would think, to fill out a bunch of
 settings in one fell swoop...

It works the same on all platforms, not using pkg-config at all.
It'd would actually be more work to write FindXUL.cmake with an
optional pkg-config section.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Alberto Luaces
El Lunes 17 Noviembre 2008ES 18:43:20 Robert Osfield escribió:
 These are all external dependencies that various existing plugins and
 the new apps like osgbrowser and osgpdf require.  You'll need to
 download and install these.  If you use a linux then there is a good
 chance that these dependencies are just a click away.

Ooops. I had already installed libpoppler-dev but it seems that 
libpoppler-glib-dev is also necessary. I can compile osgpdf now.

However, even I have xulrunner-dev installed, I haven't the rest of the 
libraries

--   package 'xulrunner-xpcom' not found
--   package 'xulrunner-plugin' not found
--   package 'xulrunner-js' not found

I'm going to keep searching and post here the required packages, in case it 
helps someone.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi Adrian,

On Tue, Nov 18, 2008 at 6:55 AM, Adrian Egli OpenSceneGraph (3D)
[EMAIL PROTECTED] wrote:
 is there a windows library, manual ,etc  to get osgpdf and osgbrowser
 running ?

My experiments with vnc, pdf and ubrowser are just that, experiments,
very much bleeding edge.  There isn't any docs on all dependencies
other than the source code/CMakeLists.txt files themselves.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi Alberto,

On Tue, Nov 18, 2008 at 8:38 AM, Alberto Luaces [EMAIL PROTECTED] wrote:
 Ooops. I had already installed libpoppler-dev but it seems that
 libpoppler-glib-dev is also necessary. I can compile osgpdf now.

I believe libpoppler-glib-dev is required to get the cario support.
I am still feeling my way on this.  The main source of learning for
osgpdf was Jeremey Moles' pdf integration in osgCario.

 However, even I have xulrunner-dev installed, I haven't the rest of the
 libraries

 --   package 'xulrunner-xpcom' not found
 --   package 'xulrunner-plugin' not found
 --   package 'xulrunner-js' not found

I installed libxul-dev to get xul-runner 1.8.x and its dev files.

There is also a 1.9.x version of xulrunner but this isn't compatible
with the ubrowser code.  The engineers behind ubrowser are
concentrating on webkit route rather than porting to 1.9.x.

Longer term it looks like webkit might be the strongest contender for
working with embedded browsers, there is cutter and also some work on
google's webkit version, but both aren't based on standard versions of
webkit that you can grab from repositories so it's rather too bleeding
edge for wide roll out.

Robert.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Alberto Luaces
Hi Robert,

El Martes 18 Noviembre 2008ES 10:18:52 Robert Osfield escribió:
 There is also a 1.9.x version of xulrunner but this isn't compatible
 with the ubrowser code.  The engineers behind ubrowser are
 concentrating on webkit route rather than porting to 1.9.x.

 Longer term it looks like webkit might be the strongest contender for
 working with embedded browsers, there is cutter and also some work on
 google's webkit version, but both aren't based on standard versions of
 webkit that you can grab from repositories so it's rather too bleeding
 edge for wide roll out.

Yes, as you say you have libxul-dev on Kubuntu but here on Debian it is 
deprecated and now it only ships with xulrunner 1.9. Maybe I could see if 
osgbrowser can be modified to use webkit...

Thanks,

Alberto


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


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi Alberto,

On Tue, Nov 18, 2008 at 10:53 AM, Alberto Luaces [EMAIL PROTECTED] wrote:
 Yes, as you say you have libxul-dev on Kubuntu but here on Debian it is
 deprecated and now it only ships with xulrunner 1.9. Maybe I could see if
 osgbrowser can be modified to use webkit...

Kubuntu 7.10 and 8.10 do have libxul, which is composed of xul-runner
1.8.x, on them so I was able to get both working with osgbrowser with
just a click.

I'm aware aware that xulrunner-1.9 is the future and 1.8.x support is
soon to be dropped, but there isn't any embedded code based on
xulrunner-1.9 that I've come across.  The example I've written is a
prototype that gets things working, albeit crudely with exisiting
tools.

Using webkit such as via cutter or awesomium
(http://wordpress.com/tag/awesomium/ that uses google's version of
webkit) don't use standard versions of webkit.   Getting an embedded
browser that works with standard webkit's that we can pull down from
existing repositories looks a non starter.

Another six months it may well be a very different story.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi All,

I have just got a threaded version of osgbrowser working, and this is
now checked in svn-trunk.  gecko/libxul/xunrunner and ubrowser are
both single threaded, so getting this to worked involved quite a bit
of careful management of when and where the browser backend is
implemented, and how the main OSG threads feed events into the browser
threads.

While a bit convoluted it is now functioning well, with the OSG
rendering at a solid 60Hz, and the web pages updating automatically in
a background thread.  I've just tried osgbrowser with six separate
browser quads up and it easily maintains a solid 60Hz on my machine -
but... the browser rendering itself is rather slow...  as right now
the rendering is done in a rather brute for ways with each browser
image being updated in continuous succession.

Next step for me now is look at doing the browser updates more lazily,
although this is made more awkward without patching libxul/xul-runner.
 After this I'll be looking at cleaning the code up w.r.t portability.
 Then it'll be a case of reviewing the code with a view to create a
base osgWidget::Broswer class that provides the interface for
implementations of Browsers that will be done as plugins.   I don't
plan to get too elaborate though, start small and let the community
take the code where they need it to go - for my own needs opening up a
browser quad with a give URL, and making it interactive is enough for
me.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Jean-Sébastien Guay

Hi Robert,


My experiments with vnc, pdf and ubrowser are just that, experiments,
very much bleeding edge.  There isn't any docs on all dependencies
other than the source code/CMakeLists.txt files themselves.


Also, the packages are all found using pkg-config in the CMake files 
right now, which is not the best way of finding them on Windows... If 
you have pkg-config from a gtk install on your path it might find it, 
but then you need the packages themselves in the same gtk install path, 
which is not a given on Windows. And you also don't have any options to 
set a paths manually, so it either finds them or not.


Perhaps we could make a macro which would use pkg-config, but if the 
packages are not found give you some parameters to be able to set the 
paths manually. This would be useful in the future too I guess, since we 
now have at least two optional examples which use pkg-config to find 
their dependencies. There will likely be more in the future.


J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-18 Thread Jean-Sébastien Guay

Hi Robert,


I will probably be writing a FindXUL.cmake macro from CMakeModules as
even the pkg-config usage is not quite sufficient - have a look at all
the extra paths of xul-runner headers I have to manually include.


OK, that's fine for XUL, but for cairo and poppler too it would be nice 
to have some parameters for manually setting the paths.


My comment was more about the general idea of using pkg-config where 
it's a system-wide supported mechanism, but it's not on Windows, so you 
can't assume that it will work. We need some manual/alternative ways too.


Thanks,

J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi JS,

On Tue, Nov 18, 2008 at 2:00 PM, Jean-Sébastien Guay
[EMAIL PROTECTED] wrote:
 Also, the packages are all found using pkg-config in the CMake files right
 now, which is not the best way of finding them on Windows... If you have
 pkg-config from a gtk install on your path it might find it, but then you
 need the packages themselves in the same gtk install path, which is not a
 given on Windows. And you also don't have any options to set a paths
 manually, so it either finds them or not.

I will probably be writing a FindXUL.cmake macro from CMakeModules as
even the pkg-config usage is not quite sufficient - have a look at all
the extra paths of xul-runner headers I have to manually include.
xul-runner is an odd beats..  lots of separate directories, but no
paths within them to find the headers from other sibling components.
araargghgghg

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi J-S,

On Tue, Nov 18, 2008 at 2:24 PM, Jean-Sébastien Guay
[EMAIL PROTECTED] wrote:
 OK, that's fine for XUL, but for cairo and poppler too it would be nice to
 have some parameters for manually setting the paths.

 My comment was more about the general idea of using pkg-config where it's a
 system-wide supported mechanism, but it's not on Windows, so you can't
 assume that it will work. We need some manual/alternative ways too.

I've just used the pkg-config functionality to get things up and
running quickly.  I have no objection to us creating find macro's like
we have for other dependencies.  The pkg-config functionality in CMake
makes it dead easy to use but it's rather too much of black box
solution.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Jean-Sébastien Guay

Hi Robert,


I've just used the pkg-config functionality to get things up and
running quickly.  I have no objection to us creating find macro's like
we have for other dependencies.  The pkg-config functionality in CMake
makes it dead easy to use but it's rather too much of black box
solution.


I agree, and I totally understand about getting a first iteration 
running and then improving it. I just wanted to make sure you were aware 
that it's not the best way and we'd probably need to work on it a bit 
before this stuff is rolled into osgWidget.


Thanks,

J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi JS,

On Tue, Nov 18, 2008 at 2:49 PM, Jean-Sébastien Guay
[EMAIL PROTECTED] wrote:
 I agree, and I totally understand about getting a first iteration running
 and then improving it. I just wanted to make sure you were aware that it's
 not the best way and we'd probably need to work on it a bit before this
 stuff is rolled into osgWidget.

Just for clarity, I don't plan on making any direct poppler/xul
dependencies in osgWidget.  My plan is to provide interfaces in
osgWidget that plugins implement, similar in the way I've kept the vnc
functionality entirely wrapped up in its own plugin.

On the browser front I'm expecting multiple implementations to exist -
a first cut that uses the current libxul/llmozlib functionality, and
later there will be one or two webkit based ones.  Eventually the
backend implementations will settle down and we'll be able to cut the
implementations down to one that is known to work well.  Right now
embedded browser functionality is very bleeding edge, lots of
customized builds of webkit and libxul/xul-runner abound in embedded
browser attempts.

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


Re: [osg-users] You have three guess...

2008-11-18 Thread Jean-Sébastien Guay

Hi Robert,


Just for clarity, I don't plan on making any direct poppler/xul
dependencies in osgWidget.  My plan is to provide interfaces in
osgWidget that plugins implement, similar in the way I've kept the vnc
functionality entirely wrapped up in its own plugin.


OK, thanks for clarifying, I was under the impression that this would 
get pushed into osgWidget directly.


J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-18 Thread Robert Osfield
Hi All,

I have just written a CmakeModules/FindXUL.cmake script and converted
the osgbrowser example across to use instead of relying upon
pkg-config.  I have also attempted a clean up of the platform specific
parts to the build and the source code so fingers crossed osgbrowser
should be in a much better state for getting it running on Windows and
OSX.  It may still require work, but at least we should be heading in
the right direction.

To get osgbrowser working you'll need to install libxul/xul-runner
1.8.x on your system in a place that the CMake is likely to pick up on
it.  Let me know how you get on/what mods need to be made to get
things working on your platform.

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Vincent Bourdier
Hmm, just some screenshot as texture on two quads ?  Seems too simple...

2008/11/17 Robert Osfield [EMAIL PROTECTED]

 For a bit of fun see if you can explain the attached screenshot...

 If if you get that right your next challange is explain exactly how I
 went about writing this email...

 Robert

 ___
 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] You have three guess...

2008-11-17 Thread Yanling Liu
Hi,

1. OSG based 3D screen saver
2. Framework for OSG based 3D desktop/browser
3. Two quads with texture mapping

Have fun...:-)

On Mon, Nov 17, 2008 at 11:08 AM, Robert Osfield
[EMAIL PROTECTED]wrote:

 For a bit of fun see if you can explain the attached screenshot...

 If if you get that right your next challange is explain exactly how I
 went about writing this email...

 Robert

 ___
 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] You have three guess...

2008-11-17 Thread Alberto Luaces
El Lunes 17 Noviembre 2008ES 17:08:47 Robert Osfield escribió:
 For a bit of fun see if you can explain the attached screenshot...

 If if you get that right your next challange is explain exactly how I
 went about writing this email...

 Robert

That explains the references to mozilla libs... Did you write the email from 
the application ? WOW!!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-17 Thread Tomlinson, Gordon
1) OSG announces challenge to Windows Exploder,Firefox Et-el, with
announcement of the new OSGBrowz web browsers development node kit

2) I thought it was '2 Turtle Doves' not 2 pdf documents in OSG

3) Was that a bottle of 12 year or 18 year single malt ;)


Gordon

__
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival 
- Master Tambo Tetsura

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, November 17, 2008 11:09 AM
To: OpenSceneGraph Users
Subject: [osg-users] You have three guess...

For a bit of fun see if you can explain the attached screenshot...

If if you get that right your next challange is explain exactly how I
went about writing this email...

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Ed
On the left is a screenshot of the OSG website.  On the right is a 
screenshot of the OpenGL website.  Both appear to be texture mapped to a 
quad, which are tilted back a bit from vertical.  the background is 
blue...well blue-ish, somewhat purple.  Sorry...that's the best I can do 
until I finish my first cup of coffee... :)  Seriously, I don't know, 
and I don't keep up to much with what's going on in the OSG development 
circles, but I must say, I am curious.


Ed

Robert Osfield wrote:

For a bit of fun see if you can explain the attached screenshot...

If if you get that right your next challange is explain exactly how I
went about writing this email...

Robert
  



___
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] You have three guess...

2008-11-17 Thread Joakim Simonsson


1. Could it be the VNC client plugin?

On Mon, 17 Nov 2008 17:08:47 +0100, Robert Osfield  
[EMAIL PROTECTED] wrote:



For a bit of fun see if you can explain the attached screenshot...

If if you get that right your next challange is explain exactly how I
went about writing this email...

Robert




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


Re: [osg-users] You have three guess...

2008-11-17 Thread Robert Osfield
Wow, didn't long for guess that were right on the money ;-)

The screenshot was from me running a new OSG example checked in
svn/trunk, the command line was:

  osgbrower openscenegraph.org opengl.org

And as guessed the actual email I sent it from was :

  osgbrowser gmail.com

The osgbrower code is based on UBrowser/llmozlib2 which is a gecko
based embedded renderer that uses xul-runner 1.8.x.  I've opted for a
less efficient browser but using an unmodified version of xul-runner,
there is a more efficient version of llmozlib2 but this requires
modifications of xul-runner.

The example right now only works under Linux, but with a few
improvements to CMakeLists.txt and the source it should also work
under Windows and OSX.

My attempt earlier today to get the html rendering done in a
background thread failed, so the currently version very crudely
updates renders imagery in the main thread, and also re-renders on
every frame as there is no mechanism for lazily updating without
modifying xul-runner.  The fact that the rendering happens in main
thread is severly gating performance, so I'm typically seeing around
10fps, which is fine for an interactive browser but not in any way
acceptable for a 3D graphics application.

So my next task is get the rendering down in a background thread, but
it might require a bit of contortion as gecko and llmozlib are not not
thread safe, so I'll have to do all calls to it from a single thread,
there are also a few oddities like xul-runner under Linux being
dependant on a dummy gtk window and events that you must create to get
xul-runner working.  Basically it's a bit hacky...

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Alberto Luaces
El Lunes 17 Noviembre 2008ES 17:18:23 Alberto Luaces escribió:
 El Lunes 17 Noviembre 2008ES 17:08:47 Robert Osfield escribió:
  For a bit of fun see if you can explain the attached screenshot...
 
  If if you get that right your next challange is explain exactly how I
  went about writing this email...
 
  Robert

 That explains the references to mozilla libs... Did you write the email
 from the application ? WOW!!

By the way, I can't compile the recent additions to the library (PDF support, 
the browser, etc.) Seems that my CMake lacks of the necessary modules for 
finding the libraries:

$ cmake .
-- checking for module 'librsvg-2.0'
--   package 'librsvg-2.0' not found
-- checking for module 'poppler-glib'
--   package 'poppler-glib' not found
-- checking for 
modules 
'xulrunner-xpcom;xulrunner-nspr;xulrunner-nss;xulrunner-plugin;xulrunner-js'
--   package 'xulrunner-xpcom' not found
--   package 'xulrunner-plugin' not found
--   package 'xulrunner-js' not found

I couldn't find those modules in my system's CMake or the CVS version of 
CMake. Maybe they have to be checked on the repository?

Thanks,

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Robert Osfield
Hi Alberto,

On Mon, Nov 17, 2008 at 5:25 PM, Alberto Luaces [EMAIL PROTECTED] wrote:
 By the way, I can't compile the recent additions to the library (PDF support,
 the browser, etc.) Seems that my CMake lacks of the necessary modules for
 finding the libraries:

 $ cmake .
 -- checking for module 'librsvg-2.0'
 --   package 'librsvg-2.0' not found
 -- checking for module 'poppler-glib'
 --   package 'poppler-glib' not found
 -- checking for
 modules 
 'xulrunner-xpcom;xulrunner-nspr;xulrunner-nss;xulrunner-plugin;xulrunner-js'
 --   package 'xulrunner-xpcom' not found
 --   package 'xulrunner-plugin' not found
 --   package 'xulrunner-js' not found

These are all external dependencies that various existing plugins and
the new apps like osgbrowser and osgpdf require.  You'll need to
download and install these.  If you use a linux then there is a good
chance that these dependencies are just a click away.

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Ed
I may sound ignorant by asking this, but it won't be the first time, 
so... What are the uses of this capability? 


Ed


Robert Osfield wrote:

Wow, didn't long for guess that were right on the money ;-)

The screenshot was from me running a new OSG example checked in
svn/trunk, the command line was:

  osgbrower openscenegraph.org opengl.org

And as guessed the actual email I sent it from was :

  osgbrowser gmail.com

The osgbrower code is based on UBrowser/llmozlib2 which is a gecko
based embedded renderer that uses xul-runner 1.8.x.  I've opted for a
less efficient browser but using an unmodified version of xul-runner,
there is a more efficient version of llmozlib2 but this requires
modifications of xul-runner.

The example right now only works under Linux, but with a few
improvements to CMakeLists.txt and the source it should also work
under Windows and OSX.

My attempt earlier today to get the html rendering done in a
background thread failed, so the currently version very crudely
updates renders imagery in the main thread, and also re-renders on
every frame as there is no mechanism for lazily updating without
modifying xul-runner.  The fact that the rendering happens in main
thread is severly gating performance, so I'm typically seeing around
10fps, which is fine for an interactive browser but not in any way
acceptable for a 3D graphics application.

So my next task is get the rendering down in a background thread, but
it might require a bit of contortion as gecko and llmozlib are not not
thread safe, so I'll have to do all calls to it from a single thread,
there are also a few oddities like xul-runner under Linux being
dependant on a dummy gtk window and events that you must create to get
xul-runner working.  Basically it's a bit hacky...

Robert.
___
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] You have three guess...

2008-11-17 Thread Yanling Liu
That's my question too. Such capabilities are quite cool but seems far away
from the name OpenSceneGraph... Are we going to see OSG based operation
system eventually?

On Mon, Nov 17, 2008 at 1:03 PM, Ed [EMAIL PROTECTED] wrote:

 I may sound ignorant by asking this, but it won't be the first time, so...
 What are the uses of this capability?
 Ed



 Robert Osfield wrote:

 Wow, didn't long for guess that were right on the money ;-)

 The screenshot was from me running a new OSG example checked in
 svn/trunk, the command line was:

  osgbrower openscenegraph.org opengl.org

 And as guessed the actual email I sent it from was :

  osgbrowser gmail.com

 The osgbrower code is based on UBrowser/llmozlib2 which is a gecko
 based embedded renderer that uses xul-runner 1.8.x.  I've opted for a
 less efficient browser but using an unmodified version of xul-runner,
 there is a more efficient version of llmozlib2 but this requires
 modifications of xul-runner.

 The example right now only works under Linux, but with a few
 improvements to CMakeLists.txt and the source it should also work
 under Windows and OSX.

 My attempt earlier today to get the html rendering done in a
 background thread failed, so the currently version very crudely
 updates renders imagery in the main thread, and also re-renders on
 every frame as there is no mechanism for lazily updating without
 modifying xul-runner.  The fact that the rendering happens in main
 thread is severly gating performance, so I'm typically seeing around
 10fps, which is fine for an interactive browser but not in any way
 acceptable for a 3D graphics application.

 So my next task is get the rendering down in a background thread, but
 it might require a bit of contortion as gecko and llmozlib are not not
 thread safe, so I'll have to do all calls to it from a single thread,
 there are also a few oddities like xul-runner under Linux being
 dependant on a dummy gtk window and events that you must create to get
 xul-runner working.  Basically it's a bit hacky...

 Robert.
 ___
 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

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


Re: [osg-users] You have three guess...

2008-11-17 Thread KSpam
On Monday 17 November 2008 11:03:05 Ed wrote:
 I may sound ignorant by asking this, but it won't be the first time,
 so... What are the uses of this capability?

 Ed

Perhaps this would be a convenient way of providing online help to users of a 
game?  Maybe a way to generate ad revenue from a game?

This may not be something that everyone rushes to include in their OSG 
application, but I have little doubt that someone will do something creative 
with this ... probably something I would never imagine until I see it and 
say Why didn't I think of that? :-)

It's another tool in the tool belt that is OSG!

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Judd Tracy
If you could hook into the javascript engine then you could use it for 
user interface development.


Judd Tracy
Assistant in Simulation
Institute for Simulation and Training
University of Central Florida
Phone: (407) 384-5507
[EMAIL PROTECTED]



KSpam wrote:

On Monday 17 November 2008 11:03:05 Ed wrote:
  

I may sound ignorant by asking this, but it won't be the first time,
so... What are the uses of this capability?

Ed



Perhaps this would be a convenient way of providing online help to users of a
game?  Maybe a way to generate ad revenue from a game?

This may not be something that everyone rushes to include in their OSG
application, but I have little doubt that someone will do something creative
with this ... probably something I would never imagine until I see it and
say Why didn't I think of that? :-)

It's another tool in the tool belt that is OSG!

Justin
___
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] You have three guess...

2008-11-17 Thread Robert Osfield
Hi Ed,

On Mon, Nov 17, 2008 at 6:03 PM, Ed [EMAIL PROTECTED] wrote:
 I may sound ignorant by asking this, but it won't be the first time, so...
 What are the uses of this capability?

You could use it from help to leverage internet based services - such
as googlemaps.  The browser widget needn't look at browser at all -
it'll just be a widget that just happens to render html and associated
services.

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Robert Osfield
Hi Judd,

On Mon, Nov 17, 2008 at 6:35 PM, Judd Tracy [EMAIL PROTECTED] wrote:
 If you could hook into the javascript engine then you could use it for user
 interface development.

Ubrowser does have support for javascript, and given the number of
websites that render just fine (gmail included) it does look like it's
already working.  How you'd go about creating user interface with it
is something I comment on as I've never tried this type of thing, it's
also my motivation for developer this support in this instance -
others are welcome to dive in and expand it's functionality.

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


Re: [osg-users] You have three guess...

2008-11-17 Thread Cedric Pinson

Hi Robert,

Nice work, it sound that it become possible to make and browse web in 
opengl. Interesting for

game :)

Cheers,
Cedric

Robert Osfield wrote:

Hi Ed,

On Mon, Nov 17, 2008 at 6:03 PM, Ed [EMAIL PROTECTED] wrote:
  

I may sound ignorant by asking this, but it won't be the first time, so...
What are the uses of this capability?



You could use it from help to leverage internet based services - such
as googlemaps.  The browser widget needn't look at browser at all -
it'll just be a widget that just happens to render html and associated
services.

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


--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


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


Re: [osg-users] You have three guess...

2008-11-17 Thread Sukender
Le Mon, 17 Nov 2008 20:04:52 +0100, Robert Osfield [EMAIL PROTECTED] a écrit:

 Hi Ed,

 On Mon, Nov 17, 2008 at 6:03 PM, Ed [EMAIL PROTECTED] wrote:
 I may sound ignorant by asking this, but it won't be the first time, so...
 What are the uses of this capability?

 You could use it from help to leverage internet based services - such
 as googlemaps.  The browser widget needn't look at browser at all -
 it'll just be a widget that just happens to render html and associated
 services.

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



Very interesting. I never thought about such an idea. That's really great; it 
will now be easy to:
- Add content to an app by simply updating a web page.
- Give the user the ability to download the newest version of your app or 
plugins directly in it.
- Use goo... a search engine to find clues/help in a reflexion game
- See groups/teams/players, chat with them, see online scores...
- and much more...

Really, really exciting!
Thanks for you work!

-- 
Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] You have three guess...

2008-11-17 Thread Adrian Egli OpenSceneGraph (3D)
Hi Robert,

fantastic what you are working on all the long time, what would come when we
have winter nights 

is there a windows library, manual ,etc  to get osgpdf and osgbrowser
running ?

adrian

2008/11/17 Sukender [EMAIL PROTECTED]

 Le Mon, 17 Nov 2008 20:04:52 +0100, Robert Osfield 
 [EMAIL PROTECTED] a écrit:

  Hi Ed,
 
  On Mon, Nov 17, 2008 at 6:03 PM, Ed [EMAIL PROTECTED] wrote:
  I may sound ignorant by asking this, but it won't be the first time,
 so...
  What are the uses of this capability?
 
  You could use it from help to leverage internet based services - such
  as googlemaps.  The browser widget needn't look at browser at all -
  it'll just be a widget that just happens to render html and associated
  services.
 
  Robert.
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 Very interesting. I never thought about such an idea. That's really great;
 it will now be easy to:
 - Add content to an app by simply updating a web page.
 - Give the user the ability to download the newest version of your app or
 plugins directly in it.
 - Use goo... a search engine to find clues/help in a reflexion game
 - See groups/teams/players, chat with them, see online scores...
 - and much more...

 Really, really exciting!
 Thanks for you work!

 --
 Sukender
 PVLE - Lightweight cross-platform game engine -
 http://pvle.sourceforge.net/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 

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