Re: [osg-users] !Present3D GUI

2010-02-14 Thread Robert Osfield
Hi Bruce,

On Fri, Feb 12, 2010 at 5:49 PM, Bruce Wheaton br...@spearmorgan.com wrote:
 The Present3D wiki asks for contributors. If it would be acceptable for a
 GUI to be written in juce then I would like to help. Juce works as GPL or
 under a commercial license. That does mean an OSG licensed GUI would
 probably not be possible, although I can ask the developer. Maybe not an
 issue, as it's an app, not library?

I'm not familiar with Juce.  Why Juce rather than other GUI toolkits?

W.r.t license Present3D is GPL, while osgPresentation and the p3d
plugin that provide the bulk f the functionality are OSGPL.

Having a GPL'd library ontop of osgPresentation that adds GUI might be
OK.  However, there are other alternative GUI libs that LGPL'd, such
as Qt, so I'd wonder why these wouldn't be better.

I terms of functionality Present3D itself my plans has been to
refactor osgPresentation to provide a better object model and then
scripting on top of this, and have GUI elements that sit on top of
this for create/editing presentation objects.  The GUI elements would
be a mix of fully 3D elements using osgWidget/osgManipulator and 2D
elements such as file browsers.  Present3D is used extensively as
immersive (stereo) presentation tool, so being able to stay in fully
immersive (i.e. not 2D elements at all) is important when fine tuning
a presentation.

 I would use an offshoot of the code commerically.

If we can get the osgPresentation layer right and avoid too much
deviation ontop of this hopefully we'd be able to have a family of
presentation tools that would be pretty compatible with each other.
If some of these are commercial then great, especially if they can
drive forward the osgPresentation layer and provide better tools for
generating content.

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


Re: [osg-users] Edit mesh

2010-02-14 Thread Andreas Ekstrand

Hi Luis,

Have a look at Remo 3D, an affordable 3D modeling tool with support for 
OSG/IVE import/export:

www.remograph.com

/Andreas


Luis Agero wrote:

Hi Jason,

Yes, I know it is something out of OSG. But that would be interesting for my 
project not to use another software.

Luis

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





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

  



--
__
Andreas Ekstrand
Remograph
Norrbergavägen 58
SE-590 54 Sturefors
SWEDEN
Web: www.remograph.com
E-mail: andreas.ekstr...@remograph.com
Phone: +46 708 490 697

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


[osg-users] Enhancement of osgDB::serializer

2010-02-14 Thread Torben Dannhauer
Hi Wang,

I managed to get the serializer working.

I have some proposals to enhance the serializer:

1. It is only possible to serialize objects inherited from osg::Node or Images. 
Classes just inherited from osg::Object are not handled.  There is a Function 
Code:

WriteResult writeObject( const osg::Object object, std::ostream fout, const 
Options* options ) const



 but this function only tries to cast into image or node and fails otherwise.

It would be great to provide also serialization for osg:Objects.


2. documentation: I have a list of questions/ common mistakes. Should I modify 
the wikipage directly (login/permission required) or should i send you the list?

Thank you!

Cheers,
Torben

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





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


[osg-users] OSG and VRJuggler example

2010-02-14 Thread Giordano Nobles
Hello.

I am using OSG with VRJuggler, and i'm trying to run the osgNav example but I 
get the following errors, then the command line gets blocked:

-- -- -- -- -- -- -- 
gadgetRIM:WARNING: Can not register ApplicationData with non-existent
Application Data Manager. in order to synchronize ApplicationData
across a cluster, you must load the ApplicationDataManager cluster
plug-in.
Attempting to load file: cow.osg... done.
DBG: DeviceInterface found proxy  SimCamera Proxy [OK]
DBG: DeviceInterface found proxy  VJWand [OK]
Delta big or not active, returning.
-- -- -- -- -- -- --

I know it is a forum for OSG, but I think maybe you can help me. I want to see 
if I can work with OSG in VRJuggler, so if someone know how I can do it I will 
be grateful for the help, because I am unable to run this example.

I am using Windows XP SP3 and VC++2008. I first installed 
vrjuggler-2.2.1-1-vc80-setup.exe in C:\VRJuggler, then I installed OSG 2.8vc8 
in D:\OpenSceneGraph using the Dwight House's tutorial (I cannot post the 
link). Then I put the cow.osg file the osgNav Relase folder example and type 
osgNav.exe cow.osg standalone.jconf in the command line.

I appreciate any suggestions and help. Thank you very much.

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





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


Re: [osg-users] OpenSceneGraph and MultiThreading

2010-02-14 Thread Danny Lesnik
Hi,

I searched the forum and was enspired by the following Topic:
http://www.mail-archive.com/osg-us...@openscenegraph.net/msg08183.html

I tried to create separate thread which will run from main function and  run 
LoadNodefile. 


Code:

class MyThread : public OpenThreads::Thread 
{ 
public: 
MyThread(osg::Node* node) : _done(false),_node(node) { /* ... */ } 
virtual ~MyThread() { /* ... */ } 
virtual void run() 
{ 
_node = osgDB::readNodeFile(cow.osg);
}

void stopWorking() 
{
_done = true;
 join();
} 
protected: 
bool _done; 
osg::Node* _node;
};

int main()
{

osg::Node* node = NULL;
osg::Group* root = new osg::Group();

MyThread* myThread = new MyThread(node);
myThread-start(); 

root-addChild(node);

osgViewer::Viewer viewer;

root-addChild(node);
viewer.setSceneData( root );

viewer.addEventHandler(new osgViewer::ThreadingHandler);

while( !viewer.done() )
{
   ..
}
}





