BioWare Atari
BioWare Info BioWare Games Support Forums Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

NWN 1: Custom Content

New Topic    Post Reply


    Add this To My Topics

   Go To Bottom

Author How Is The Parent Node Position And Orientation Applied To The Child Node?
Script Wrecked
Game Owner
Profile: Script WreckedNWN
NWN: SoU
NWN: HotU
NWN 2
NWN 2: MotB
NWN 2: SoZ


Joined: 19 Oct 2002
From: The first plane of scripting hell.
Posted: Sunday, 01 November 2009 10:14AM
For the child node of a model, how are the parent node's position and orientation values applied to the child node vertices to create/generate/produce the actual position of the child node vertices (remembering that the child node has its own position and orientation values as well)?
_________________
Script Wrecked

When all else fails, read the instructions. Get it here.
  Profile: Script Wrecked   Send Message To: Script Wrecked
B_Harrison
Game Owner
Profile: B_HarrisonNWN
NWN: SoU
NWN: HotU


Joined: 06 Mar 2004
From: England
Posted: Thursday, 05 November 2009 01:41PM
I'm not sure I understand your question entirely (it might've gone over my head, I'm certainly no expert), but a node's parent(s) only affect its position/orientation at the top selection level (ie, not sub-selections of vertices, edges, etc). So you can rotate a parent object and all child nodes will rotate as well, but moving vertices in the parent won't affect vertices (or modifiers, etc AFAIK) in child nodes.

Moving a child node will affect its position/orientation in relation to a parent node "globally," ie, any change in the parent node's position will affect the global positions of any child nodes.

Apologies if I've just misunderstood though.
_________________
~Ben
Mods | Blog
  Profile: B_Harrison   Send Message To: B_Harrison
Script Wrecked
Game Owner
Profile: Script WreckedNWN
NWN: SoU
NWN: HotU
NWN 2
NWN 2: MotB
NWN 2: SoZ


Joined: 19 Oct 2002
From: The first plane of scripting hell.
Posted: Friday, 06 November 2009 11:28AM
Quote: Posted 11/05/09 13:41 (GMT) by B_Harrison

I'm not sure I understand your question entirely (it might've gone over my head, I'm certainly no expert), but a node's parent(s) only affect its position/orientation at the top selection level (ie, not sub-selections of vertices, edges, etc). So you can rotate a parent object and all child nodes will rotate as well, but moving vertices in the parent won't affect vertices (or modifiers, etc AFAIK) in child nodes.

Moving a child node will affect its position/orientation in relation to a parent node "globally," ie, any change in the parent node's position will affect the global positions of any child nodes.

Apologies if I've just misunderstood though.

The position and orientation directives are offsets and rotations applied to the individual vertices. The position and orientation directives of the parent node affect the child node. Therefore the parent node position and orientation directives are (somehow) applied to the child node vertices.
  Profile: Script Wrecked   Send Message To: Script Wrecked
Script Wrecked
Game Owner
Profile: Script WreckedNWN
NWN: SoU
NWN: HotU
NWN 2
NWN 2: MotB
NWN 2: SoZ


Joined: 19 Oct 2002
From: The first plane of scripting hell.
Posted: Thursday, 12 November 2009 08:51AM
The nature of the problem is with the release of cloaks in NWN 1.68, some robes were broken, with various parts sticking out at odd angles (notably the backpack robes in Rosietreats Adventure Gear Volume I).

It turns out, this is due to the robe model no longer applying the orientation directive for the nodes of the model. For most robes, this is not a problem, because they have a "zero" orientation, viz there is no rotation applied to the verts of the node.

However, this breaks nodes which are expecting a non-zero orientation to be applied to get the verts into the correct placement.

However, if the orientation directive is manually applied to the actual vert values (generating a new vert value), low-and-behold, the verts are correctly placed.

The orientation is an axis-angle, which is applied to the verts using a rotation matrix.

This works admirably for flat hierarchy nodes, or more specifically, where there is only one non-zero orientation in the node hierarchy.

However, when there is multiple non-zero orientations in the node hierarchy, then... I have been unable to work out how to apply the parent node's orientation adjustment to the child node.

That's what I'm trying to do.

Edited By Script Wrecked on 11/12/09 08:53

  Profile: Script Wrecked   Send Message To: Script Wrecked

New Topic    Post Reply

What do these icons mean?
Where can I learn how to use the forums?

Jump To:

Search Forums | Forums FAQ | Forum Archives

 

 

Mass Effect 2
Neverwinter Nights 2 Forums
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

View Latest Screenshots 

View Latest Screenshots
Hide/Show

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Current time is: (set time)
Sun, 22 November 2009 09:05AM

Hide/Show

Buy Premium Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Hide/Show

5,052,430 BioWare Users:
  40 Logged In
  3 Hidden
  144 Guests

708 Playing Online
  100% NWN
  101% NWN: SoU
  101% NWN: HotU

444 Registered Guilds

8,768,813 posts in forums

Newest Forum Topics:
1. Transfering Shepard's appearance (Mass Effect 2 General Discussion (No Spoilers Allowed))

2. Jade Empire's History (Jade Empire Xbox General Discussion (Spoilers Will Be Moved))

3. can't change language (Web Site Help)

4. which script launches the crafti... (NWN 1: Scripting)

5. Killing Morag (NWN 1: General Discussion (No Spoilers Allowed))