Re: [osg-users] PositionAttitudeTransform uniform scaling

2015-06-18 Thread João
Thank you for the reply, I know it was a dumb question. I hadn't fully 
understood the inner workings of the setPivotPoint function.

Date: Wed, 17 Jun 2015 16:29:33 +0100
From: robert.osfi...@gmail.com
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] PositionAttitudeTransform uniform scaling

On 17 June 2015 at 16:24, João joao.henrique.pi...@hotmail.com wrote:



Is there any way to easily scale a model uniformly from its center using a 
PositionAttitudeTransform? 

YES!
Next question please :-)



___
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] PositionAttitudeTransform uniform scaling

2015-06-17 Thread João
Is there any way to easily scale a model uniformly from its center using a 
PositionAttitudeTransform? ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Light/Material flickering

2015-05-11 Thread João
Neither GL_RESCALE_NORMAL or GL_NORMALIZE resolved the situation.

Date: Mon, 11 May 2015 16:09:56 +0300
From: sgu...@350.su
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Light/Material flickering

Hi,

On Mon, May 11, 2015 at 4:03 PM, João joao.henrique.pi...@hotmail.com wrote:



I'm currently loading .osg models to a scene, and I'm experiencing some 
inconsistencies when it comes to texturing and lighting in those models.
I'm not sure, but did you try enabling the GL_RESCALE_NORMAL attribute for the 
state sets of the objects? It's also mentioned in the FAQ.

___
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] Absolute_Rf to Relative_Rf coordinates

2015-04-27 Thread João
I'm displaying some text in a 3D scene using a transform with an absolute 
reference frame. I now need to find out what the world coordinates of the text 
are, is that any way to easily obtain that information? 
 ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] makeLookAt and Oculus rift quaternion question

2015-04-17 Thread João
I have 3D scene set up in osg, and I'm trying to use oculus rift to view the 
scene. What I'm trying to do is calibrating an initial position using 
makeLookAt and grabbing the rotation in order to focus the camera on a specific 
spot of the scene; 
The problem arises when I then attempt to stack the oculus rotation quaternion 
on top of the makeLookAt rotation, the math eludes me and I cannot seem to get 
it working correctly.   ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] World coordinates and meters

2015-04-02 Thread João
Is there any correlation between world coordinates and real-world distance, 
such as meters? For instance, is the point (1,0,0) located 1 meter in the X 
axis, and if not, is there any way to correlate the two?
I ask this because I'm working with a kinect, and it returns coordinates in 
meters within the reference frame of the kinect.
  ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgOculusViewer and osg::Text

2015-03-16 Thread João
Thank you for the reply Robert, I have since solved the problem. I was using a 
2DOrtho projection using pixel coordinates to set up a layer upon which to 
render the text and using a matrix transform to  set it to an absolute 
referential, and it interacted weirdly with osgOculusViewer.Removing the 
2DOrtho projection and setting up the text on the 3D scene instead solved my 
problem.

Date: Mon, 16 Mar 2015 09:45:29 +
From: robert.osfi...@gmail.com
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] osgOculusViewer and osg::Text

Hi Joao,

I doubt other will be able to help as you provide too few details about what 
you are doing.  

Does the rest of the 3D scene work OK?

How you are managing your text and GUI?  Do you have transforms above them?  Is 
it a HUD?  Is in part of the 3D scene?

Robert.
On 14 March 2015 at 23:50, João joao.henrique.pi...@hotmail.com wrote:



I'm currently using osgOculusViewer in conjunction with osg::Text to try and 
create a GUI. Thing is, the text isn't being displayed as I'd expect.
The text appears to be mirrored.
  


  

___

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


[osg-users] osgOculusViewer and osg::Text

2015-03-14 Thread João
I'm currently using osgOculusViewer in conjunction with osg::Text to try and 
create a GUI. Thing is, the text isn't being displayed as I'd expect.
The text appears to be mirrored.
  


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


[osg-users] Unresolved External on set/getUserValue

2015-03-10 Thread João
Everything else is working fine, but when I try to use the set/getUserValue 
functions, this happens:
Error   2   error LNK2001: unresolved external symbol public: bool __cdecl 
osg::Object::getUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int )const  
(??$getUserValue@H@Object@osg@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAH@Z)
  C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemoError
  1   error LNK2001: unresolved external symbol public: void __cdecl 
osg::Object::setUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int const ) 
(??$setUserValue@H@Object@osg@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH@Z)
   C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemo

Anyone have a clue about which lib I am missing? It's weird considering I have 
everything else working fine, including setUserData...  
   ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Unresolved External on set/getUserValue

2015-03-10 Thread João
Thank you, that worked.

Date: Tue, 10 Mar 2015 15:41:19 -0700
From: fla...@gmail.com
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Unresolved External on set/getUserValue

Hi João,
It sounds like you need to include the ValueObject header:
#include osg/ValueObject

Cheers,Farshid
On Tue, Mar 10, 2015 at 3:38 PM, João joao.henrique.pi...@hotmail.com wrote:



Everything else is working fine, but when I try to use the set/getUserValue 
functions, this happens:
Error   2   error LNK2001: unresolved external symbol public: bool __cdecl 
osg::Object::getUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int )const  
(??$getUserValue@H@Object@osg@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAH@Z)
  C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemoError
  1   error LNK2001: unresolved external symbol public: void __cdecl 
osg::Object::setUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int const ) 
(??$setUserValue@H@Object@osg@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH@Z)
   C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemo

Anyone have a clue about which lib I am missing? It's weird considering I have 
everything else working fine, including setUserData...  
   

___

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


[osg-users] Compiling osgVRPN

2015-03-01 Thread João
I understand that osgVRPN isn't an officially managed project, but I don't know 
where else to ask this.
I'm currently trying to compile osgVRPN without success. CMake runs 
successfully, but I cannot build the project due to some files missing (namely 
libvrpn.a.lib). Does anyone know where I can get that file? 
   ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Compiling osgVRPN

2015-03-01 Thread João
I thought so too, considering I had to get a vrpn_Configure.h file from VRPN, 
but I cannot find that library after compiling VRPN.

 To: osg-users@lists.openscenegraph.org
 From: alua...@udc.es
 Date: Sun, 1 Mar 2015 18:43:43 +0100
 Subject: Re: [osg-users] Compiling osgVRPN
 
 João writes:
 
  I understand that osgVRPN isn't an officially managed project, but I
  don't know where else to ask this.
 
  I'm currently trying to compile osgVRPN without success. CMake runs
  successfully, but I cannot build the project due to some files missing
  (namely libvrpn.a.lib). Does anyone know where I can get that file?
 
 That seems to be the VRPN library.  You might have to build it before
 osgVRPN.
 
 -- 
 Alberto
 
 ___
 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