The value of node is null. I'm a newbie in Threading Programming, but I need to 
find a way to work it out. 

could anybody help?

Thank you!

Cheers,
Danny

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





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


Re: [osg-users] OpenSceneGraph and MultiThreading

2010-02-14 Thread Bruce Wheaton

On Feb 14, 2010, at 14:15, Danny Lesnik danny...@walla.co.il wrote:
The value of node is null. I'm a newbie in Threading Programming,  
but I need to find a way to work it out.


Your problem lies in C, Danny, not in threading. You passed a pointer  
into your thread class by value. Your thread class initialized a  
pointer member with that value. There is absolutely no link between  
those two except, at the start, they have the same value (0).



could anybody help?

Thank you!

Cheers,
Danny

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





___
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] OpenSceneGraph and MultiThreading

2010-02-14 Thread Bruce Wheaton
Sorry, sent too early. Anyway, OSG has a potential solution to this -  
ref ptrs. If you pass and hold ref ptrs, then you will have two  
objects pointing to the same thing. Specifically, you would pass a  
pointer to your ref ptr.


Having said that, I'm new to OSG - there's probably a better way.

Please also consider thread safety - what would happen if your main  
thread tries to access the node while it's being created? What are you  
trying to do?


Bruce


On Feb 14, 2010, at 14:28, Bruce Wheaton br...@spearmorgan.com wrote:

On Feb 14, 2010, at 14:15, Danny Lesnik danny...@walla.co.il  
wrote:
The value of node is null. I'm a newbie in Threading Programming,  
but I need to find a way to work it out.


Your problem lies in C, Danny, not in threading. You passed a  
pointer into your thread class by value. Your thread class  
initialized a pointer member with that value. There is absolutely no  
link between those two except, at the start, they have the same  
value (0).



could anybody help?

Thank you!

Cheers,
Danny

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





___
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] OpenSceneGraph and MultiThreading

2010-02-14 Thread Simon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Danny Lesnik wrote:
 Hi,
 snip

Try this:


class MyThread : public OpenThreads::Thread
{
public:
MyThread(osg::Node** node) :
_node(node) {}

virtual ~MyThread() {}

virtual void run() {
*_node = osgDB::readNodeFile(cow.osg);
}

protected:
osg::Node** _node;
};

int main() {
volatileosg::Node*  node = NULL;
osg::Group* root = new osg::Group();

MyThread*   myThread = new MyThread(node);

myThread-start();

while(!node) {
sleep(100);
}

root-addChild(node);

osgViewer::Viewer viewer;

root-addChild(node);
viewer.setSceneData( root );

viewer.addEventHandler(new osgViewer::ThreadingHandler);

while(!viewer.done()) {
//...
}
}


Not tested, but should be close to it.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLeI5pT9LetA9XoXwRAsL9AJ91SX8irnTIw7QRMLouj4zRZeYc0gCfW13U
EUqaHo9pHWRNWQqkbPhEFeY=
=scVX
-END PGP SIGNATURE-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] This month in IEEE Computer Graphicsand Applications

2010-02-14 Thread Jason Daly

Buckley, Bob CTR MDA/DES wrote:

DT: now THAT's nice to hear!!!
  


Hey, Bob,  I forgot you were on this list!

Yeah, it ported over to OSG pretty easily.  It runs quite a bit quicker 
than on the old SGI Indigos, too  :-)


--J

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


[osg-users] Two rotations on an object?

2010-02-14 Thread Ernie Smethurst
So i am learning to use OSG and am currently learning the basics and am 
currently creating little scenes to help me understand how it all works and 
such.

I am trying to create a scene of a planetary system, using textures, lighting 
and primitives and am currently stuck with a problem that I cant quite work 
out, How to apply to rotations to a sphere. As it is a planet that I am trying 
to model it will rotate around its own axis and also rotate around a central 
sun. 

Below is what i use to get the planet to rotate around its own axis:

Code:

MatrixTransform *moon_Rotate = new MatrixTransform;
moon_Rotate-addChild( geode_moon);
moon_Rotate-setUpdateCallback( new AnimationPathCallback(osg::Vec3(0, 0, 0), 
osg::Z_AXIS, inDegrees(25.0f)) );




This works successfully, but how would I then add a second rotation to make it 
rotate around another sphere that I have created?

Thanks for any input.

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





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


Re: [osg-users] Two rotations on an object?

2010-02-14 Thread Torben Dannhauer
Hi,

you could to it as a chain of PAT Notes 
1. rotate to the desired angle of the planet around sun
2. translate the planet to add you desired radius
3. Rotate the plane to rotate it around it own axis.

Cheers,
Torben

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





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


Re: [osg-users] External threads and osgViewer

2010-02-14 Thread Stefan Eilemann
Robert, all,

I've got it running by replacing the 'ReentrantMutex
s_contextIDMapMutex' with a normal Mutex in
osg/GraphicsContext.cpp:246. I'll send you the whole file on
osg-submissions in a minute.

I'll do some more testing, and probably create an
OpenThreads::createForCurrentThread() if I hit more issues. Somebody
suggested using SceneView in an offline email to me, but I'm not sure
if this is a good approach since it is marked deprecated. Any
opinions?


Cheers,

Stefan.

-- 
http://www.eyescale.ch
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org