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 

plugin v8 in version 3.3.1


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
namdt40
Newbie


Joined: 11 Jun 2012
Posts: 6

PostPosted: Fri Jan 30, 2015 1:18 am    Post subject:
plugin v8 in version 3.3.1
Reply with quote

Hi,
what is version v8 used in osg 3.3.1, i dont know
anyone can tell me.
because, im build plugin v8 with v8 newer 3.28 or 3.20 it error
1>------ Build started: Project: Plugins v8, Configuration: Debug Win32 ------
1> V8ScriptEngine.cpp
1>G:\Buildnew\OpenSceneGraph-3.3.1\src\osgPlugins\V8\V8ScriptEngine.cpp(55): error C2248: 'v8::Persistent<v8::Context>::operator =' : cannot access private member declared in class 'v8::Persistent<v8::Context>'
1> G:\V8_buildscript\v8\include\v8.h(766) : see declaration of 'v8::Persistent<v8::Context>::operator ='
1>G:\Buildnew\OpenSceneGraph-3.3.1\src\osgPlugins\V8\V8ScriptEngine.cpp(56): error C2660: 'v8::Persistent<T>::New' : function does not take 1 arguments
1> with
1> [
1> T=v8::ObjectTemplate
1> ]
1>G:\Buildnew\OpenSceneGraph-3.3.1\src\osgPlugins\V8\V8ScriptEngine.cpp(63): error C2664: 'v8::Context::Scope::Scope(const v8::Context::Scope &)' : cannot convert argument 1 from 'v8::Persistent<v8::Context>' to 'v8::Handle<v8::Context>'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
...

Thank you!

Cheers,
nguyen
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10852

PostPosted: Fri Jan 30, 2015 10:15 am    Post subject:
plugin v8 in version 3.3.1
Reply with quote

Hi Nguyen,


It's about 15 months since I wrote the experiment V8 and Python plugins.  This plugins were written as a initial test how easy it would be to support JavaScript and Python respectively - they simply link to the 3rd party library and run the script but there isn't any OSG scene graph integration.  I didn't take this work anything further as I concentrated on the Lua plugin as it was far easier to work with and integrate with the OSG scene graph. 


I haven't tried the V8 plugin recently, and have no plans to develop it further in the OSG-3.4 time frame so it's probably best for me to just remove or disable this plugin.  I don't recall the V8 version I originally compiled it with, but it would have been pulled in from Ubuntu repositories back in 2013.  Porting it to newer versions should be possible, but for 3.4 disabling it would be my preference.

Do you have a need for V8 support?


Robert.

Do you have a specific need.



On 30 January 2015 at 01:18, nguyen duy nam < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,
what is  version v8 used in osg 3.3.1, i dont know
anyone can tell me.
because, im build plugin v8 with v8 newer 3.28 or 3.20 it error
1>------ Build started: Project: Plugins v8, Configuration: Debug Win32 ------
1>  V8ScriptEngine.cpp
1>G:BuildnewOpenSceneGraph-3.3.1srcosgPluginsV8V8ScriptEngine.cpp(55): error C2248: 'v8::Persistent<v8::Context>::operator =' : cannot access private member declared in class 'v8::Persistent<v8::Context>'
1>          G:V8_buildscriptv8includev8.h(766) : see declaration of 'v8::Persistent<v8::Context>::operator ='
1>G:BuildnewOpenSceneGraph-3.3.1srcosgPluginsV8V8ScriptEngine.cpp(56): error C2660: 'v8::Persistent<T>::New' : function does not take 1 arguments
1>          with
1>          [
1>              T=v8::ObjectTemplate
1>          ]
1>G:BuildnewOpenSceneGraph-3.3.1srcosgPluginsV8V8ScriptEngine.cpp(63): error C2664: 'v8::Context::Scope::Scope(const v8::Context::Scope &)' : cannot convert argument 1 from 'v8::Persistent<v8::Context>' to 'v8::Handle<v8::Context>'
1>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
...

Thank you!

Cheers,
nguyen

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





_______________________________________________
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
View user's profile Send private message
namdt40
Newbie


Joined: 11 Jun 2012
Posts: 6

PostPosted: Fri Jan 30, 2015 11:26 am    Post subject:
Reply with quote

Hi,
thanks for reply.
really i dont need. im just tried build and use new version with new feature.

...

Thank you!

Cheers,
nguyen
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10852

PostPosted: Mon Feb 02, 2015 10:02 am    Post subject:
plugin v8 in version 3.3.1
Reply with quote

Hi Nguyen,


On 30 January 2015 at 11:26, nguyen duy nam < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,
thanks for reply.
really i dont need. im just tried build and use new version with new feature.


Great. I have just commented out the FIND_PACKAGE and the ADD_SUBDIRECTORY for the V8 and Python plugins.  If you updated to svn/trunk the build will no longer check or attempt to build these plugins.



Cheers,
Robert

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sduensin (Scott Duensing)
Newbie


