Hi,
Please tell me if my understanding is correct?If create a Geode called
'room' and inherit a node from room called 'sofa'. So room->sofa. Then if we
rotate room, would the sofa also rotate,?. But if we rotate sofa then room
should not rotate.How can we establish an architecture like that
I am using OSG with QT..Made the OSG viewer in QWidget Layout as
QGridLayout. My model is vanished, not seen. Please tell me what I am doing
wrong.
For creatting the view in Qt my code is below
CSGroup* root = new CSGroup();
ViewerW
trix::translate(1000+dx, 0, 0))
> }
>
> you get the idea? Hope it helps
>
> Nick
>
>
> On Thu, May 9, 2013 at 3:15 PM, Sujan Dasmahapatra <
> sujan.dasmahapa...@gmail.com> wrote:
>
>> Nick I want to move the object a simple pan with mouse.
>>
>>
&
gt; Nick
>
>
> On Thu, May 9, 2013 at 1:03 PM, Sujan Dasmahapatra <
> sujan.dasmahapa...@gmail.com> wrote:
>
>> I am trying to pan my model pls check the code snippet below.
>> viewer = composite view.
>> getTransform() will return a osg::PositionAttitudeTra
I am trying to pan my model pls check the code snippet below.
viewer = composite view.
getTransform() will return a osg::PositionAttitudeTransform list.
But my object is moving in z direction as well inwards outwards. What am I
doing wrong please help. Thanks Sujan
void CSGraphicsView::pan( float
I am trying to implement my own pan functionality in osg scene using Qt.
Please tell me if it is right ?.But it's not happening.
Check my snippet.
void CSGraphicsView::mousePressEvent(QMouseEvent *e)
{
lastPos = e->pos();
}
void CSGraphicsView::mouseMoveEvent(QMouseEvent *e)
{
float dx = (e
would inherit from
> TrackballcameraManipulator and override handle - look in the code od
> TrackballCameraManipulator::handle since it is the closest to your wish of
> mouse handling
>
> Hope this helps a bit
>
> Nick
>
>
> On Thu, May 9, 2013 at 4:09 AM, Sujan Dasmahapatra <
I am trying to translate my objects in scene, when the right mouse button
is pressed. But it is not moving. Pls check the snippet.
[code]
//CSGraphicsView
//.h
class CSGraphicsView : public osgQt::GLWidget
{
Q_OBJECT
public:
CSGraphicsView(QWidget* parent=0);
~CSGraphicsView();
virtual void mouseP
Thats right Robert. Thanks a lot for your suggestions I appreciate it.
Thanks Sujan
On Wed, May 8, 2013 at 5:40 PM, Robert Milharcic <
robert.milhar...@ib-caddy.si> wrote:
> On 8.5.2013 10:16, Sujan Dasmahapatra wrote:
>
> Thanks Robert. It is working fine...
>
> On the
you have some specifics about how to handle
> mouse and keyboard events then go for the later, I would guess
>
> Nick
>
>
> On Wed, May 8, 2013 at 10:05 AM, Sujan Dasmahapatra <
> sujan.dasmahapa...@gmail.com> wrote:
>
>> In every example I see in the viewer that lef
CSGraphicsView::mousePressEvent(QMouseEvent *e)
{
if(e->button()==Qt::LeftButton)
{
QMessageBox msg;
msg.setText("Mouse pressed");
msg.exec();
}
}
On Wed, May 8, 2013 at 3:59 PM, Robert Milharcic <
robert.milhar...@ib-caddy.si> wrote:
> On 8.5.2013 7:04, Sujan Dasmahapatra wrot
In every example I see in the viewer that left mouse press and move cause
it to rotate 3d, middle mouse press move cause it to pan, and left mouse
press and move forward backward cause it zoom in and zoom out. How can I
override this events. For example I dont want anything to happen on my left
mou
I am trying to implement a mouse press event with QT and OSG but unable to
do it. Pls help.
Below is my ViewerWidget class which is derived from QWidget and
osg::CompositeViewer..In the constructor I got gView which is a
osg::GLWidget, I am trying override mousePressEvent but when I click
mess
Thanks Braden.
On Wed, May 8, 2013 at 3:26 AM, Braden Edmunds wrote:
> Hi Sujan,
>
> Hopefully these steps can will help you build in both release and debug
> mode:
>
> 1. Download the osg source
> 2. Run Cmake (setup all paths: 3rd_party libs, Qt directory, etc)
> a. Make sure you select th
n a simple test.
Please help.
On Mon, May 6, 2013 at 3:45 PM, Jan Ciger wrote:
> On Mon, May 6, 2013 at 11:16 AM, Sujan Dasmahapatra
> wrote:
> > I am trying to build osgViewerQt example. Error is coming as osgQt
> run-time
> > error. I am building it is debug mode. But I do
Sujan
On Mon, May 6, 2013 at 4:51 PM, Robert Osfield wrote:
> Have a look at the osgviewerQt example.
> On 6 May 2013 02:51, "Sujan Dasmahapatra"
> wrote:
>
>> Can I control OSG viewer by Qt events. Like mouse press, mouse move etc
>> can be used with OSG viewer??..
Can I control OSG viewer by Qt events. Like mouse press, mouse move etc can
be used with OSG viewer??..Any suggestions highly appreciated.
--
Regards
Sujan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/lis
Thanks a lot Michael.
On Fri, May 3, 2013 at 1:52 PM, michael kapelko wrote:
> Hi.
> Simply add your Sofa to Room as a child, and that's it.
>
> 2013/5/3 Sujan Dasmahapatra
>
>> I am newbie OSG user. Please help understanding my concept. I create a
>> Geode
I am newbie OSG user. Please help understanding my concept. I create a
Geode node called 'Room'. Can we have another Geode node called 'Sofa'
derived from 'Room' so that when I rotate 'Room' my 'Sofa' should also
rotate, but when I rotate 'Sofa' my 'Room' should not rotate. Can we
establish an arc
19 matches
Mail list logo