[osg-users] updating the webpages

2017-01-17 Thread Paul McIntosh
Hi,

Just wondering what the protocol is for updating the webpages? Do you give out 
a login or do we just post it here?

I want to fix up the missing newlines that are making the git commands hard to 
read here:
http://www.openscenegraph.org/index.php/download-section/code-repositories/31-git-mirror

e.g.
Lines like this...


Code:
~/OpenSceneGraph (master)$ git remote -v origin :[your-github-account]/osg.git 
(fetch) origin :[your-github-account]/OpenSceneGraph.git (push)



Should look like this...


> ~/OpenSceneGraph (master)$ git remote -v 
> origin :[your-github-account]/osg.git (fetch) 
> origin :[your-github-account]/OpenSceneGraph.git (push)
> 


Cheers,
Paul[/code][/url]

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





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


Re: [osg-users] osgQt and osg (CMake)

2017-01-17 Thread Trajce Nikolov NICK
Hi again,

only thing I just spotted is the missing Find3rdPartyDependencies.cmake in
the osgQt/CMakeModules. Cmake complains about this. To make it right this
file has to be copied from the OSG/CmakeModules into osgQt/CmakeModules. It
is Windows specific based on the code from the osgQt/CMakeLists.txt

# 3rd Party Dependency Stuff
IF(WIN32)
INCLUDE(Find3rdPartyDependencies)
ENDIF()

On Tue, Jan 17, 2017 at 2:54 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:

> Hi Mathieu, Paul, Robert,
>
> I must apologize for the noise again :-(,  I was working on some other git
> repo I found the link in this list
> https://github.com/robertosfield/osgQt
> 
>
> This one https://github.com/openscenegraph/osgQt is just fine, I just
> gave it a try, so we are all good :-)
>
> I am sorry again, I should have read the whole thread not just pick up the
> first link
> Nick
>
> On Tue, Jan 17, 2017 at 11:19 AM, Mathieu MARACHE <
> mathieu.mara...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> Could you please post a Pull request on the osgQt project also ? It would
>> benefit every one this way !
>>
>> https://github.com/openscenegraph/osgQt
>>
>> Thanks
>>
>> Le mar. 17 janv. 2017 à 03:29, Trajce Nikolov NICK <
>> trajce.nikolov.n...@gmail.com> a écrit :
>>
>>> Hi Paul,
>>>
>>> sure. Just give me some time since I have hacked it fast for me test
>>> purposes. Let do it proper :-). Will ping you shortly with the updated
>>> files.
>>>
>>> Cheers,
>>> Nick
>>>
>>> On Tue, Jan 17, 2017 at 2:51 AM, Paul McIntosh <
>>> paul.mcint...@internetscooter.com> wrote:
>>>
>>>
>>>
>>>
>>> Trajce Nikolov NICK wrote:
>>>
>>>
>>> > Hi Robert,
>>>
>>>
>>> >
>>>
>>>
>>> > what I tried to say and it fixed it was to call INCLUDE(
>>> FindOpenSceneGraph ) in the main CMakeLists.txt and use the
>>> OSG_INCLUDE_DIRS and OSG_LIBRARIES in the project CMakeLists.txt
>>>
>>>
>>> >
>>>
>>>
>>> >
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Trajce could you post the new CMakelists.txt? I am having a go at fixing
>>> up the readme to focus only on osgQT and testing it out on Windows.
>>>
>>>
>>>
>>>
>>>
>>> Cheers,
>>>
>>>
>>>
>>>
>>>
>>> Paul
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Read this topic online here:
>>>
>>>
>>> http://forum.openscenegraph.org/viewtopic.php?p=69978#69978
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>>
>>>
>>> osg-users mailing list
>>>
>>>
>>> osg-users@lists.openscenegraph.org
>>>
>>>
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>> cenegraph.org
>>>
>>>
>>>
>>>
>>>
>>> --
>>> trajce nikolov nick
>>>
>>>
>>>
>>>
>>> ___
>>>
>>> osg-users mailing list
>>>
>>> osg-users@lists.openscenegraph.org
>>>
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>> cenegraph.org
>>>
>>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> trajce nikolov nick
>



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


Re: [osg-users] Visualizing a light cone in scene

2017-01-17 Thread David Heitbrink
Basically What you want is the situation where the peak of the cone is at 
0,0,0, and the base is at your negative direction pointed towards the ground. 
You may have to put transform between say the DOF node, and the cone. You might 
also just forgo the OSG cone, and have a model where the peak of the cone is at 
0,0,0. 

You might end up with a graph that looks something like this:

(osg::MatrixTransform) -> (your Aircraft model), (DOF Node) 
->(osg::MatrixTransform) ->(your cone).

You could just use a Matrix transform, instead of the DOF Node. The DOF node is 
basically to aim the light. 

The point of the first matrix transform is to move your aircraft mode + your 
cone at the same time. Both the DOF and model would be children of the 
transform, the DOF node is basically there to rotate the light cone, which 
might be just straight down. You the last Matrix Transform is to setup the cone 
so it rotates about the point of the cone.

You will most likely want to read up Hierarchical Modeling in Computer 
Graphics. There are lots of examples + lecture notes on the topic.

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





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