Joined: 24 Jan 2016
Posts: 8

PostPosted: Sun Jan 24, 2016 10:41 pm    Post subject:
Re: plugin v8 in version 3.3.1
Reply with quote

robertosfield wrote:

Do you have a need for V8 support?


I'm new around here, but I plan on using V8 extensively with my current project. Would it be hard to revive the plugin?

Don't do a ton of work for one user. Just curious.

Thanks!


Scott
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10852

PostPosted: Mon Jan 25, 2016 8:31 am    Post subject:
plugin v8 in version 3.3.1
Reply with quote

Hi Soctt,

On 24 January 2016 at 22:42, Scott Duensing <> wrote:
Quote:
I'm new around here, but I plan on using V8 extensively with my current project. Would it be hard to revive the plugin?

Don't do a ton of work for one user. Just curious.

It's not a case of reviving the plugin, the plugin was a proof of
concept integration that provide that one could build and link V8 and
invoke it in a minimal way - invoking a script. The plugin
implementation never did any C++ object integration so the scripts you
could run wouldn't be able to create or control anything on the OSG
side.

The next step for the plugin would be create wrappers between the
OSG's C++ object interfaces (osgDB::ClassInterface) and V8 to allow
the scripts to create and control OSG objects. This step is quite a
bit of work, i.e. a month to two.

The OSG has close to full lua integration with the lua implementation
itself built as part of the OSG's lua plugin and integration done via
osgDB::ClassInterface. To get an idea of how much work is involved
with V8 integration you could use the lua plugin as case study,
running word count (wc) on the OSG specific files in the lua plugin we
get:

$ wc LuaScriptEngine.cpp LuaScriptEngine.h ReaderWriterLua.cpp
4382 11061 150795 LuaScriptEngine.cpp
266 881 9708 LuaScriptEngine.h
200 557 7633 ReaderWriterLua.cpp
4848 12499 168136 total

If I were to tackle javascript integration I'd probably look for
another route than using V8, for instance that are now open source
projects that are smaller and more suitable for application
integration that fit more in with the lua level of size and complexity
i.e. minimal on both counts.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sduensin (Scott Duensing)
Newbie


Joined: 24 Jan 2016
Posts: 8

PostPosted: Mon Jan 25, 2016 7:42 pm    Post subject:
Re: plugin v8 in version 3.3.1
Reply with quote

Thanks for the detailed reply. I did look over the Lua plugin and learned quickly that I don't know enough about OSG to make sense of it yet! Smile

robertosfield wrote:

If I were to tackle javascript integration I'd probably look for
another route than using V8, for instance that are now open source
projects that are smaller and more suitable for application
integration that fit more in with the lua level of size and complexity
i.e. minimal on both counts.


Oh? Can you give me some pointers? Thanks again.


Scott
Back to top
View user's profile Send private message
Riccardo Corsi
Guest





PostPosted: Tue Jan 26, 2016 9:05 am    Post subject:
plugin v8 in version 3.3.1
Reply with quote

Hi Scott,


I believe Robert refers to project like:
* duktape: http://duktape.org/
* v7: https://github.com/cesanta/v7


which are small and open source javascript interpreters (like one .h and one .c file),
with a binding API similar to Lua.


I have no experience with any of them, if someone has it would be interesting to know how they perform.
Ricky






On Mon, Jan 25, 2016 at 8:43 PM, Scott Duensing < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Thanks for the detailed reply.  I did look over the Lua plugin and learned quickly that I don't know enough about OSG to make sense of it yet!  Smile


robertosfield wrote:
Quote:

If I were to tackle javascript integration I'd probably look for
another route than using V8, for instance that are now open source
projects that are smaller and more suitable for application
integration that fit more in with the lua level of size and complexity
i.e. minimal on both counts.



Oh?  Can you give me some pointers?  Thanks again.


Scott

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





_______________________________________________
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
sduensin (Scott Duensing)
Newbie


Joined: 24 Jan 2016
Posts: 8

PostPosted: Tue Jan 26, 2016 7:01 pm    Post subject:
Re: plugin v8 in version 3.3.1
Reply with quote

Riccardo Corsi wrote:

* duktape: http://duktape.org/


Thanks! Hadn't run across Duktape yet. Looks interesting!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] 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 OSG 3.4 and Qt 5 cmake problem. Found... Elias Tarasov General 1 Mon Apr 10, 2017 12:26 pm View latest post
No new posts PLY Plugin uwew Submission 0 Sat Apr 08, 2017 6:26 am View latest post
No new posts Guidance on zip-plugin fix SMesserschmidt General 0 Thu Feb 16, 2017 1:59 pm View latest post
No new posts PNG plugin loaded / unloaded Steal General 3 Sun Feb 05, 2017 6:30 pm View latest post
No new posts Version 3.5.6 osgText::Text bounding ... dcfennell General 0 Tue Jan 31, 2017 5:40 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