Game Development Community

Cam node

by Rojalee · in Artist Corner · 04/10/2007 (3:59 am) · 4 replies

Hi, have a model, and I added a cam node,
however, unless I attach it to something, it borks the animations.

but if I attach it, the camera bobs.

Any ideas?

ps, without the cam node, my view is at about the waist.

Thanks in advance.
Robert

#1
04/10/2007 (4:45 am)
Hi, not sure if this applies to the milkshape exporter as well, but in 3ds Max you can create a node called "Unlink" attach it to the model and then attach the "cam" node to the unlink node. That way it is exported but the engine unhooks the link to the pelvis and you should not get any bobbing.
#2
04/10/2007 (2:59 pm)
Tried "unlink" and "Unlink", neither worked, so perhaps i need to check into using a .cfg file on export.

*still looking*

I believe what I need is to use a .cfg file and put the cam node under NeverAnimate...

however, I cant find an example of a .cfg file as a template.

here is my model in .SMD format.
version 1
nodes
0 "Scene_Root" -1
1 "CubixStudioMaleNPC" 0
2 "Bip01_Pelvis" 1
3 "Bip01_Spine" 2
4 "Bip01_L_Thigh" 3
5 "Bip01_L_Calf" 4
6 "Bip01_L_Foot" 5
7 "Bip01_R_Thigh" 3
8 "Bip01_R_Calf" 7
9 "Bip01_R_Foot" 8
10 "Bip01_Spine1" 3
11 "Bip01_Spine2" 10
12 "Bip01_Neck" 11
13 "Bip01_Head" 12
14 "Bip01_L_Clavicle" 12
15 "Bip01_L_UpperArm" 14
16 "Bip01_L_Forearm" 15
17 "Bip01_L_Hand" 16
18 "Bip01_L_Finger0" 17
19 "Bip01_L_Finger01" 18
20 "Bip01_L_Finger02" 19
21 "Bip01_L_Thumb0" 17
22 "Bip01_L_Thumb01" 21
23 "Bip01_L_Thumb02" 22
24 "Bip01_R_Clavicle" 12
25 "Bip01_R_UpperArm" 24
26 "Bip01_R_Forearm" 25
27 "Bip01_R_Hand" 26
28 "Bip01_R_Finger0" 27
29 "Bip01_R_Finger01" 28
30 "Bip01_R_Finger02" 29
31 "Bip01_R_Thumb0" 27
32 "Bip01_R_Thumb01" 31
33 "Bip01_R_Thumb02" 32
34 "Mount0" 28
35 "Mount1" 18
36 "Mount2" 12
37 "Mount3" 4
38 "cam" 2
39 "eye" 13


end
skeleton
time 0
0 0.000000 0.000000 0.000000 1.570796 -0.000000 0.000000
1 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000
2 0.002618 1.149659 0.000218 0.012711 0.012214 -1.569913
3 -0.117936 0.000085 -0.001505 -0.012704 0.032617 -0.001298
4 0.117692 0.101472 0.006634 0.013318 -0.013443 -3.028096
5 -0.482941 0.000000 0.000000 -0.000000 -0.010891 -0.000000
6 -0.531512 0.000001 0.000000 0.158513 0.067507 -0.114413
7 0.117955 -0.101472 0.004064 -0.013313 -0.013438 3.028096
8 -0.482941 0.000000 0.000000 0.000000 -0.010891 -0.000000
9 -0.531513 0.000000 0.000000 -0.158513 0.067502 0.114413
10 -0.077473 0.000000 -0.000081 -0.000000 -0.061916 -0.000000
11 -0.102186 -0.000000 -0.000256 -0.000000 -0.114195 0.000000
12 -0.324190 -0.000000 -0.006311 -0.000000 0.479917 -0.000001
13 -0.095610 0.000001 0.000000 -0.000000 -0.098219 0.000000
14 -0.001953 0.071553 0.006098 -2.668239 0.087160 -1.739147
15 -0.159304 0.000000 0.000001 0.002008 0.107109 0.924313
16 -0.317397 0.000000 -0.000001 -0.000001 -0.013862 -0.000000
17 -0.307598 -0.000001 -0.000000 1.570000 0.047660 0.174533
18 -0.097753 -0.000382 -0.008508 0.000797 0.022068 0.000018
19 -0.041471 -0.000001 0.000001 -0.000000 0.147918 0.000000
20 -0.047033 0.000001 -0.000000 0.000000 0.147919 0.000000
21 -0.028348 -0.045535 0.024747 -2.424699 0.608274 0.577232
22 -0.033164 -0.000000 0.000001 0.000000 0.660997 -0.000000
23 -0.042696 0.000000 0.000000 0.000000 0.116780 -0.000000
24 -0.001953 -0.071552 0.006098 2.668240 0.087164 1.739147
25 -0.159304 -0.000001 -0.000000 -0.002007 0.107108 -0.924313
26 -0.317397 0.000000 -0.000000 0.000001 -0.013862 0.000000
27 -0.307599 0.000001 0.000000 -1.570000 0.047659 -0.174533
28 -0.097752 0.000382 -0.008507 -0.000796 0.022068 -0.000017
29 -0.041471 -0.000000 0.000000 0.000000 0.147918 0.000000
30 -0.047032 -0.000000 0.000001 -0.000000 0.147918 0.000000
31 -0.028347 0.045536 0.024747 2.424700 0.608275 -0.577230
32 -0.033164 0.000000 0.000000 -0.000001 0.660998 -0.000000
33 -0.042697 0.000000 0.000001 -0.000000 0.116780 -0.000000
34 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
35 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
36 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
37 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
38 -1.500000 -0.50000 -1.50000 0.000000 0.000000 0.000000
39 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
#3
04/15/2007 (7:04 pm)
I have a Parent Node located near World Origin[named Unlink], it's Child Node is the Cam; sorry if I led you astray earlier about not parenting it to the player...which my method does and works. The Unlink/Cam chain is the second rig in the scene, the player hierarchy is the first.

I think the proper way I described earlier, would have been more complete by having you parent it to the Bounds object to complete the Chain, I think would work.

.CFG files are there for this purpose...;). I would suggest learning about them.

Good luck.
#4
07/21/2009 (9:26 pm)
I dont know if its the same problem, but this method is not working for me. I set up everything as you sais rex, and look at forge soldier example in 3dsmax but everytime i jump with my character(3rdperson) the camera jerks. As if it try to go back to the pelvis instead of the Cam node... anyone knows how to fix this???