Focus camera on object

I have a question about using the “Focus camera on object” widget on an object in a Cesium application. The behavior is seen when the object is a trajectory-type object not attached to the ground. It appears the viewer is fixed just to the port side of the object.

An example of this behavior is in the “3D Models” Sandcastle example. Zoom in on the Aircraft and you will see the viewer is looking at the port nacelle instead of the center of the airplane. Choose the Ground Vehicle and zoom in on it and it appears to be the center of the vehicle. What is the difference and is there a way to attach the viewer to the center?

You’re talking about using the trackedEntity property of the viewer, right?

I initially assumed it was just a matter of the geometry itself being offset from its origin, but you can verify this isn’t true in this modified Sandcastle which places a red sphere at the origin of each model. The hot air balloon for example also has the camera offset from its model origin.

This may be a function of how CesiumJS computes the bounding sphere for glTF models, which can be seen here: https://github.com/CesiumGS/cesium/blob/638c6ebffe86a17637acc8dc5c223f404131f993/Source/Scene/ModelUtility.js#L192

Are you seeing a significant difference in the model origin and the “camera focus point” in your models?

Yes I am seeing a decent difference in the origin and camera focus point. I have an example file I can share but I can’t upload a file since this is a new account.

I am including some czml output where you can see the effect since I can’t attach the file. It occurs at Jun 16 2020 17:36:51
Here is the czml:
[
{
“id”:“document”,
“name”:“test”,
“version”:“1.0”,
“clock”:{
“interval”:“2020-06-16T17:35:47.57300000000032Z/2020-06-16T17:41:06.57300000000032Z”,
“currentTime”:“2020-06-16T17:35:47.57300000000032Z”,
“multiplier”:1,
“range”:“LOOP_STOP”,
“step”:“SYSTEM_CLOCK_MULTIPLIER”
}
},
{
“id”:“FOO”,
“availability”:“2020-06-16T17:35:47.57300000000032Z/2020-06-16T17:41:06.57300000000032Z”,
“name”:“FOO”,
“billboard”:{
“show”:true,
“image”:“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAjSURBVChTYyAa/EcDUGEIgIphAKg0XRSAAFQMDqDChAADAwDC13+BJ+0oDwAAAABJRU5ErkJgggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==”,
“scale”:1,
“pixelOffset”:{
“cartesian2”:[
0,0
]
},
“eyeOffset”:{
“cartesian”:[
0,0,0
]
},
“horizontalOrigin”:“CENTER”,
“verticalOrigin”:“CENTER”,
“color”:{
“rgba”:[
0,143,0,210
]
}
},
“label”:{
“show”:true,
“text”:“FOOOOOO!”,
“font”:“21pt Lucida Console”,
“style”:“FILL_AND_OUTLINE”,
“scale”:0.5,
“pixelOffset”:{
“cartesian2”:[
5,-4
]
},
“horizontalOrigin”:“LEFT”,
“verticalOrigin”:“CENTER”,
“fillColor”:{
“rgba”:[
0,255,0,255
]
},
“outlineColor”:{
“rgba”:[
0,0,0,255
]
},
“outlineWidth”:2
},
“path”:{
“show”:{
“interval”:“2020-06-16T17:35:47.57300000000032Z/2020-06-16T17:41:06.57300000000032Z”,
“boolean”:true
},
“width”:1,
“resolution”:20,
“material”:{
“solidColor”:{
“color”:{
“rgba”:[
255,0,255,255
]
}
}
}
},
“model”:{
“show”:true,
“gltf”:{
“interval”:“2020-06-16T17:35:47.57300000000032Z/2020-06-16T17:41:06.57300000000032Z”,
“uri”:“https://assets.agi.com/models/missile.glb
},
“scale”:1,
“runAnimations”:false
},
“position”:{
“interpolationAlgorithm”:“LAGRANGE”,
“interpolationDegree”:5,
“epoch”:“2020-06-16T17:35:47.57300000000032Z”,
“cartesian”:[
0,6378142,0,0,
1,6378142.347841492,-0.0007320149421161659,0.0015802666185550144,
2,6378150.56362954,-0.015372193583516491,0.035960979013095556,
61,6402777.522734159,19861.199939710234,-2.214635306691993,
62,6403760.541784842,20910.79437431854,-2.320497053126709,
63,6404777.287890267,22000.900701383955,-2.4211369211937472,
63.79999999999927,6405615.140237949,22902.361145388855,-2.500826477177781,
64.79999999999927,6406664.658772938,24038.15558839239,-2.609311880414831,
65.79999999999927,6407702.829933584,25173.371058431687,-2.7194253365419856,
66.79999999999927,6408730.9272370115,26307.16540759268,-2.8339345215206597,
67.79999999999927,6409749.054616867,27439.70624133669,-2.938791443947669,
68.79999999999927,6410756.4930857895,28571.8518734328,-3.0181063187405224,
69.79999999999927,6411754.022369924,29703.102235035934,-3.0991821053709234,
70.79999999999927,6412742.003603073,30833.286134809663,-3.2150932925682674,
71.79999999999927,6413719.936149065,31962.98083805503,-3.3577777363328307,
72.79999999999927,6414687.65329685,33092.42756500092,-3.483231867922065,
73.79999999999927,6415645.579011046,34221.36773106206,-3.5555805556691946,
74.79999999999927,6416594.068828954,35349.564719232134,-3.5957428272930287,
75.79999999999927,6417533.074627002,36477.13199958747,-3.673237057171559,
76.79999999999927,6418462.333212233,37604.35245479608,-3.821805603452684,
77.79999999999927,6419381.680688781,38731.39495333862,-3.9878497428247117,
78.79999999999927,6420291.214288532,39858.22597293614,-4.094566820840054,
79.79999999999927,6421191.158766034,40984.707971871285,-4.133812309610274,
80.79999999999927,6422081.66408675,42110.74571246813,-4.154623725046644,
81.79999999999927,6422962.760649059,43236.33990819637,-4.194832158111955,
82.79999999999927,6423834.403697664,44361.55595056205,-4.2632344308709795,
83.79999999999927,6424696.521892108,45486.47461480697,-4.3630747142867765,
84.79999999999927,6425549.045421884,46611.16491183723,-4.48978346273756,
85.79999999999927,6426391.929499376,47735.6699852139,-4.620071334879651,
86.79999999999927,6427225.188197861,48859.99153681464,-4.731175002857949,
87.79999999999927,6428048.866225585,49984.111588213265,-4.8186816356996856,
88.79999999999927,6428863.011805896,51108.00821625593,-4.88480453653773,
89.79999999999927,6429667.670656809,52231.65844264379,-4.92972565643155,
90.79999999999927,6430462.883483188,53355.03985441538,-4.960620408977055,
91.79999999999927,6431248.674352901,54478.14083055406,-4.990651221426882,
92.79999999999927,6432025.051180468,55600.96220584129,-5.027423998469878,
93.79999999999927,6432792.013232081,56723.511573563934,-5.073761988775244,
94.79999999999927,6433549.55338664,57845.80132244171,-5.134793997493504,
95.79999999999927,6434297.656018171,58967.84966451108,-5.21174801552882,
96.79999999999927,6435036.3073808905,60089.67197856436,-5.300673659805115,
97.79999999999927,6435765.497992688,61211.27909103272,-5.398297063606288,
98.79999999999927,6436485.219339233,62332.67987946899,-5.5028017701772205,
99.79999999999927,6437195.4631413445,63453.88199658505,-5.61009111787927,
100.79999999999927,6437896.227915142,64574.88871146186,-5.715187418728206,
101.79999999999927,6438587.514969078,65695.70157875039,-5.815965714742918,
102.79999999999927,6439269.327872139,66816.32076471661,-5.9109499230138605,
103.79999999999927,6439941.671555923,67936.74578938149,-5.997176657680252,
104.79999999999927,6440604.555911599,69056.97386163322,-6.074073978893808,
105.79999999999927,6441257.988927437,70177.00307899619,-6.1425126934926135,
106.79999999999927,6441901.978529806,71296.8313652334,-6.202704823632072,
107.79999999999927,6442536.5330905,72416.4563043917,-6.254862560472464,
108.79999999999927,6443161.660324457,73535.87567619461,-6.300689671147643,
109.79999999999927,6443777.365916978,74655.08810903714,-6.341418288285408,
110.79999999999927,6444383.655255321,75774.09218580827,-6.377629643641606,
111.79999999999927,6444980.533766382,76892.88630476891,-6.4103240370558385,
112.79999999999927,6445568.0054829875,78011.46955892179,-6.441000327398704,
113.79999999999927,6446146.073974407,79129.84120003814,-6.470286797498314,
114.79999999999927,6446714.742504529,80248.00052509087,-6.498768282269286,
115.79999999999927,6447274.014320936,81365.94678392142,-6.527597349246463,
116.79999999999927,6447823.8911187295,82483.68018566047,-6.557535037703108,
117.79999999999927,6448364.374914098,83601.2006773124,-6.588781702169663,
118.79999999999927,6448895.467587709,84718.5082125634,-6.621915574699979,
119.79999999999927,6449417.170106102,85835.6033342898,-6.657505306593091,
120.79999999999927,6449929.483530919,86952.48653035722,-6.695606440712835,
121.79999999999927,6450432.408730021,88069.15831131444,-6.736163132567005,
122.79999999999927,6450925.946811304,89185.6190128202,-6.7795426868561535,
123.79999999999927,6451410.098047299,90301.86947197304,-6.825638487494545,
124.79999999999927,6451884.863253545,91417.91014087255,-6.874191259452761,
125.79999999999927,6452350.243261334,92533.7413864313,-6.925192963628103,
126.79999999999927,6452806.238538842,93649.36375021789,-6.978570084974143,
127.79999999999927,6453252.849756661,94764.7776318873,-7.034025063015394,
128.79999999999927,6453690.077648153,95879.98331934577,-7.09128083213063,
129.79999999999927,6454117.923021265,96994.98101518812,-7.150309402245458,
130.79999999999927,6454536.38646167,98109.77100305763,-7.210834720186434,
131.79999999999927,6454945.4688536255,99224.35337542705,-7.272577968137748,
132.79999999999927,6455345.171097723,100338.72816940931,-7.335430497809936,
133.79999999999927,6455735.493953199,101452.89545287922,-7.399243092435752,
134.79999999999927,6456116.438277727,102566.85522375304,-7.463761553810086,
135.79999999999927,6456488.005043955,103680.60739843396,-7.528830051412128,
136.79999999999927,6456850.195149346,104794.1518927541,-7.594392556277489,
137.79999999999927,6457203.009446726,105907.48861610804,-7.66027285812975,
138.79999999999927,6457546.448892157,107020.6174213631,-7.7262991747799274,
139.79999999999927,6457880.514423002,108133.53814568782,-7.7924112683121844,
140.79999999999927,6458205.206889729,109246.25063104263,-7.858513500433889,
141.79999999999927,6458520.52718257,110358.75469223039,-7.924448672559006,
142.79999999999927,6458826.476226127,111471.0501222492,-7.990131279989431,
143.79999999999927,6459123.054851909,112583.1367198893,-8.055510170045322,
144.79999999999927,6459410.263845004,113695.01427635385,-8.120450219086232,
145.79999999999927,6459688.104101325,114806.68255418625,-8.184853313251923,
146.79999999999927,6459956.576418302,115918.14132543301,-8.248668058713754,
147.79999999999927,6460215.681551742,117029.39035189696,-8.311817495550482,
148.79999999999927,6460465.420254081,118140.42938753225,-8.374168482517748,
149.79999999999927,6460705.793332082,119251.25817891816,-8.435676142233234,
150.79999999999927,6460936.801497848,120361.87647401808,-8.496301886814488,
151.79999999999927,6461158.445396421,121472.2840114808,-8.555914384508432,
152.79999999999927,6461370.725795683,122582.48052488401,-8.614464215327292,
153.79999999999927,6461573.6433257125,123692.46575492913,-8.671897178204699,
154.79999999999927,6461767.19862815,124802.23942825128,-8.72816231250441,
155.79999999999927,6461951.392317995,125911.80126995729,-8.783152114135401,
156.79999999999927,6462126.225031494,127021.15101257822,-8.836838879314053,
157.79999999999927,6462291.697331102,128130.28838237704,-8.889194021444267,
158.79999999999927,6462447.809717774,129239.2130917615,-8.940095348897984,
159.79999999999927,6462594.562808496,130347.92487144467,-8.989534945784488,
160.79999999999927,6462731.957068636,131456.4234462565,-9.037461794074323,
161.79999999999927,6462859.992976419,132564.70853005498,-9.083829806134403,
162.79999999999927,6462978.670999024,133672.77983944892,-9.128558723464833,
163.79999999999927,6463087.991589534,134780.63710389516,-9.17162806798206,
164.79999999999927,6463187.95515528,135888.28004408226,-9.21302551642401,
165.79999999999927,6463278.562038631,136995.70836126784,-9.252633542318804,
166.79999999999927,6463359.812679024,138102.92179339932,-9.290469987672392,
167.79999999999927,6463431.707371062,139209.92005830398,-9.326486280412942,
168.79999999999927,6463494.246420939,140316.70286631095,-9.360637613555332,
169.79999999999927,6463547.430141058,141423.2699386414,-9.392875238923345,
170.79999999999927,6463591.258790124,142529.62100241054,-9.423172447102031,
171.79999999999927,6463625.732606522,143635.75577965978,-9.451529133381129,
172.79999999999927,6463650.851768109,144741.67396786652,-9.47783020564151,
173.79999999999927,6463666.616521345,145847.37531193276,-9.50210470023792,
174.79999999999927,6463673.026985881,146952.85952655214,-9.524305039720982,
175.79999999999927,6463670.083285117,148058.12631856202,-9.544374639272618,
176.79999999999927,6463657.785560928,149163.17541676905,-9.562286992933155,
177.79999999999927,6463636.133875945,150268.006543283,-9.577998841533821,
178.79999999999927,6463605.128287857,151372.61942105868,-9.591512131035156,
179.79999999999927,6463564.768806045,152477.0137460641,-9.60270782133789,
180.79999999999927,6463515.055478555,153581.18926618254,-9.611614057304052
]
},
“orientation”:{
“interpolationAlgorithm”:“LINEAR”,
“interpolationDegree”:1,
“epoch”:“2020-06-16T17:35:47.57300000000032Z”,
“unitQuaternion”:[
0,0.7070319771797786,0.000000000000000021646611193701007,0.000000000000000021651191375820383,0.7071815772807243,
1,0.7070142804251013,-0.0005964496631575837,0.00016414182469933443,0.7071989992783057,
2,0.7070532018756529,-0.0002611031591571109,0.00000881698956853514,0.7071603081796859,
61,0.6507153727477551,0.27036292636990256,0.27203082083799085,0.6553416088031201,
62,0.6507993638932539,0.27055454003816876,0.27206332157855256,0.6551656110271021,
63,0.6509020634903587,0.2706891468995935,0.2720696061825673,0.6550053579066558,
63.79999999999927,0.6518449605572698,0.2724858498626855,0.27270983116603453,0.6530535636577557,
64.79999999999927,0.7028685002736399,0.32185888813817953,0.26408775454963473,0.5767498464208474,
65.79999999999927,0.8392837100152236,0.36289494133722855,0.16056226967908588,0.37165827477729063,
66.79999999999927,0.915454696385636,0.4003337396071571,0.01647197198371845,0.03747358985471679,
67.79999999999927,-0.8322596801849187,-0.3870146420144157,0.16696844790024756,0.3601180764842735,
68.79999999999927,-0.5505671833955326,-0.24478107493819748,0.32430905253073933,0.7292335979414448,
69.79999999999927,-0.06624933365674557,-0.027994609264046597,0.3988498524946519,0.9141915132001528,
70.79999999999927,0.4699279349706923,0.21836006269830147,0.35908562058503923,0.7762371648160321,
71.79999999999927,0.8416781818237328,0.40218958696066803,0.1557823637953335,0.3248895651027301,
72.79999999999927,-0.8602602517688475,-0.39789462431168615,0.13204753182583576,0.29016480921911647,
73.79999999999927,-0.4593508430138156,-0.20503914013310073,0.34977833809769876,0.7903232681843472,
74.79999999999927,0.19734599899772107,0.09076244367815407,0.40019561798551084,0.89031466507205,
75.79999999999927,0.7525100936574773,0.3616256412941722,0.23388104708098612,0.4982520550067957,
76.79999999999927,-0.876727395685969,-0.4375825477609065,0.09031686877986353,0.17808270764611941,
77.79999999999927,-0.4825838054679862,-0.24390493645044725,0.3722227223314285,0.7543696028176907,
78.79999999999927,0.21714790453338173,0.09758316794854992,0.41933088260769413,0.8760627396376007,
79.79999999999927,0.7951741506582928,0.36527202661858077,0.20353514235825187,0.43914446657110895,
80.79999999999927,-0.8600910596624577,-0.3937160513455295,0.1371670007356497,0.29396641629747694,
81.79999999999927,-0.3494036877221455,-0.16078025466540552,0.39352331319847494,0.8349887272803077,
82.79999999999927,0.3965419621088416,0.19774932695922215,0.3912543703862918,0.806579006438719,
83.79999999999927,0.8619736088794019,0.4410113189186781,0.1097642821068029,0.2246381903297085,
84.79999999999927,-0.7242600485577736,-0.38212222144737457,0.2685317102446115,0.5072678883315197,
85.79999999999927,-0.07847388175694912,-0.04622399266368054,0.4682980840848646,0.8788640946282136,
86.79999999999927,0.624707627701749,0.3261779384569104,0.33456575819613205,0.6256309501598367,
87.79999999999927,-0.8832896250933113,-0.4602514513284862,0.036727507540148384,0.08135803551234425,
88.79999999999927,-0.5010016603489712,-0.260471247017745,0.37132388468714944,0.7370689509573984,
89.79999999999927,0.253813725649804,0.12118834807003542,0.427232935116435,0.8592810926091753,
90.79999999999927,0.8284383674555758,0.40441302037654125,0.1699762994185621,0.3482068895260908,
91.79999999999927,-0.7923689876834306,-0.38538091630130605,0.2093303659811332,0.4240444959983635,
92.79999999999927,-0.1665006324863134,-0.07791228014376178,0.4337389482902472,0.8820871502978194,
93.79999999999927,0.5817378426531838,0.2953382245110448,0.3344843568836084,0.6800563436716418,
94.79999999999927,-0.889072100093698,-0.4561763008182115,0.024171448871889493,0.029491091302762524,
95.79999999999927,-0.5260255354533047,-0.27307813793054825,0.3805902617022564,0.7098426018018759,
96.79999999999927,0.2287855816436008,0.13009633731597056,0.46048492767557225,0.8477533438639988,
97.79999999999927,0.8013886897317086,0.4521207415626211,0.18789685335525086,0.34359536597305324,
98.79999999999927,-0.759630417419336,-0.43844329744075,0.24216023546072496,0.41483433346604,
99.79999999999927,-0.14083111083895367,-0.08534228817711675,0.5012568599878755,0.8494850513008783,
100.79999999999927,0.5798168617336973,0.3442171169114349,0.38134295499949117,0.6323800549880761,
101.79999999999927,-0.8520953606512027,-0.5178591644662823,0.03505428436483384,0.06727985792679843,
102.79999999999927,-0.4692659824647226,-0.2952999692514252,0.4300827502810844,0.7124718898119311,
103.79999999999927,0.2739969440833214,0.15557822025463203,0.49692916395652525,0.8085681777221209,
104.79999999999927,0.8066854452849297,0.48687774195366273,0.18197637062769703,0.28123523479238594,
105.79999999999927,-0.7174757108142272,-0.44226035226853827,0.2711878166825667,0.46485648676324876,
106.79999999999927,-0.07271796507638038,-0.057975225188555975,0.5116503597479225,0.8541457019673564,
107.79999999999927,0.6314740449270013,0.36641392604296763,0.3554665517523199,0.5836307873738547,
108.79999999999927,-0.8497744616732759,-0.5027583946039126,0.07265738587911776,0.14084837670489392,
109.79999999999927,-0.4098718631003149,-0.24901072799929483,0.4387460822853076,0.7599345948561838,
110.79999999999927,0.3504743560715457,0.1938916731839473,0.4603797771963998,0.7922273698596624,
111.79999999999927,0.8422412886268498,0.48079007558263936,0.12487546037222039,0.20946750189528096,
112.79999999999927,-0.6818567576053184,-0.39100566312198004,0.3037895734727968,0.5384216085594254,
113.79999999999927,0.008837454812187718,0.002265015009036555,0.4919621689293364,0.8705687758252041,
114.79999999999927,0.6944108967812044,0.39098467485519495,0.29510021623312216,0.5271056372673941,
115.79999999999927,-0.8415125381410613,-0.47251382993369284,0.13151115856931708,0.22647768950723998,
116.79999999999927,-0.33476861645115313,-0.18400197837995164,0.4546347245999956,0.8045995976754716,
117.79999999999927,0.4320004609349074,0.24933441935494757,0.42176032359215765,0.7571830548291457,
118.79999999999927,0.8619459990109016,0.48889621933365235,0.05747396736389436,0.12135206873314608,
119.79999999999927,-0.6209830331630837,-0.3458419945403207,0.35484846728162334,0.6073351238021987,
120.79999999999927,0.101936086686051,0.07101492043417289,0.4921646146053762,0.8615914968459262,
121.79999999999927,0.7426077504862512,0.4373320801661075,0.2434546250703945,0.4449766579351874,
122.79999999999927,-0.8027253974344315,-0.464412809211673,0.2009956642255837,0.31552087397884254,
123.79999999999927,-0.2382826155194884,-0.12558813669369048,0.494575902833145,0.8263435674099353,
124.79999999999927,0.507864145548377,0.3187392719928348,0.403426937183662,0.6911772511523396,
125.79999999999927,0.8536265020958995,0.5204662560597472,-0.007937529245844649,0.019330464353975896,
126.79999999999927,-0.5325940475974451,-0.3157062650972693,0.4217987761830355,0.6623888035380706,
127.79999999999927,0.2002663599718042,0.1427470519527915,0.51195414671368,0.8230550503369131,
128.79999999999927,0.7708452164321816,0.49895127797745026,0.20020717060125073,0.34170508241484193,
129.79999999999927,-0.7360772005360814,-0.4697391502734169,0.27665509281256795,0.40124486934070946,
130.79999999999927,-0.12845880436774615,-0.06936187952873614,0.5464418789929041,0.8246748075037545,
131.79999999999927,0.5732042477651341,0.39504128271836997,0.39171229435692956,0.6016151209385131,
132.79999999999927,-0.8211430777392776,-0.5588693399521848,0.07532294975420557,0.08783826035732666,
133.79999999999927,-0.42662536938105083,-0.2861452000836344,0.49379300830812284,0.7016268122125844,
134.79999999999927,0.29618646657746206,0.21817600537417828,0.5329327186410803,0.7620075623621801,
135.79999999999927,0.78019409625177,0.5620673398313586,0.15340468144304595,0.22769383254743972,
136.79999999999927,-0.650440723968902,-0.47120441867326684,0.35523893800731077,0.4782243797100241,
137.79999999999927,-0.014831266382344065,-0.007658360739543335,0.5954726002466527,0.8032021945959618,
138.79999999999927,0.6250951256328995,0.47177307467474805,0.37255391660063325,0.49788535743427204,
139.79999999999927,-0.7698540371128588,-0.5902894485736012,0.14786360645679614,0.19240447585567444,
140.79999999999927,-0.3120439162047256,-0.24731081508358263,0.5626607950860177,0.7244851860290055,
141.79999999999927,0.3840075661151508,0.29676381497740006,0.5436814087098395,0.6847480946374822,
142.79999999999927,0.771983561588452,0.6182893282388354,0.09737894475660551,0.11080175242868892,
143.79999999999927,-0.5523920002467227,-0.46042738837129105,0.4337679260948515,0.5428766751228022,
144.79999999999927,0.09613881161934529,0.06170781501684372,0.6341973412697657,0.7646850376413987,
145.79999999999927,0.6618302490138805,0.5447092506654868,0.3405986109703902,0.3863484695643426,
146.79999999999927,-0.703506033461568,-0.6087501252980442,0.22522863388829462,0.28943843613037873,
147.79999999999927,-0.19470347170827249,-0.1964510980378779,0.6238976856916957,0.7309235267611819,
148.79999999999927,0.46031905164242237,0.3765616818939178,0.5398977664679566,0.5956660743966846,
149.79999999999927,0.7475960882631794,0.6633998799378464,0.031398219214157946,-0.00385226455781721,
150.79999999999927,-0.44666441446796745,-0.4346855465177833,0.5094256760592965,0.5933168268876695,
151.79999999999927,0.2002494447362942,0.13797736466736957,0.6590586680141565,0.7116909995480198,
152.79999999999927,0.6829770837697414,0.610679590805617,0.2945537229627971,0.27175511900904425,
153.79999999999927,-0.6255688589901355,-0.6115426212325019,0.3056382582150528,0.37585167312801704,
154.79999999999927,-0.07904220483098393,-0.13350617161126827,0.6744159641922581,0.7218667046205873,
155.79999999999927,0.5232639083965973,0.4551560553564637,0.5198571298555569,0.498774911137483,
156.79999999999927,-0.709102818027034,-0.6947120110315271,0.04356906174369556,0.11247289474991135,
157.79999999999927,-0.33744995085816415,-0.3932795703664537,0.5795460530652168,0.6289555489656874,
158.79999999999927,0.2945929799369438,0.21940077456876964,0.668026963997025,0.6471616889645221,
159.79999999999927,0.6891479772588366,0.6670821561354675,0.23469055726626722,0.15810377837281117,
160.79999999999927,-0.5395403723394817,-0.5974378416047037,0.38685484860942787,0.44978610265532126,
161.79999999999927,0.03143439793616693,-0.05959459821864808,0.7119707602762264,0.6989692403827515,
162.79999999999927,0.5720916597860954,0.5300972034703053,0.4831863965755194,0.3977926518181515,
163.79999999999927,-0.6589891779882476,-0.7105262405616888,0.1257656177495748,0.21229398050749024,
164.79999999999927,-0.2283786590776339,-0.3366565001908829,0.6417528812579972,0.6501221641770005,
165.79999999999927,0.3773011556630479,0.3037963651000274,0.6600893076904188,0.5741373636684194,
166.79999999999927,0.6816384094401585,0.7118297662529868,0.16217600691199577,0.048645713420498685,
167.79999999999927,-0.44873969946166875,-0.566159126029243,0.46651979553810885,0.5103487106988084,
168.79999999999927,0.13407662920756683,0.023542730890543564,0.7349565206676605,0.6643102513514593,
169.79999999999927,0.6068808079286636,0.5990650480224847,0.4303368682016379,0.2960184674510642,
170.79999999999927,-0.5998934209787691,-0.709836292172518,0.2130641419438117,0.30143654920879825,
171.79999999999927,-0.12247651578999734,-0.2659333685574574,0.6939795592516559,0.6577775595963301,
172.79999999999927,0.4473491632272399,0.388837190034534,0.6349113395060894,0.49555217361295023,
173.79999999999927,0.6621478440018275,0.7432666267289276,0.07867211242629699,-0.05408930579252022,
174.79999999999927,-0.3561500207515181,-0.5180521924781724,0.5423174405936632,0.5573785806928632,
175.79999999999927,0.22700248595725853,0.11384113130190175,0.7422622576835842,0.6201264459862974,
176.79999999999927,0.6282757438493007,0.6599289230095817,0.36228656196447584,0.19624437134853434,
177.79999999999927,-0.5343861680123742,-0.6921402578742306,0.3031806672708035,0.3787542341150452,
178.79999999999927,-0.022163014299882808,-0.18262843649045765,0.734448308164834,0.6532544202804964,
179.79999999999927,0.5043497696711785,0.47218862493518043,0.5926189210405726,0.41409180955334074
]
}
}
]

Thanks for sharing. I can’t run that since the forum replaces the straight quotes with opening/closing quotes. I’m looking into why it’s not allowing you to attach the file - can you share the screenshot/text of the error you’re seeing when you try to attach it?

Otherwise you can wrap this in code blocks, or upload it Cesium ion (https://cesium.com/ion/) and share a Sandcastle link.

Sorry here is the Sandcastle link. I didn’t realize I could share that way. Let me know if this works.

Generally if you have other objects on the entity (like a model, as well as a polyline and a label) that will offset the origin to be the combined center of all those, so that’s where the issue may be.

One workaround I’ve done in the past is simply to create a new entity that’s a single point or a sphere, place that relative to the model wherever I want the focus to be, and use a CallbackProperty to keep it moving with the original model. That way you can control exactly where the camera’s focus is. Or try removing the labels/lines and put those in a separate entity so they don’t alter the camera focus.