Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 12-Jan-2014 05:02:17

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Does child node have to inherit position and orientation

Colleagues:

If I make a child scene node of a parent scene node, does the child have to inherit the position and orientation of the parent? Can I have a child node which inherits position but not orientation (this has to do with my multiplayer script....I'd like a plane to hover over an avatar, so when the avatar moves, the plane moves, but I want the plane's orientation to be independent of the avatar so it always faces the user's camera shell.)

thx for your input.
-h

Offline

#2 12-Jan-2014 09:43:26

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Does child node have to inherit position and orientation

the child is create at 0 0 0, the 0 0 0 correspond to the parent location, not the world one.
no you can't prevent the orientation to be updated, but in pre render you can change the child orientation

Offline

#3 12-Jan-2014 16:05:44

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: Does child node have to inherit position and orientation

arkeon wrote:

the child is create at 0 0 0, the 0 0 0 correspond to the parent location, not the world one.
no you can't prevent the orientation to be updated, but in pre render you can change the child orientation

thx arkeon....so if the parent node moves and changes orientation, i can set my own orientation on the child node and ogre won't show the child node flipping back and forth since the override is done before the frame is rendered? am i getting that right?
'
thx

Offline

#4 12-Jan-2014 16:07:07

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: Does child node have to inherit position and orientation

such as the prerender callback.

Offline

#5 12-Jan-2014 16:09:21

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Does child node have to inherit position and orientation

yes you're right smile

Offline

#6 12-Jan-2014 16:37:50

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: Does child node have to inherit position and orientation

arkeon wrote:

yes you're right smile

thx

Offline

#7 12-Jan-2014 17:44:08

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: Does child node have to inherit position and orientation

So is this how the callbacks work?

Prerender cb
Frame 1
Postrender cb
Prerender  cb
Frame 2
Postrender cb
Prerender  cb
Frame 3
Etc. Etc.

Offline

#8 12-Jan-2014 18:28:34

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: Does child node have to inherit position and orientation

yes

Offline

Board footer

Powered by FluxBB