[osg-users] TrackballManipulator versus Camera->setProjectionMatrix

2017-01-17 Thread Werner Modenbach

Hi OSG community,

my application needs "zoom keys". As a result the cursor position
gets centered in the window and depending on key the scene gets
zoomed.
I do this with this short method:

/**A zoom key was pressed (ESC,F1-F5)

*_xand_y is the cursor position in the window scaled to-1.0..+1.0

*/

voidCl_3Dview_osg::handleZoom(double_x,double_y,double_scale){

osg::MatrixoffsetMatrix=

osg::Matrix::scale(_scale,_scale,1.0)*

osg::Matrix::translate(-_scale*_x,_scale*_y,0.0);

view->getCamera()->setProjectionMatrix(view->getCamera()->getProjectionMatrix()*offsetMatrix);

}

The camera has a TrackballManipulator. After my offset is applied the 
home position of the manipulator is lost.
I guess I have to control the manipulator instead of the projection 
matrix of the camera.


Unfortunately I get stock because I don't manage to convert this 
accordingly.


I hope for some help here.

Many thanks for any hints.

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


Re: [osg-users] osgQt and osg (CMake)

2017-01-17 Thread Trajce Nikolov NICK
Hi Mathieu, Paul, Robert,

I must apologize for the noise again :-(,  I was working on some other git
repo I found the link in this list
https://github.com/robertosfield/osgQt


This one https://github.com/openscenegraph/osgQt is just fine, I just gave
it a try, so we are all good :-)

I am sorry again, I should have read the whole thread not just pick up the
first link
Nick

On Tue, Jan 17, 2017 at 11:19 AM, Mathieu MARACHE  wrote:

>
> Hi,
>
> Could you please post a Pull request on the osgQt project also ? It would
> benefit every one this way !
>
> https://github.com/openscenegraph/osgQt
>
> Thanks
>
> Le mar. 17 janv. 2017 à 03:29, Trajce Nikolov NICK <
> trajce.nikolov.n...@gmail.com> a écrit :
>
>> Hi Paul,
>>
>> sure. Just give me some time since I have hacked it fast for me test
>> purposes. Let do it proper :-). Will ping you shortly with the updated
>> files.
>>
>> Cheers,
>> Nick
>>
>> On Tue, Jan 17, 2017 at 2:51 AM, Paul McIntosh > internetscooter.com> wrote:
>>
>>
>>
>>
>> Trajce Nikolov NICK wrote:
>>
>>
>> > Hi Robert,
>>
>>
>> >
>>
>>
>> > what I tried to say and it fixed it was to call INCLUDE(
>> FindOpenSceneGraph ) in the main CMakeLists.txt and use the
>> OSG_INCLUDE_DIRS and OSG_LIBRARIES in the project CMakeLists.txt
>>
>>
>> >
>>
>>
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>> Trajce could you post the new CMakelists.txt? I am having a go at fixing
>> up the readme to focus only on osgQT and testing it out on Windows.
>>
>>
>>
>>
>>
>> Cheers,
>>
>>
>>
>>
>>
>> Paul
>>
>>
>>
>>
>>
>> --
>>
>>
>> Read this topic online here:
>>
>>
>> http://forum.openscenegraph.org/viewtopic.php?p=69978#69978
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ___
>>
>>
>> osg-users mailing list
>>
>>
>> osg-users@lists.openscenegraph.org
>>
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>>
>>
>>
>> --
>> trajce nikolov nick
>>
>>
>>
>>
>> ___
>>
>> 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
>
>


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


Re: [osg-users] osgQt and osg (CMake)

2017-01-17 Thread Mathieu MARACHE
Hi,

Could you please post a Pull request on the osgQt project also ? It would
benefit every one this way !

https://github.com/openscenegraph/osgQt

Thanks

Le mar. 17 janv. 2017 à 03:29, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> a écrit :

> Hi Paul,
>
> sure. Just give me some time since I have hacked it fast for me test
> purposes. Let do it proper :-). Will ping you shortly with the updated
> files.
>
> Cheers,
> Nick
>
> On Tue, Jan 17, 2017 at 2:51 AM, Paul McIntosh <
> paul.mcint...@internetscooter.com> wrote:
>
>
>
>
> Trajce Nikolov NICK wrote:
>
>
> > Hi Robert,
>
>
> >
>
>
> > what I tried to say and it fixed it was to call INCLUDE(
> FindOpenSceneGraph ) in the main CMakeLists.txt and use the
> OSG_INCLUDE_DIRS and OSG_LIBRARIES in the project CMakeLists.txt
>
>
> >
>
>
> >
>
>
>
>
>
>
>
>
> Trajce could you post the new CMakelists.txt? I am having a go at fixing
> up the readme to focus only on osgQT and testing it out on Windows.
>
>
>
>
>
> Cheers,
>
>
>
>
>
> Paul
>
>
>
>
>
> --
>
>
> Read this topic online here:
>
>
> http://forum.openscenegraph.org/viewtopic.php?p=69978#69978
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
>
>
> osg-users mailing list
>
>
> osg-users@lists.openscenegraph.org
>
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
>
>
> --
> trajce nikolov nick
>
>
>
>
> ___
>
> 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