File: CastleSceneCore.TCastleSceneCore.html

package info (click to toggle)
castle-game-engine 5.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 185,428 kB
  • sloc: pascal: 260,781; cpp: 1,363; objc: 713; makefile: 537; xml: 496; sh: 480; php: 4
file content (2259 lines) | stat: -rw-r--r-- 176,302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Castle Game Engine: CastleSceneCore: Class TCastleSceneCore</title>
<meta name="generator" content="PasDoc 0.13.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<table class="container"><tr><td class="navigation">
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
<a name="TCastleSceneCore"></a><h1 class="cio">Class TCastleSceneCore</h1>
<table class="sections wide_list">
<tr>
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td><a class="section" href="#PasDoc-Fields">Fields</a></td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a  href="CastleSceneCore.html">CastleSceneCore</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCastleSceneCore = class(<a class="normal" href="X3DNodes.TX3DEventsEngine.html">TX3DEventsEngine</a>)</code></p>
<h2 class="description">Description</h2>
<p>
3D scene processing (except rendering, for which see <a class="normal" href="CastleScene.TCastleScene.html">TCastleScene</a>). Provides a lot of useful functionality. Simple loading of the scene (<a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> method), calculating various things (like <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BoundingBox">BoundingBox</a> method).

<p>The <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> tree provides a simple processed scene information, alternative to traversing the complicated VRML/X3D nodes graph. The basic idea is to have at the same time full VRML/X3D graph of the scene (in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a>) and a simple view of the same scene (in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a>).

<p>VRML/X3D scene also takes care of initiating and managing VRML/X3D events and routes mechanism (see <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a>).

<p>The actual VRML/X3D nodes graph is stored in the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> property. Remember that if you directly change the fields/nodes within the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a>, this scene object must be notified about this. The simplest way to do this is to use only <a class="normal" href="X3DFields.TX3DField.html#Send">TX3DField.Send</a> to change the fields' values. Or you can call <a class="normal" href="X3DFields.TX3DField.html#Changed">TX3DField.Changed</a> after each change. Or you will have to call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedField">ChangedField</a> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> method of this class. If the scene is changed by VRML/X3D events, all changes are automagically acted upon, so you don't have to do anything.

<p>For more-or-less static scenes, many things are cached and work very quickly. E.g. methods <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BoundingBox">BoundingBox</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#VerticesCount">VerticesCount</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TrianglesCount">TrianglesCount</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> cache their results so after the first call to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TrianglesCount">TrianglesCount</a> next calls to the same method will return instantly (assuming that scene did not change much).</p>
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TComponent</li>
<li class="ancestor"><a class="normal" href="Castle3D.T3D.html">T3D</a></li>
<li class="ancestor"><a class="normal" href="X3DNodes.TX3DEventsEngine.html">TX3DEventsEngine</a></li>
<li class="thisitem">TCastleSceneCore</li></ul><h2 class="overview">Overview</h2>
<a name="PasDoc-Fields"></a><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a  href="CastleSceneCore.TCastleSceneCore.html#ScreenEffectNodes">ScreenEffectNodes</a></b>: <a  href="X3DNodes.TX3DNodeList.html">TX3DNodeList</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a  href="CastleSceneCore.TCastleSceneCore.html#GeneratedTextures">GeneratedTextures</a></b>: TGeneratedTextureList;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a  href="CastleSceneCore.TCastleSceneCore.html#Dirty">Dirty</a></b>: Cardinal;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a  href="CastleSceneCore.TCastleSceneCore.html#DefaultShadowMapsDefaultSize">DefaultShadowMapsDefaultSize</a></b> = 256;</code></td>
</tr>
</table>
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#CreateShape">CreateShape</a></b>(AGeometry: <a  href="X3DNodes.TAbstractGeometryNode.html">TAbstractGeometryNode</a>; AState: <a  href="X3DNodes.TX3DGraphTraverseState.html">TX3DGraphTraverseState</a>; ParentInfo: <a  href="X3DNodes.html#PTraversingInfo">PTraversingInfo</a>): <a  href="CastleShapes.TShape.html">TShape</a>; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#UpdateHeadlightOnFromNavigationInfo">UpdateHeadlightOnFromNavigationInfo</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#InvalidateBackground">InvalidateBackground</a></b>; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#DoPointingDeviceSensorsChange">DoPointingDeviceSensorsChange</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ExecuteCompiledScript">ExecuteCompiledScript</a></b>(const HandlerName: string; ReceivedValue: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#HeightCollision">HeightCollision</a></b>(const Position, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>; out AboveHeight: Single; out AboveGround: <a  href="CastleTriangles.html#P3DTriangle">P3DTriangle</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#MoveCollision">MoveCollision</a></b>( const OldPos, ProposedNewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; out NewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const IsRadius: boolean; const Radius: Single; const OldBox, NewBox: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#MoveCollision">MoveCollision</a></b>( const OldPos, NewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const IsRadius: boolean; const Radius: Single; const OldBox, NewBox: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#SegmentCollision">SegmentCollision</a></b>(const Pos1, Pos2: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>; const ALineOfSight: boolean): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#SphereCollision">SphereCollision</a></b>(const Pos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const Radius: Single; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#BoxCollision">BoxCollision</a></b>(const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#RayCollision">RayCollision</a></b>(const RayOrigin, RayDirection: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): <a  href="Castle3D.TRayCollision.html">TRayCollision</a>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a  href="CastleSceneCore.TCastleSceneCore.html#Create">Create</a></b>(AOwner: TComponent); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a></b>(ARootNode: <a  href="X3DNodes.TX3DRootNode.html">TX3DRootNode</a>; AOwnsRootNode: boolean; const AResetTime: boolean = true);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a></b>(const AURL: string; AllowStdIn: boolean = false; const AResetTime: boolean = true);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a  href="CastleSceneCore.TCastleSceneCore.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShapesActiveCount">ShapesActiveCount</a></b>: Cardinal;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShapesActiveVisibleCount">ShapesActiveVisibleCount</a></b>: Cardinal;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#BoundingBox">BoundingBox</a></b>: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#VerticesCount">VerticesCount</a></b>(OverTriangulate: boolean): Cardinal;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#TrianglesCount">TrianglesCount</a></b>(OverTriangulate: boolean): Cardinal;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#ViewpointsCount">ViewpointsCount</a></b>: Cardinal;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetViewpointName">GetViewpointName</a></b>(Idx: integer): string;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#MoveToViewpoint">MoveToViewpoint</a></b>(Idx: integer; Animated: boolean = true);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#AddViewpointFromCamera">AddViewpointFromCamera</a></b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; AName: string);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a></b>(const InternalChangedAll: boolean = false); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#NodeFreeRemovingFromAllParents">NodeFreeRemovingFromAllParents</a></b>(Node: <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#RemoveShape">RemoveShape</a></b>(Shape: <a  href="CastleShapes.TShape.html">TShape</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ChangedField">ChangedField</a></b>(Field: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#DoGeometryChanged">DoGeometryChanged</a></b>(const Change: <a  href="CastleSceneCore.html#TGeometryChange">TGeometryChange</a>; LocalGeometryShape: <a  href="CastleShapes.TShape.html">TShape</a>); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#DoViewpointsChanged">DoViewpointsChanged</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#DoBoundViewpointVectorsChanged">DoBoundViewpointVectorsChanged</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#DoBoundNavigationInfoFieldsChanged">DoBoundNavigationInfoFieldsChanged</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ScheduleChangedAll">ScheduleChangedAll</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#BeginChangesSchedule">BeginChangesSchedule</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#EndChangesSchedule">EndChangesSchedule</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Info">Info</a></b>( ATriangleVerticesCounts, ABoundingBox, AManifoldAndBorderEdges: boolean): string;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#InfoTriangleVerticesCounts">InfoTriangleVerticesCounts</a></b>: string;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#InfoBoundingBox">InfoBoundingBox</a></b>: string;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#InfoManifoldAndBorderEdges">InfoManifoldAndBorderEdges</a></b>: string;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#OctreeRendering">OctreeRendering</a></b>: <a  href="CastleShapeOctree.TShapeOctree.html">TShapeOctree</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#OctreeDynamicCollisions">OctreeDynamicCollisions</a></b>: <a  href="CastleShapeOctree.TShapeOctree.html">TShapeOctree</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#OctreeVisibleTriangles">OctreeVisibleTriangles</a></b>: <a  href="CastleTriangleOctree.TTriangleOctree.html">TTriangleOctree</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#OctreeCollidableTriangles">OctreeCollidableTriangles</a></b>: <a  href="CastleTriangleOctree.TTriangleOctree.html">TTriangleOctree</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#OctreeCollisions">OctreeCollisions</a></b>: <a  href="X3DTriangles.TBaseTrianglesOctree.html">TBaseTrianglesOctree</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#TriangleOctreeLimits">TriangleOctreeLimits</a></b>: <a  href="CastleOctree.html#POctreeLimits">POctreeLimits</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShapeOctreeLimits">ShapeOctreeLimits</a></b>: <a  href="CastleOctree.html#POctreeLimits">POctreeLimits</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetViewpoint">GetViewpoint</a></b>( out ProjectionType: <a  href="CastleRays.html#TProjectionType">TProjectionType</a>; out CamPos, CamDir, CamUp, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const ViewpointDescription: string = ''): <a  href="X3DNodes.TAbstractViewpointNode.html">TAbstractViewpointNode</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetPerspectiveViewpoint">GetPerspectiveViewpoint</a></b>( out CamPos, CamDir, CamUp, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const ViewpointDescription: string = ''): <a  href="X3DNodes.TAbstractViewpointNode.html">TAbstractViewpointNode</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#TrianglesListShadowCasters">TrianglesListShadowCasters</a></b>: <a  href="CastleSceneCore.TTrianglesShadowCastersList.html">TTrianglesShadowCastersList</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a></b>: <a  href="CastleSceneCore.html#TManifoldEdgeList">TManifoldEdgeList</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a></b>: <a  href="CastleSceneCore.html#TBorderEdgeList">TBorderEdgeList</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShareManifoldAndBorderEdges">ShareManifoldAndBorderEdges</a></b>( ManifoldShared: <a  href="CastleSceneCore.html#TManifoldEdgeList">TManifoldEdgeList</a>; BorderShared: <a  href="CastleSceneCore.html#TBorderEdgeList">TBorderEdgeList</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#FreeResources">FreeResources</a></b>(Resources: <a  href="CastleSceneCore.html#TSceneFreeResources">TSceneFreeResources</a>); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#UnregisterScene">UnregisterScene</a></b>(Node: <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Press">Press</a></b>(const Event: <a  href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Release">Release</a></b>(const Event: <a  href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActivate">PointingDeviceActivate</a></b>(const Active: boolean; const Distance: Single): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceMove">PointingDeviceMove</a></b>(const Pick: <a  href="Castle3D.TRayCollisionNode.html">TRayCollisionNode</a>; const Distance: Single): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceSensors">PointingDeviceSensors</a></b>: <a  href="X3DNodes.TPointingDeviceSensorList.html">TPointingDeviceSensorList</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceClear">PointingDeviceClear</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#Update">Update</a></b>(const SecondsPassed: Single; var RemoveMe: <a  href="Castle3D.html#TRemoveType">TRemoveType</a>); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#SetTime">SetTime</a></b>(const NewValue: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#IncreaseTime">IncreaseTime</a></b>(const TimeIncrease: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#IncreaseTimeTick">IncreaseTimeTick</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetTime">GetTime</a></b>: <a  href="X3DTime.TX3DTime.html">TX3DTime</a>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ResetTime">ResetTime</a></b>(const NewValue: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ResetTimeAtLoad">ResetTimeAtLoad</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetBackgroundStack">GetBackgroundStack</a></b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetFogStack">GetFogStack</a></b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetNavigationInfoStack">GetNavigationInfoStack</a></b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#GetViewpointStack">GetViewpointStack</a></b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraChanged">CameraChanged</a></b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Changes: <a  href="Castle3D.html#TVisibleChanges">TVisibleChanges</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#RegisterCompiledScript">RegisterCompiledScript</a></b>(const HandlerName: string; Handler: <a  href="CastleSceneCore.html#TCompiledScriptHandler">TCompiledScriptHandler</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraFromNavigationInfo">CameraFromNavigationInfo</a></b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const ForceNavigationType: string = ''; const ForceRadius: Single = 0);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraFromViewpoint">CameraFromViewpoint</a></b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const RelativeCameraTransform: boolean = false; const AllowTransitionAnimate: boolean = true);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#CreateCamera">CreateCamera</a></b>(AOwner: TComponent; const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const ForceNavigationType: string = ''): <a  href="CastleCameras.TUniversalCamera.html">TUniversalCamera</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#CreateCamera">CreateCamera</a></b>(AOwner: TComponent; const ForceNavigationType: string = ''): <a  href="CastleCameras.TUniversalCamera.html">TUniversalCamera</a>; deprecated;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraTransition">CameraTransition</a></b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Position, Direction, Up: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraTransition">CameraTransition</a></b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Position, Direction, Up, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#MainLightForShadows">MainLightForShadows</a></b>( out AMainLightPosition: <a  href="CastleVectors.html#TVector4Single">TVector4Single</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#CustomHeadlight">CustomHeadlight</a></b>: <a  href="X3DNodes.TAbstractLightNode.html">TAbstractLightNode</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#ViewChangedSuddenly">ViewChangedSuddenly</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a  href="CastleSceneCore.TCastleSceneCore.html#PrepareResources">PrepareResources</a></b>(Options: <a  href="Castle3D.html#TPrepareResourcesOptions">TPrepareResourcesOptions</a>; ProgressStep: boolean; BaseLights: <a  href="Castle3D.html#TAbstractLightInstancesList">TAbstractLightInstancesList</a>); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Dragging">Dragging</a></b>: boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Caption">Caption</a></b>: string;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Node">Node</a></b>(const NodeName: string): <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Field">Field</a></b>(const NodeName, FieldName: string): <a  href="X3DFields.TX3DField.html">TX3DField</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Event">Event</a></b>(const NodeName, EventName: string): <a  href="X3DFields.TX3DEvent.html">TX3DEvent</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#Animations">Animations</a></b>: TStringList;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#PlayAnimation">PlayAnimation</a></b>(const AnimationName: string; const Looping: <a  href="CastleSceneCore.html#TPlayAnimationLooping">TPlayAnimationLooping</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a  href="CastleSceneCore.TCastleSceneCore.html#AnimationDuration">AnimationDuration</a></b>(const AnimationName: string): <a  href="X3DTime.html#TFloatTime">TFloatTime</a>;</code></td>
</tr>
</table>
<a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#VisibilitySensors">VisibilitySensors</a></b>: TVisibilitySensors read FVisibilitySensors;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a></b>: <a  href="CastleShapes.TShapeTree.html">TShapeTree</a> read FShapes;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnGeometryChanged">OnGeometryChanged</a></b>: <a  href="CastleSceneCore.html#TSceneGeometryChanged">TSceneGeometryChanged</a>
      read FOnGeometryChanged write FOnGeometryChanged;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnViewpointsChanged">OnViewpointsChanged</a></b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnViewpointsChanged write FOnViewpointsChanged;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnBoundViewpointVectorsChanged">OnBoundViewpointVectorsChanged</a></b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnBoundViewpointVectorsChanged write FOnBoundViewpointVectorsChanged;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnBoundNavigationInfoFieldsChanged">OnBoundNavigationInfoFieldsChanged</a></b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnBoundNavigationInfoFieldsChanged write FOnBoundNavigationInfoFieldsChanged;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a></b>: <a  href="X3DNodes.TX3DRootNode.html">TX3DRootNode</a> read FRootNode write FRootNode;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OwnsRootNode">OwnsRootNode</a></b>: boolean read FOwnsRootNode write FOwnsRootNode default true;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#TriangleOctreeProgressTitle">TriangleOctreeProgressTitle</a></b>: string
      read  FTriangleOctreeProgressTitle
      write FTriangleOctreeProgressTitle;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShapeOctreeProgressTitle">ShapeOctreeProgressTitle</a></b>: string
      read  FShapeOctreeProgressTitle
      write FShapeOctreeProgressTitle;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a></b>: <a  href="X3DTriangles.html#PTriangle">PTriangle</a>
      read FPointingDeviceOverItem write FPointingDeviceOverItem;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverPoint">PointingDeviceOverPoint</a></b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>
      read FPointingDeviceOverPoint write FPointingDeviceOverPoint;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActiveSensors">PointingDeviceActiveSensors</a></b>: <a  href="X3DNodes.TX3DNodeList.html">TX3DNodeList</a>
      read FPointingDeviceActiveSensors;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActive">PointingDeviceActive</a></b>: boolean
      read FPointingDeviceActive default false;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnPointingDeviceSensorsChange">OnPointingDeviceSensorsChange</a></b>: TNotifyEvent
      read FOnPointingDeviceSensorsChange
      write FOnPointingDeviceSensorsChange;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a></b>: <a  href="X3DTime.TX3DTime.html">TX3DTime</a> read FTime;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#BackgroundStack">BackgroundStack</a></b>: <a  href="CastleSceneCore.TBackgroundStack.html">TBackgroundStack</a> read FBackgroundStack;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#FogStack">FogStack</a></b>: <a  href="CastleSceneCore.TFogStack.html">TFogStack</a> read FFogStack;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#NavigationInfoStack">NavigationInfoStack</a></b>: <a  href="CastleSceneCore.TNavigationInfoStack.html">TNavigationInfoStack</a> read FNavigationInfoStack;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#ViewpointStack">ViewpointStack</a></b>: <a  href="CastleSceneCore.TViewpointStack.html">TViewpointStack</a> read FViewpointStack;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraPosition">CameraPosition</a></b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraPosition;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraDirection">CameraDirection</a></b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraDirection;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraUp">CameraUp</a></b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraUp;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#CameraViewKnown">CameraViewKnown</a></b>: boolean read FCameraViewKnown;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#CompiledScriptHandlers">CompiledScriptHandlers</a></b>: <a  href="CastleSceneCore.html#TCompiledScriptHandlerInfoList">TCompiledScriptHandlerInfoList</a>
      read FCompiledScriptHandlers;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#HeadlightOn">HeadlightOn</a></b>: boolean
      read FHeadlightOn write SetHeadlightOn;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#OnHeadlightOnChanged">OnHeadlightOnChanged</a></b>: TNotifyEvent
      read FOnHeadlightOnChanged write FOnHeadlightOnChanged;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#Static">Static</a></b>: boolean read FStatic write SetStatic default false;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#GlobalLights">GlobalLights</a></b>: <a  href="X3DNodes.TLightInstancesList.html">TLightInstancesList</a> read FGlobalLights;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#AnimationPrefix">AnimationPrefix</a></b>: string
      read FAnimationPrefix write FAnimationPrefix;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#TimePlaying">TimePlaying</a></b>: boolean read FTimePlaying write FTimePlaying default true;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#TimePlayingSpeed">TimePlayingSpeed</a></b>: Single read FTimePlayingSpeed write FTimePlayingSpeed default 1.0;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a></b>: <a  href="CastleSceneCore.html#TSceneSpatialStructures">TSceneSpatialStructures</a> read FSpatial write SetSpatial;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a></b>: boolean
      read FProcessEvents write SetProcessEvents default false;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a></b>: string read FURL write SetURL;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#FileName">FileName</a></b>: string read FURL write SetURL; deprecated;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShadowMaps">ShadowMaps</a></b>: boolean read FShadowMaps write SetShadowMaps default true;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#ShadowMapsDefaultSize">ShadowMapsDefaultSize</a></b>: Cardinal
      read FShadowMapsDefaultSize write SetShadowMapsDefaultSize
      default <a  href="CastleSceneCore.TCastleSceneCore.html#DefaultShadowMapsDefaultSize">DefaultShadowMapsDefaultSize</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a></b>: Cardinal
      read FInitialViewpointIndex write FInitialViewpointIndex default 0;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a  href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointName">InitialViewpointName</a></b>: string
      read FInitialViewpointName write FInitialViewpointName;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="ScreenEffectNodes"></a><code><b>ScreenEffectNodes</b>: <a  href="X3DNodes.TX3DNodeList.html">TX3DNodeList</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
List of <a class="normal" href="X3DNodes.TScreenEffectNode.html">TScreenEffectNode</a> nodes, collected by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="GeneratedTextures"></a><code><b>GeneratedTextures</b>: TGeneratedTextureList;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Dirty"></a><code><b>Dirty</b>: Cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p>
Nonzero value prevents rendering of this scene, and generally means that our state isn't complete. This is useful if we're in the middle of some operation (like <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> call or octree creation).

<p>Some callbacks *may* be called during such time: namely, the progress call (e.g. done during constructing octrees). As these callbacks may try to e.g. render our scene (which should not be done on the dirty state), we have to protect ourselves using this variable (e.g. Render routines will exit immediately when Dirty &lt;&gt; 0).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultShadowMapsDefaultSize"></a><code>internal const <b>DefaultShadowMapsDefaultSize</b> = 256;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="CreateShape"></a><code>function <b>CreateShape</b>(AGeometry: <a  href="X3DNodes.TAbstractGeometryNode.html">TAbstractGeometryNode</a>; AState: <a  href="X3DNodes.TX3DGraphTraverseState.html">TX3DGraphTraverseState</a>; ParentInfo: <a  href="X3DNodes.html#PTraversingInfo">PTraversingInfo</a>): <a  href="CastleShapes.TShape.html">TShape</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Create <a class="normal" href="CastleShapes.TShape.html">TShape</a> (or descendant) instance suitable for this <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> descendant. In this class, this simply creates new <a class="normal" href="CastleShapes.TShape.html">TShape</a> instance. If you make a descendant of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a>, you may need to store some per-shape information, and then it may be useful to have your own <a class="normal" href="CastleShapes.TShape.html">TShape</a> descendant to carry this information. So you can override this to create your own descendant, and then you're sure that all leafs within Shapes tree are created using this.

<p>Example: <a class="normal" href="CastleScene.TCastleScene.html">TCastleScene</a> uses this to create TGLShape.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="UpdateHeadlightOnFromNavigationInfo"></a><code>procedure <b>UpdateHeadlightOnFromNavigationInfo</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="InvalidateBackground"></a><code>procedure <b>InvalidateBackground</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DoPointingDeviceSensorsChange"></a><code>procedure <b>DoPointingDeviceSensorsChange</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called after <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceSensors">PointingDeviceSensors</a> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActiveSensors">PointingDeviceActiveSensors</a> lists (possibly) changed.

<p>In this class, <code>DoPointingDeviceSensorsChange</code> updates Cursor and calls <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OnPointingDeviceSensorsChange">OnPointingDeviceSensorsChange</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="ExecuteCompiledScript"></a><code>procedure <b>ExecuteCompiledScript</b>(const HandlerName: string; ReceivedValue: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="HeightCollision"></a><code>function <b>HeightCollision</b>(const Position, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>; out AboveHeight: Single; out AboveGround: <a  href="CastleTriangles.html#P3DTriangle">P3DTriangle</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="MoveCollision"></a><code>function <b>MoveCollision</b>( const OldPos, ProposedNewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; out NewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const IsRadius: boolean; const Radius: Single; const OldBox, NewBox: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="MoveCollision"></a><code>function <b>MoveCollision</b>( const OldPos, NewPos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const IsRadius: boolean; const Radius: Single; const OldBox, NewBox: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="SegmentCollision"></a><code>function <b>SegmentCollision</b>(const Pos1, Pos2: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>; const ALineOfSight: boolean): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="SphereCollision"></a><code>function <b>SphereCollision</b>(const Pos: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const Radius: Single; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="BoxCollision"></a><code>function <b>BoxCollision</b>(const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="RayCollision"></a><code>function <b>RayCollision</b>(const RayOrigin, RayDirection: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const TrianglesToIgnoreFunc: <a  href="CastleTriangles.html#T3DTriangleIgnoreFunc">T3DTriangleIgnoreFunc</a>): <a  href="Castle3D.TRayCollision.html">TRayCollision</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(AOwner: TComponent); override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Load"></a><code>procedure <b>Load</b>(ARootNode: <a  href="X3DNodes.TX3DRootNode.html">TX3DRootNode</a>; AOwnsRootNode: boolean; const AResetTime: boolean = true);</code></td>
</tr>
<tr><td colspan="2">
<p>
Load new 3D model (from VRML/X3D node tree). This replaces <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> with new value.

<p>If AResetTime, we will also do <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ResetTimeAtLoad">ResetTimeAtLoad</a>, changing <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> &mdash; this is usually what you want when you really load a new world.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Load"></a><code>procedure <b>Load</b>(const AURL: string; AllowStdIn: boolean = false; const AResetTime: boolean = true);</code></td>
</tr>
<tr><td colspan="2">
<p>
Load the 3D model from given <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a>.

<p>Model is loaded by <a class="normal" href="X3DLoad.html#Load3D">Load3D</a>, so this supports all 3D model formats that <a class="normal" href="X3DLoad.html#Load3D">Load3D</a> handles (VRML, X3D, Wavefront OBJ, 3DS, Collada and more).

<p><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a> is downloaded using <a class="normal" href="CastleDownload.html">CastleDownload</a> unit. If you all you care about is loading normal files, then just pass a normal filename (absolute or relative to the current directory) as the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a> parameter.

<p></p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>AllowStdIn</dt>
<dd>If AllowStdIn and AURL = '-' then we will load a file from standard input (<a class="normal" href="CastleClassUtils.html#StdInStream">StdInStream</a>), using current working directory as BaseUrl (to resolve relative URLs from the file). Currently, this limits the file to be VRML/X3D.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ShapesActiveCount"></a><code>function <b>ShapesActiveCount</b>: Cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p>
Number of active shapes in the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> tree. This is equivalent to Shapes.ShapesCount(true), except that this is faster (it's cached and reused in this instance, and automatically invalidated only when needed).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ShapesActiveVisibleCount"></a><code>function <b>ShapesActiveVisibleCount</b>: Cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p>
Number of active and visible (<a class="normal" href="CastleShapes.TShape.html#Visible">TShape.Visible</a>) shapes in the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> tree.

<p></p>
<h6 class="description_section">See also</h6>
<dl class="see_also">
  <dt><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ShapesActiveCount">ShapesActiveCount</a></dt>
  <dd>Number of active shapes in the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> tree.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BoundingBox"></a><code>function <b>BoundingBox</b>: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Calculate bounding box, number of triangls and vertexes of all shapa states. For detailed specification of what these functions do (and what does OverTriangulate mean) see appropriate <a class="normal" href="X3DNodes.TAbstractGeometryNode.html">TAbstractGeometryNode</a> methods. Here, we just sum their results for all shapes. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="VerticesCount"></a><code>function <b>VerticesCount</b>(OverTriangulate: boolean): Cardinal;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TrianglesCount"></a><code>function <b>TrianglesCount</b>(OverTriangulate: boolean): Cardinal;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ViewpointsCount"></a><code>function <b>ViewpointsCount</b>: Cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p>
Helper functions for accessing viewpoints defined in the scene. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetViewpointName"></a><code>function <b>GetViewpointName</b>(Idx: integer): string;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="MoveToViewpoint"></a><code>procedure <b>MoveToViewpoint</b>(Idx: integer; Animated: boolean = true);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AddViewpointFromCamera"></a><code>procedure <b>AddViewpointFromCamera</b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; AName: string);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BeforeNodesFree"></a><code>procedure <b>BeforeNodesFree</b>(const InternalChangedAll: boolean = false); override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Release all internal associations with your VRML/X3D nodes. In particular, this will release OpenGL resources connected to your nodes. You should always call this <i>before</i> you (may) free some nodes in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a>.

<p><i>You have to call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> or Load at sometime after <code>BeforeNodesFree</code>, and before you try actual rendering, events etc.</i> Otherwise some stuff may not get recalculated.

<p>InternalChangedAll is for internal use. This is <code>True</code> when <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> calls it at the beginning of work, and means that nothing is freed, and we only require necessary cleanup at the beginning of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>. This way <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> (when it wasn't preceeded by explicit <code>BeforeNodesFree</code>(false)) produces events from stacks CheckForDeletedNodes.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NodeFreeRemovingFromAllParents"></a><code>procedure <b>NodeFreeRemovingFromAllParents</b>(Node: <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Call Node.FreeRemovingFromAllParents, making sure that changes to our VRML/X3D node graph are allowed. This makes sure we call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a> befor freeing, and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> afterwards.

<p>This avoids a common pitfall with relying on <a class="normal" href="CastleShapes.TShape.html">TShape</a> or such existence between <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>. <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a> may free all our <a class="normal" href="CastleShapes.TShape.html">TShape</a> instances, so if you want to free <a class="normal" href="X3DNodes.TX3DNode.html">TX3DNode</a> from our graph &mdash; you typically want to get this <a class="normal" href="X3DNodes.TX3DNode.html">TX3DNode</a> instance *before* calling <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a>. Using this method to free the node ensures this.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="RemoveShape"></a><code>procedure <b>RemoveShape</b>(Shape: <a  href="CastleShapes.TShape.html">TShape</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Remove the shape node from the scene. In case of VRML 1.0 / Inventor, when the Shape doesn't have a node, we remove the geometry node.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ChangedAll"></a><code>procedure <b>ChangedAll</b>; override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notify scene that potentially everything changed in the VRML/X3D graph. This includes adding/removal of some nodes within <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> graph and changing their fields' values. (Before freeing the nodes, remember to also call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a> earlier.)

<p><code>ChangedAll</code> causes recalculation of all things dependent on <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a>, so it's very costly to call this. While you have to call some ChangedXxx method after you changed <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> graph directly, usually you can call something more efficient, like <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedField">ChangedField</a>.

<p><i>Descendant implementors notes:</i> <code>ChangedAll</code> is virtual, when overriding it remember that it's called by constructor of this class, so you can put a lot of your initialization there (instead of in the constructor).

<p><code>ChangedAll</code> calls <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BeforeNodesFree">BeforeNodesFree</a>(true) first, for safety (and TGLShape actually depends on it, see implementation comments).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ChangedField"></a><code>procedure <b>ChangedField</b>(Field: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notify scene that you changed the value of given field.

<p>This does relatively intelligent discovery what could be possibly affected by this field, and updates / invalidates internal information where needed.

<p>Every change you do directly to the VRML/X3D nodes inside <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> (using directly the methods of <a class="normal" href="X3DNodes.TX3DNode.html">TX3DNode</a> or <a class="normal" href="X3DFields.TX3DField.html">TX3DField</a>) must be reported to scene by calling this method. This includes changes to the inactive graph part (e.g. in inactive Switch child), because our shapes have to track it also. Changes to TShape.State.LastNodes (these nodes may come from StateDefaultNodes) should also be reported here. In fact, you can even notify this scene about changes to fields that don't belong to our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> &mdash; nothing bad will happen. We always try to intelligently detect what this change implicates for this VRML/X3D scene.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DoGeometryChanged"></a><code>procedure <b>DoGeometryChanged</b>(const Change: <a  href="CastleSceneCore.html#TGeometryChange">TGeometryChange</a>; LocalGeometryShape: <a  href="CastleShapes.TShape.html">TShape</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when geometry changed. Does <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OnGeometryChanged">OnGeometryChanged</a>, and does some other stuff necessary (mark some octrees for regenerating at next access).

<p>This is public only for overloading (and for internal <a class="normal" href="CastleShapes.TShape.html">TShape</a> access). Do not call this yourself &mdash; <a class="normal" href="CastleShapes.TShape.html">TShape</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> implementations know when and how to call this.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DoViewpointsChanged"></a><code>procedure <b>DoViewpointsChanged</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OnViewpointsChanged">OnViewpointsChanged</a>, if assigned.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DoBoundViewpointVectorsChanged"></a><code>procedure <b>DoBoundViewpointVectorsChanged</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OnBoundViewpointVectorsChanged">OnBoundViewpointVectorsChanged</a>, if assigned.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DoBoundNavigationInfoFieldsChanged"></a><code>procedure <b>DoBoundNavigationInfoFieldsChanged</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ScheduleChangedAll"></a><code>procedure <b>ScheduleChangedAll</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Mechanism to schedule <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> calls.

<p>Since these calls may be costly (traversing the hierarchy), and their results are often not immediately needed by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> or <a class="normal" href="X3DNodes.TX3DNode.html">TX3DNode</a> hierarchy, it's sometimes not desirable to call them immediately when geometry changed / all changed.

<p>So you can use <code>ScheduleChangedAll</code> instead of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>. All event handlers within <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> already do this.

<p>When you're within Begin/<a class="normal" href="CastleSceneCore.TCastleSceneCore.html#EndChangesSchedule">EndChangesSchedule</a>, then <code>ScheduleChangedAll</code> just sets an internal flag and actual <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> will be done only once at <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#EndChangesSchedule">EndChangesSchedule</a>. Otherwise (when not within Begin/<a class="normal" href="CastleSceneCore.TCastleSceneCore.html#EndChangesSchedule">EndChangesSchedule</a>), <code>ScheduleChangedAll</code> will immediately call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BeginChangesSchedule"></a><code>procedure <b>BeginChangesSchedule</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="EndChangesSchedule"></a><code>procedure <b>EndChangesSchedule</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Info"></a><code>function <b>Info</b>( ATriangleVerticesCounts, ABoundingBox, AManifoldAndBorderEdges: boolean): string;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns short information about the scene. This consists of a few lines, separated by <a class="normal" href="CastleUtils.html#NL">CastleUtils.NL</a>. Last line also ends with <a class="normal" href="CastleUtils.html#NL">CastleUtils.NL</a>.

<p>Note that AManifoldAndBorderEdges = <code>True</code> will require calculation of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> (if they weren't calculated already). If you don't want to actually use them (if you wanted only to report them to user), then you may free them (freeing some memory) with <code><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#FreeResources">FreeResources</a>([frManifoldAndBorderEdges])</code>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="InfoTriangleVerticesCounts"></a><code>function <b>InfoTriangleVerticesCounts</b>: string;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="InfoBoundingBox"></a><code>function <b>InfoBoundingBox</b>: string;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="InfoManifoldAndBorderEdges"></a><code>function <b>InfoManifoldAndBorderEdges</b>: string;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OctreeRendering"></a><code>function <b>OctreeRendering</b>: <a  href="CastleShapeOctree.TShapeOctree.html">TShapeOctree</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
The dynamic octree containing all visible shapes. It's useful for &quot;frustum culling&quot;, it will be automatically used by TCastleScene.RenderFrustum to speed up the rendering.

<p>This octree will be automatically updated on dynamic scenes (when e.g. animation moves some shape by changing it's transformation).

<p>Add ssRendering to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> property to have this available, otherwise it's <code>Nil</code>.

<p>Note that when VRML/X3D scene contains Collision nodes, this octree contains the <i>visible (not necessarily collidable)</i> objects.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OctreeDynamicCollisions"></a><code>function <b>OctreeDynamicCollisions</b>: <a  href="CastleShapeOctree.TShapeOctree.html">TShapeOctree</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
The dynamic octree containing all collidable items.

<p>This is actually a hierarchy of octrees: scene is partitioned first into Shapes (each instance of VRML/X3D geometry node), and then each Shape has an octree of triangles inside.

<p>This octree is useful for all kinds of collision detection. Compared to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollidableTriangles">OctreeCollidableTriangles</a>, it is (very slightly on typical scenes) less efficient, but it can also be updated very fast. For example, merely transforming some Shape means that only one item needs to be moved in the top-level shape tree. So this is the most important structure for collision detection on dynamic scenes.

<p>You can use <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollisions">OctreeCollisions</a> to get either <code>OctreeDynamicCollisions</code> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollidableTriangles">OctreeCollidableTriangles</a>, whichever is available.

<p>Add ssDynamicCollisions to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> property to have this available, otherwise it's <code>Nil</code>.

<p>Note that when VRML/X3D scene contains Collision nodes, this octree contains the <i>collidable (not necessarily rendered)</i> objects.

<p>TODO: Temporarily, this is updated simply by rebuilding. This is a work in progress.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OctreeVisibleTriangles"></a><code>function <b>OctreeVisibleTriangles</b>: <a  href="CastleTriangleOctree.TTriangleOctree.html">TTriangleOctree</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
The octree containing all visible triangles. It's mainly useful for ray-tracers. When rendering using OpenGL, this has no use currently.

<p>This octree is not updated on scene changes. In fact, the scene contents cannot change when this octree is created &mdash; as this octree keeps pointers to some states that may become invalid in dynamic scenes.

<p>Add ssVisibleTriangles to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> property to have this available, otherwise it's <code>Nil</code>.

<p>Note that when VRML/X3D scene contains Collision nodes, this octree contains the <i>visible (not necessarily collidable)</i> objects.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OctreeCollidableTriangles"></a><code>function <b>OctreeCollidableTriangles</b>: <a  href="CastleTriangleOctree.TTriangleOctree.html">TTriangleOctree</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
The octree containing all collidable triangles. This is pretty much unused for now.

<p>It may be useful if you're absolutely sure that you have a static scene (nothing changes, e.g. because <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a> = <code>False</code>) and you want to have collision detection with the scene.

<p>For dynamic scenes, using this is a bad idea as this octree is not updated on scene changes. In fact, the scene contents cannot change when this octree is created &mdash; as this octree keeps pointers to some states that may become invalid in dynamic scenes. Use <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeDynamicCollisions">OctreeDynamicCollisions</a> for dynamic scenes.

<p>You can use <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollisions">OctreeCollisions</a> to get either <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeDynamicCollisions">OctreeDynamicCollisions</a> or <code>OctreeCollidableTriangles</code>, whichever is available.

<p>Add ssCollidableTriangles to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> property to have this available, otherwise it's <code>Nil</code>.

<p>Note that when VRML/X3D scene contains Collision nodes, this octree contains the <i>collidable (not necessarily rendered)</i> objects.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OctreeCollisions"></a><code>function <b>OctreeCollisions</b>: <a  href="X3DTriangles.TBaseTrianglesOctree.html">TBaseTrianglesOctree</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Octree for collisions. This returns either <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollidableTriangles">OctreeCollidableTriangles</a> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeDynamicCollisions">OctreeDynamicCollisions</a>, whichever is available (or <code>Nil</code> if none). Be sure to add ssDynamicCollisions or ssCollidableTriangles to have this available.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TriangleOctreeLimits"></a><code>function <b>TriangleOctreeLimits</b>: <a  href="CastleOctree.html#POctreeLimits">POctreeLimits</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Properties of created triangle octrees. See TriangleOctree unit comments for description.

<p>Default value comes from <a class="normal" href="CastleTriangleOctree.html#DefTriangleOctreeLimits">DefTriangleOctreeLimits</a>.

<p>If <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TriangleOctreeProgressTitle">TriangleOctreeProgressTitle</a> &lt;&gt; '', it will be shown during octree creation (through <a class="normal" href="CastleProgress.TProgress.html#Title">TProgress.Title</a>). Will be shown only if progress is not active already ( so we avoid starting &quot;progress bar within progress bar&quot;).

<p>They are used only when the octree is created, so usually you want to set them right before changing <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> from [] to something else.

<p>Note that particular models may override this by [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_octree_properties">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_octree_properties</a>].

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ShapeOctreeLimits"></a><code>function <b>ShapeOctreeLimits</b>: <a  href="CastleOctree.html#POctreeLimits">POctreeLimits</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Properties of created shape octrees. See ShapeOctree unit comments for description.

<p>Default value comes from <a class="normal" href="CastleShapeOctree.html#DefShapeOctreeLimits">DefShapeOctreeLimits</a>.

<p>If <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ShapeOctreeProgressTitle">ShapeOctreeProgressTitle</a> &lt;&gt; '', it will be shown during octree creation (through <a class="normal" href="CastleProgress.TProgress.html#Title">TProgress.Title</a>). Will be shown only if progress is not active already (so we avoid starting &quot;progress bar within progress bar&quot;).

<p>They are used only when the octree is created, so usually you want to set them right before changing <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a> from [] to something else.

<p>Note that particular models may override this by [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_octree_properties">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_octree_properties</a>].

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetViewpoint"></a><code>function <b>GetViewpoint</b>( out ProjectionType: <a  href="CastleRays.html#TProjectionType">TProjectionType</a>; out CamPos, CamDir, CamUp, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const ViewpointDescription: string = ''): <a  href="X3DNodes.TAbstractViewpointNode.html">TAbstractViewpointNode</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Viewpoint defined in the 3D file (or some default camera settings if no viewpoint is found).

<p><code>GetViewpoint</code> seeks for VRML/X3D nodes like Viewpoint, OrthoViewpoint (actually, any X3DViewpointNode) and VRML 1.0 PerspectiveCamera and OrthographicCamera. <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#GetPerspectiveViewpoint">GetPerspectiveViewpoint</a> seeks only for perspective viewpoints.

<p>If ViewpointDescription = '', they return the first found viewpoint node. Otherwise, they look for X3DViewpointNode with description field mathing given string.

<p>If camera properties were found in some node, it returns this node. Otherwise it returns nil. This way you can optionally extract some additional info from used viewpoint node, or do something special if default values were used. Often you will just ignore result of this function &mdash; after all, the most important feature of this function is that you don't <i>have</i> to care about details of dealing with camera node.

<p>Returned CamDir and CamUp and GravityUp are always normalized &mdash; reasons the same as for <a class="normal" href="X3DNodes.TAbstractViewpointNode.html#GetView">TAbstractViewpointNode.GetView</a>.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetPerspectiveViewpoint"></a><code>function <b>GetPerspectiveViewpoint</b>( out CamPos, CamDir, CamUp, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>; const ViewpointDescription: string = ''): <a  href="X3DNodes.TAbstractViewpointNode.html">TAbstractViewpointNode</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TrianglesListShadowCasters"></a><code>function <b>TrianglesListShadowCasters</b>: <a  href="CastleSceneCore.TTrianglesShadowCastersList.html">TTrianglesShadowCastersList</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns an array of triangles that should be shadow casters for this scene.

<p>Additionally, <a class="normal" href="CastleSceneCore.TTrianglesShadowCastersList.html">TTrianglesShadowCastersList</a> contains some additional information needed for rendering with shadows: currently, this means <a class="normal" href="CastleSceneCore.TTrianglesShadowCastersList.html#OpaqueCount">TTrianglesShadowCastersList.OpaqueCount</a>.

<p>Results of these functions are cached, and are also owned by this object. So don't modify it, don't free it.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ManifoldEdges"></a><code>function <b>ManifoldEdges</b>: <a  href="CastleSceneCore.html#TManifoldEdgeList">TManifoldEdgeList</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
<code>ManifoldEdges</code> is a list of edges that have exactly <b>two</b> neighbor triangles, and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> is a list of edges that have exactly <b>one</b> neighbor triangle. These are crucial for rendering shadows using shadow volumes.

<p>Edges with more than two neighbors are allowed. If an edge has an odd number of neighbors, it will be placed in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a>. Every other pair of neighbors will be &quot;paired&quot; and placed as one manifold edge inside <code>ManifoldEdges</code>. So actually edge with exactly 1 neighbor (odd number, so makes one <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> item) and edge with exactly 2 neighbors (even number, one pair of triangles, makes one item in <code>ManifoldEdges</code>) &mdash; they are just a special case of a general rule, that allows any neighbors number.

<p>Note that vertexes must be consistently ordered in triangles. For two neighboring triangles, if one triangle's edge has order V0, V1, then on the neighbor triangle the order must be reversed (V1, V0). This is true in almost all situations, for example if you have a closed solid object and all outside faces are ordered consistently (all CCW or all CW). Failure to order consistently will result in edges not being &quot;paired&quot;, i.e. we will not recognize that some 2 edges are in fact one edge between two neighboring triangles &mdash; and this will result in more edges in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a>.

<p>Both of these lists are calculated at once, i.e. when you call <code>ManifoldEdges</code> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> for the 1st time, actually both <code>ManifoldEdges</code> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> are calculated at once. If all edges are in <code>ManifoldEdges</code>, then the scene is a correct closed manifold, or rather it's composed from any number of closed manifolds.

<p>Results of these functions are cached, and are also owned by this object. So don't modify it, don't free it.

<p>This uses <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TrianglesListShadowCasters">TrianglesListShadowCasters</a>.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BorderEdges"></a><code>function <b>BorderEdges</b>: <a  href="CastleSceneCore.html#TBorderEdgeList">TBorderEdgeList</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ShareManifoldAndBorderEdges"></a><code>procedure <b>ShareManifoldAndBorderEdges</b>( ManifoldShared: <a  href="CastleSceneCore.html#TManifoldEdgeList">TManifoldEdgeList</a>; BorderShared: <a  href="CastleSceneCore.html#TBorderEdgeList">TBorderEdgeList</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
This allows you to &quot;share&quot; <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> values between <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> instances, to conserve memory and preparation time. The values set here will be returned by following <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> calls. The values passed here will <i>not be owned</i> by this object &mdash; you gave this, you're responsible for freeing it.

<p>This is handy if you know that this scene has the same <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> contents as some other scene. In particular, this is extremely handy in cases of animations in <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a>, where all scenes actually need only a single instance of <a class="normal" href="CastleSceneCore.html#TManifoldEdgeList">TManifoldEdgeList</a> and <a class="normal" href="CastleSceneCore.html#TBorderEdgeList">TBorderEdgeList</a>, this greatly speeds up <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a> loading and reduces memory use.

<p>Note that passing here as values the same references that are already returned by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> / <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> is always guaranteed to be a harmless operation. If <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ManifoldEdges">ManifoldEdges</a> / <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BorderEdges">BorderEdges</a> was owned by this object, it will remain owned in this case (while in normal sharing situation, values set here are assumed to be owned by something else).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="FreeResources"></a><code>procedure <b>FreeResources</b>(Resources: <a  href="CastleSceneCore.html#TSceneFreeResources">TSceneFreeResources</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Frees some scene resources, to conserve memory. See <a class="normal" href="CastleSceneCore.html#TSceneFreeResources">TSceneFreeResources</a> documentation.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="UnregisterScene"></a><code>procedure <b>UnregisterScene</b>(Node: <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Recursively unset node's <a class="normal" href="X3DNodes.TX3DNode.html#Scene">TX3DNode.Scene</a>. Useful if you want to remove part of a node graph and put it in some other scene.

<p><i>You almost never need to call this method</i> &mdash; this is done automatically for you when <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> is destroyed. However, if you process <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> graph and extract some node from it (that is, delete node from our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> graph, but instead of freeing it you insert it into some other VRML/X3D graph) you must call it to manually &quot;untie&quot; this node (and all it's children) from this <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> instance.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Press"></a><code>function <b>Press</b>(const Event: <a  href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Release"></a><code>function <b>Release</b>(const Event: <a  href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceActivate"></a><code>function <b>PointingDeviceActivate</b>(const Active: boolean; const Distance: Single): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceMove"></a><code>function <b>PointingDeviceMove</b>(const Pick: <a  href="Castle3D.TRayCollisionNode.html">TRayCollisionNode</a>; const Distance: Single): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when pointing device moves. This may generate the continously-generated events like hitPoint_changed, also it updates <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverPoint">PointingDeviceOverPoint</a>, thus producing isOver and such events.

<p>To make pointing-device sensors work Ok, make sure you have non-nil <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OctreeCollisions">OctreeCollisions</a> (e.g. include ssDynamicCollisions in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Spatial">Spatial</a>).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceSensors"></a><code>function <b>PointingDeviceSensors</b>: <a  href="X3DNodes.TPointingDeviceSensorList.html">TPointingDeviceSensorList</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Pointing-device sensors over which the pointing device is. This is just a shortcut for <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a>&circ;.State.PointingDeviceSensors, returning <code>Nil</code> if <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a> = <code>Nil</code>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceClear"></a><code>procedure <b>PointingDeviceClear</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Clear any references to OverItem passed previously to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceMove">PointingDeviceMove</a>. This is sometimes useful, because <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceMove">PointingDeviceMove</a> may save the last passed OverItem, and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActivate">PointingDeviceActivate</a> may even save some sensors for a longer time.

<p>You could free it by calling <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceMove">PointingDeviceMove</a> with Collision = <code>Nil</code>, but this could cause other X3D events, so it's undesirable to call this when you're going to e.g. release the scene or it's octree. Also, you would have to deactivate sensor first, causing even more events.

<p>So this method clears any references to saved OverItem and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActiveSensors">PointingDeviceActiveSensors</a>, without calling any VRML/X3D events. Note that this still calls <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#DoPointingDeviceSensorsChange">DoPointingDeviceSensorsChange</a> (making <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#OnPointingDeviceSensorsChange">OnPointingDeviceSensorsChange</a> event), if <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActiveSensors">PointingDeviceActiveSensors</a> / <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceSensors">PointingDeviceSensors</a> possibly changed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Update"></a><code>procedure <b>Update</b>(const SecondsPassed: Single; var RemoveMe: <a  href="Castle3D.html#TRemoveType">TRemoveType</a>); override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetTime"></a><code>procedure <b>SetTime</b>(const NewValue: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Change current scene time, setting <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a>. It is crucial that you call this continously to have some VRML/X3D time-dependent features working, like TimeSensor and MovieTexture. See <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> for details what is affected by this.

<p>This is automatically taken care of if you added this scene to <a class="normal" href="CastleWindow.TCastleWindowCustom.html#Controls">TCastleWindowCustom.Controls</a> or <a class="normal" href="CastleControl.TCastleControlCustom.html#Controls">TCastleControlCustom.Controls</a>. Then our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Update">Update</a> takes care of doing the job, according to <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TimePlaying">TimePlaying</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TimePlayingSpeed">TimePlayingSpeed</a>.

<p>This causes time to be passed to appropriate time-dependent nodes, events will be called etc.

<p><code>SetTime</code> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#IncreaseTime">IncreaseTime</a> do exactly the same, the difference is only that for <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#IncreaseTime">IncreaseTime</a> you specify increase in the time (that is, NewTime = <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> + TimeIncrease). Use whichever version is more handy.

<p>Following X3D specification, time should only grow. So NewValue should be &gt; <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> (or TimeIncrease &gt; 0). Otherwise we ignore this call. For resetting the time (when you don't necessarily want to grow <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a>) see <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ResetTime">ResetTime</a>.

<p>If a change of Time will produce some visible change in the VRML/X3D model (for example, MovieTexture will change, or TimeSensor change will be routed by interpolator to coordinates of some visible node) it will be reported by usual method, that is <a class="normal" href="Castle3D.T3D.html#VisibleChangeHere">VisibleChangeHere</a>.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IncreaseTime"></a><code>procedure <b>IncreaseTime</b>(const TimeIncrease: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IncreaseTimeTick"></a><code>procedure <b>IncreaseTimeTick</b>; override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Increase <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> by some infinitely small value. This simply increments <code>Time.PlusTicks</code>, which may be sometimes useful: this allows events to pass through the ROUTEs without the fear of being rejected as &quot;recursive (cycle) events&quot;.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetTime"></a><code>function <b>GetTime</b>: <a  href="X3DTime.TX3DTime.html">TX3DTime</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ResetTime"></a><code>procedure <b>ResetTime</b>(const NewValue: <a  href="X3DTime.html#TFloatTime">TFloatTime</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Set <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> to arbitrary value.

<p>You should only use this when you loaded new VRML/X3D model.

<p>Unlike <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#SetTime">SetTime</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#IncreaseTime">IncreaseTime</a>, this doesn't require that <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> grows. It still does some time-dependent events work, although some time-dependent nodes may be just unconditionally reset by this to starting value (as they keep local time, and so require TimeIncrease notion, without it we can only reset them).

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ResetTimeAtLoad"></a><code>procedure <b>ResetTimeAtLoad</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Set <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> to suitable initial value after loading a world.

<p>This honours VRML/X3D specification about VRML/X3D time origin, and our extension [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_time_origin_at_load">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_time_origin_at_load</a>].</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetBackgroundStack"></a><code>function <b>GetBackgroundStack</b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetFogStack"></a><code>function <b>GetFogStack</b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetNavigationInfoStack"></a><code>function <b>GetNavigationInfoStack</b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetViewpointStack"></a><code>function <b>GetViewpointStack</b>: <a  href="X3DNodes.TX3DBindableStackBasic.html">TX3DBindableStackBasic</a>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraChanged"></a><code>procedure <b>CameraChanged</b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Changes: <a  href="Castle3D.html#TVisibleChanges">TVisibleChanges</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Call when camera position/dir/up changed, to update things depending on camera settings. This includes sensors like ProximitySensor, LOD nodes, camera settings for next RenderedTexture update and more. It automatically does proper <a class="normal" href="Castle3D.T3D.html#VisibleChangeHere">VisibleChangeHere</a> (OnVisibleChangeHere).

<p></p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Changes</dt>
<dd>describes changes to the scene caused by camera change. This is needed if some geometry / light follows the player.

<p>We'll automatically add here vcCamera, so not need to specify it.

<p>You should add here vcVisibleNonGeometry if player has a headlight. You should add here vcVisibleGeometry if player has a rendered avatar.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="RegisterCompiledScript"></a><code>procedure <b>RegisterCompiledScript</b>(const HandlerName: string; Handler: <a  href="CastleSceneCore.html#TCompiledScriptHandler">TCompiledScriptHandler</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Register compiled script handler, for VRML/X3D Script node with &quot;compiled:&quot; protocol. See [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_script_compiled">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_script_compiled</a>].</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraFromNavigationInfo"></a><code>procedure <b>CameraFromNavigationInfo</b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const ForceNavigationType: string = ''; const ForceRadius: Single = 0);</code></td>
</tr>
<tr><td colspan="2">
<p>
Update camera properties based on currently bound NavigationInfo.

<p>Bound NavigationInfo node is taken from NavigationInfoStack.Top. If no NavigationInfo is bound, this is <code>Nil</code>, and we will create camera corresponding to default NavigationInfo values (this is following VRML/X3D spec), so it will have initial type = EXAMINE.

<p>You can pass ForceNavigationType = 'EXAMINE', 'WALK', 'FLY', 'NONE' etc. (see X3D specification about NavigationInfo node, type field, on [<a  href="http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/navigation.html#NavigationInfo">http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/navigation.html#NavigationInfo</a>], although not all values are handled by our engine now). This way we will ignore what NavigationInfo.type information inside the scene says.

<p>This initializes a lot of camera properties: </p>

<ul class="paragraph_spacing">
  <li><p><a class="normal" href="CastleCameras.TCamera.html#Radius">TCamera.Radius</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TCamera.html#Input">TCamera.Input</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#Gravity">TWalkCamera.Gravity</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#PreferGravityUpForRotations">TWalkCamera.PreferGravityUpForRotations</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#PreferGravityUpForMoving">TWalkCamera.PreferGravityUpForMoving</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#PreferredHeight">TWalkCamera.PreferredHeight</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#ClimbHeight">TWalkCamera.ClimbHeight</a>,</p></li>
  <li><p><a class="normal" href="CastleCameras.TWalkCamera.html#HeadBobbing">TWalkCamera.HeadBobbing</a>, <a class="normal" href="CastleCameras.TWalkCamera.html#HeadBobbingTime">TWalkCamera.HeadBobbingTime</a>.</p></li>
</ul>

<p>

<p>Box is the expected bounding box of the whole 3D scene. Usually, it should be just Scene.BoundingBox, but it may be something larger, if this scene is part of a larger world.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraFromViewpoint"></a><code>procedure <b>CameraFromViewpoint</b>(ACamera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const RelativeCameraTransform: boolean = false; const AllowTransitionAnimate: boolean = true);</code></td>
</tr>
<tr><td colspan="2">
<p>
Update camera to the currently bound VRML/X3D viewpoint. When no viewpoint is currently bound, we will go to a suitable viewpoint to see the whole scene (based on a scene bounding box).

<p>The initial camera vectors (<a class="normal" href="CastleCameras.TCamera.html#InitialPosition">TCamera.InitialPosition</a>, <a class="normal" href="CastleCameras.TCamera.html#InitialDirection">TCamera.InitialDirection</a>, <a class="normal" href="CastleCameras.TCamera.html#InitialUp">TCamera.InitialUp</a>, <a class="normal" href="CastleCameras.TWalkCamera.html#GravityUp">TWalkCamera.GravityUp</a>) are set to the current viewpoint. This is done regardless of the RelativeCameraTransform value.

<p>How current camera vectors change depends on RelativeCameraTransform:

<p></p>

<ul class="paragraph_spacing">
  <li><p>RelativeCameraTransform = <code>False</code> means that we just set current vectors to the initial vectors. In other words, camera jumps to the viewpoint.

<p>In this case, AllowTransitionAnimate determines if we allow moving camera by a smooth transition. If this is <code>True</code>, and also NavigationInfo allows it (see <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraTransition">CameraTransition</a>), then camera will jump smoothy. Otherwise camera will jump to viewpoint immediately.</p></li>
  <li><p>RelativeCameraTransform = <code>True</code> means that we translate/rotate the current camera in the same manner as initial camera changed. This is suitable when you change transformation, position or orientation of the VRML/X3D Viewpoint node: conceptually, there exists a &quot;user&quot; camera transformation that is the child of the viewpoint. When viewpoint is moved, then the current camera moves with it.</p></li>
</ul>

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CreateCamera"></a><code>function <b>CreateCamera</b>(AOwner: TComponent; const Box: <a  href="CastleBoxes.TBox3D.html">TBox3D</a>; const ForceNavigationType: string = ''): <a  href="CastleCameras.TUniversalCamera.html">TUniversalCamera</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Create new camera instance, and bind it to current NavigationInfo and Viewpoint. This is only a shortcut for creating <a class="normal" href="CastleCameras.TUniversalCamera.html">TUniversalCamera</a> and then using <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraFromNavigationInfo">CameraFromNavigationInfo</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraFromViewpoint">CameraFromViewpoint</a>.

<p><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraFromViewpoint">CameraFromViewpoint</a> here is called with AllowTransitionAnimate = <code>False</code>, because animating camera in this case would be wrong (user does not want to see the animation from default camera position).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CreateCamera"></a><code>function <b>CreateCamera</b>(AOwner: TComponent; const ForceNavigationType: string = ''): <a  href="CastleCameras.TUniversalCamera.html">TUniversalCamera</a>; deprecated;</code></td>
</tr>
<tr><td colspan="2">
<p class="hint_directive">Warning: this symbol is deprecated.</p>&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraTransition"></a><code>procedure <b>CameraTransition</b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Position, Direction, Up: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Make Camera go to the view given by Position, Direction, Up.

<p>Honours current NavigationInfo.transitionType and transitionTime. If transitionType indicates instanteneous transition, then jumps by simple <code>Camera.SetView(Position, Direction, Up)</code>. Otherwise makes a smooth animation into new values by <code>Camera.AnimateTo(Position, Direction, TransitionTime)</code>.

<p>Will generate NavigationInfo.transitionComplete when transition ends.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraTransition"></a><code>procedure <b>CameraTransition</b>(Camera: <a  href="CastleCameras.TCamera.html">TCamera</a>; const Position, Direction, Up, GravityUp: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="MainLightForShadows"></a><code>function <b>MainLightForShadows</b>( out AMainLightPosition: <a  href="CastleVectors.html#TVector4Single">TVector4Single</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Detect position/direction of the main light that produces shadows. This is useful when you want to make shadows on the scene from only a single light, but your scene has many lights.

<p>The main light is simply one with both <code>shadowVolumes</code> and <code>shadowVolumesMain</code> fields set to <code>True</code>. See [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_shadows">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_shadows</a>] for more info. If no light with shadowVolumes = shadowVolumesMain = TRUE is present then this function returns <code>False</code>, since AMainLightPosition cannot be calculated.

<p>AMainLightPosition[3] is always set to 1 (positional light) or 0 (indicates that this is a directional light).

<p></p>
<h6 class="description_section">See also</h6>
<dl class="see_also">
  <dt><a class="normal" href="CastleSceneManager.TCastleAbstractViewport.html#MainLightForShadows">TCastleAbstractViewport.MainLightForShadows</a></dt>
  <dd>Detect position/direction of the main light that produces shadows.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CustomHeadlight"></a><code>function <b>CustomHeadlight</b>: <a  href="X3DNodes.TAbstractLightNode.html">TAbstractLightNode</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Light node that should be used for headlight, or <code>Nil</code> if default directional headlight is suitable.

<p>This never returns <code>Nil</code>. It's not concerned whether the headlight should actually be used &mdash; for this, see <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#HeadlightOn">HeadlightOn</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ViewChangedSuddenly"></a><code>procedure <b>ViewChangedSuddenly</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notify the scene that camera position/direction changed a lot. It may be called when you make a sudden change to the camera, like teleporting the player to a completely different scene part.

<p>This may be used as a hint by some optimizations. It tells that what will be visible in the next rendered frame will be probably very different from what was visible in the last frame.

<p><i>Current implementation notes:</i>

<p>Currently, this is used by <a class="normal" href="CastleScene.TCastleScene.html">TCastleScene</a> if you use Attributes.UseOcclusionQuery. Normally, occlusion query tries to reuse results from previous frame, using the assumption that usually camera changes slowly and objects appear progressively in the view. When you make a sudden camera jump/change, this assumption breaks, so it's better to resign from occlusion query for the very next frame. This method will do exactly that.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PrepareResources"></a><code>procedure <b>PrepareResources</b>(Options: <a  href="Castle3D.html#TPrepareResourcesOptions">TPrepareResourcesOptions</a>; ProgressStep: boolean; BaseLights: <a  href="Castle3D.html#TAbstractLightInstancesList">TAbstractLightInstancesList</a>); override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Dragging"></a><code>function <b>Dragging</b>: boolean; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Caption"></a><code>function <b>Caption</b>: string;</code></td>
</tr>
<tr><td colspan="2">
<p>
Nice scene caption. Uses the &quot;title&quot; of WorldInfo node inside the VRML/X3D scene. If there is no WorldInfo node (or it has empty title) then result is based on loaded <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Node"></a><code>function <b>Node</b>(const NodeName: string): <a  href="X3DNodes.TX3DNode.html">TX3DNode</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Simple methods to find a named X3D node (and a field or event within this node) in a current node graph. They search all nodes (in active or not) graph parts.

<p>For more flexible and extensive search methods, use <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> property along with <a class="normal" href="X3DNodes.TX3DNode.html#FindNodeByName">TX3DNode.FindNodeByName</a>, <a class="normal" href="X3DNodes.TX3DNode.html#FindNode">TX3DNode.FindNode</a> and other methods.

<p> </p>
<h6 class="description_section">Exceptions raised</h6>
<dl class="exceptions_raised">
<dt><a class="normal" href="X3DFields.EX3DNotFound.html">EX3DNotFound</a></dt>
<dd>If given node (or field/event inside this node) could not be found.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Field"></a><code>function <b>Field</b>(const NodeName, FieldName: string): <a  href="X3DFields.TX3DField.html">TX3DField</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Event"></a><code>function <b>Event</b>(const NodeName, EventName: string): <a  href="X3DFields.TX3DEvent.html">TX3DEvent</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Animations"></a><code>function <b>Animations</b>: TStringList;</code></td>
</tr>
<tr><td colspan="2">
<p>
List the names of available animations in this file. Detected in VRML/X3D models as simply TimeSensor nodes with node name starting with &quot;Animation_Xxx&quot; (see <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#AnimationPrefix">AnimationPrefix</a> property). Caller is responsible for freeing resulting TStringList instance.

<p>Note that the list of animations may change it you rebuild the underlying X3D nodes graph, for example if you start to delete / add some TimeSensor nodes.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PlayAnimation"></a><code>function <b>PlayAnimation</b>(const AnimationName: string; const Looping: <a  href="CastleSceneCore.html#TPlayAnimationLooping">TPlayAnimationLooping</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Play a named animation (like detected by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Animations">Animations</a> method). Also stops previously playing named animation, if any. Returns whether animation (corresponding TimeSensor node) was found.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AnimationDuration"></a><code>function <b>AnimationDuration</b>(const AnimationName: string): <a  href="X3DTime.html#TFloatTime">TFloatTime</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Duration, in seconds, of the named animation (named animations are detected by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Animations">Animations</a> method). 0 if not found.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="VisibilitySensors"></a><code>property <b>VisibilitySensors</b>: TVisibilitySensors read FVisibilitySensors;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Shapes"></a><code>property <b>Shapes</b>: <a  href="CastleShapes.TShapeTree.html">TShapeTree</a> read FShapes;</code></td>
</tr>
<tr><td colspan="2">
<p>
Simple (usually very flat) tree of shapes within this VRML/X3D scene.

<p>Contents of this tree are read-only from outside.

<p>Note that the only place where <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> structure is rebuild in this class is <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> procedure. So e.g. if you want to do something after each change of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Shapes">Shapes</a> tree, you can simply override <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> and do your work after calling &quot;inherited&quot;.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnGeometryChanged"></a><code>property <b>OnGeometryChanged</b>: <a  href="CastleSceneCore.html#TSceneGeometryChanged">TSceneGeometryChanged</a>
      read FOnGeometryChanged write FOnGeometryChanged;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notification when geometry changed. &quot;Geometry changed&quot; means that the positions of triangles changed. This is not send when merely things like material changed.

<p>It is not guaranteed that octrees are already recalculated when this is called. (They may be recalculated only on-demand, that is when you actually access them.) However, it is guaranteed that shape's transformation (like TShape.State.Transform) are already updated.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnViewpointsChanged"></a><code>property <b>OnViewpointsChanged</b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnViewpointsChanged write FOnViewpointsChanged;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notification when the list of viewpoints in the scene possibly changed.

<p>Note that this doesn't necessarily mean that the current, bound viewpoint changed (although it could). If you only want to get notified when currently <i>bound</i> viewpoint changes, then what you seek is rather <a class="normal" href="CastleSceneCore.TX3DBindableStack.html#OnBoundChanged">ViewpointStack.OnBoundChanged</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnBoundViewpointVectorsChanged"></a><code>property <b>OnBoundViewpointVectorsChanged</b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnBoundViewpointVectorsChanged write FOnBoundViewpointVectorsChanged;</code></td>
</tr>
<tr><td colspan="2">
<p>
Notification when the currently bound viewpoint's vectors (position/orientation and such) changed.

<p>More precisely, this is called whenever values generated by ViewpointStack.Top.GetView changed.

<p>It cannot be called when ViewpointStack.Top = <code>Nil</code>. Note that this also doesn't notify you about changes to currently bound viewpoint, for this you rather want to use <a class="normal" href="CastleSceneCore.TX3DBindableStack.html#OnBoundChanged">ViewpointStack.OnBoundChanged</a>. This is called only when <i>currently bound viewpoint stays the same, only it's vectors change</i>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnBoundNavigationInfoFieldsChanged"></a><code>property <b>OnBoundNavigationInfoFieldsChanged</b>: <a  href="CastleSceneCore.html#TSceneNotification">TSceneNotification</a>
      read FOnBoundNavigationInfoFieldsChanged write FOnBoundNavigationInfoFieldsChanged;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="RootNode"></a><code>property <b>RootNode</b>: <a  href="X3DNodes.TX3DRootNode.html">TX3DRootNode</a> read FRootNode write FRootNode;</code></td>
</tr>
<tr><td colspan="2">
<p>
Actual VRML/X3D graph defining this scene.

<p>It is allowed to change contents of <code>RootNode</code>. Just make sure the scene is notified about these changes &mdash; you should assign fields using methods like <a class="normal" href="X3DFields.TX3DField.html#Send">TX3DField.Send</a> or (if you assign field values directly, like <code><a class="normal" href="X3DFields.TSFVec3f.html#Value">TSFVec3f.Value</a> := ...</code>) call <a class="normal" href="X3DFields.TX3DField.html#Changed">TX3DField.Changed</a>. Eventually, you can call our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedField">ChangedField</a> method (but it's usually nicer to use <a class="normal" href="X3DFields.TX3DField.html#Changed">TX3DField.Changed</a>).

<p>It is also allowed to change the value of <code>RootNode</code> and even to set <code>RootNode</code> to <code>Nil</code>. Be sure to call <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a> after this. Changing <code>RootNode</code> allows you to load and unload whole new VRML/X3D graph (for example from some 3D file) whenever you want, and keep the same <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> instance (with the same rendering settings and such).

<p>Note that there is also a trick to conserve memory use. After you've done <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PrepareResources">PrepareResources</a> some things are precalculated here, and <code>RootNode</code> is actually not used, unless you use <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a>. So you can free <code>RootNode</code> (and set it to nil here) <i>without calling <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a></i> and some things will just continue to work, unaware of the fact that the underlying <code>RootNode</code> structure is lost. Note that this is still considered a &quot;dirty trick&quot;, and you will have to be extra-careful then about what methods/properties from this class. Generally, use only things that you prepared with <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PrepareResources">PrepareResources</a>. So e.g. calling Render or using <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BoundingBox">BoundingBox</a>. If all your needs are that simple, then you can use this trick to save some memory. This is actually useful when using <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a>, as it creates a lot of intermediate node structures and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html">TCastleSceneCore</a> instances.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OwnsRootNode"></a><code>property <b>OwnsRootNode</b>: boolean read FOwnsRootNode write FOwnsRootNode default true;</code></td>
</tr>
<tr><td colspan="2">
<p>
If <code>True</code>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RootNode">RootNode</a> will be freed by destructor of this class.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TriangleOctreeProgressTitle"></a><code>property <b>TriangleOctreeProgressTitle</b>: string
      read  FTriangleOctreeProgressTitle
      write FTriangleOctreeProgressTitle;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ShapeOctreeProgressTitle"></a><code>property <b>ShapeOctreeProgressTitle</b>: string
      read  FShapeOctreeProgressTitle
      write FShapeOctreeProgressTitle;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceOverItem"></a><code>property <b>PointingDeviceOverItem</b>: <a  href="X3DTriangles.html#PTriangle">PTriangle</a>
      read FPointingDeviceOverItem write FPointingDeviceOverItem;</code></td>
</tr>
<tr><td colspan="2">
<p>
Current item over which the pointing device is. <code>Nil</code> if over none. For example, you can investigate it's pointing device sensors (in <code>PointingDeviceOverItem</code>&circ;.State.PointingDeviceSensors), although there's a shortcut for just this in <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceSensors">PointingDeviceSensors</a>. You can change this by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceMove">PointingDeviceMove</a> and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceClear">PointingDeviceClear</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceOverPoint"></a><code>property <b>PointingDeviceOverPoint</b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a>
      read FPointingDeviceOverPoint write FPointingDeviceOverPoint;</code></td>
</tr>
<tr><td colspan="2">
<p>
Current 3D point under the pointing device. Only meaningful when <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a> &lt;&gt; nil, otherwise undefined.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceActiveSensors"></a><code>property <b>PointingDeviceActiveSensors</b>: <a  href="X3DNodes.TX3DNodeList.html">TX3DNodeList</a>
      read FPointingDeviceActiveSensors;</code></td>
</tr>
<tr><td colspan="2">
<p>
Currently active pointing-device sensors. Only <a class="normal" href="X3DNodes.TAbstractPointingDeviceSensorNode.html">TAbstractPointingDeviceSensorNode</a> instances. Always empty when <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActive">PointingDeviceActive</a> = <code>False</code>. Read-only from outside of this class.

<p>Note that sensor specified here doesn't have to be one of the sensors of <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceOverItem">PointingDeviceOverItem</a>. When some sensor is activated, it grabs further events until it's deactivated (e.g. when you set <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActive">PointingDeviceActive</a> := false, which means that user released mouse button). This means that when user moves the mouse while given sensors are active, he can move mouse over other items, even the ones where the active sensors aren't listed &mdash; but the sensors remain active.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PointingDeviceActive"></a><code>property <b>PointingDeviceActive</b>: boolean
      read FPointingDeviceActive default false;</code></td>
</tr>
<tr><td colspan="2">
<p>
Is pointing device currently active (for example, mouse button is pressed down).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnPointingDeviceSensorsChange"></a><code>property <b>OnPointingDeviceSensorsChange</b>: TNotifyEvent
      read FOnPointingDeviceSensorsChange
      write FOnPointingDeviceSensorsChange;</code></td>
</tr>
<tr><td colspan="2">
<p>
Event called <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceSensors">PointingDeviceSensors</a> or <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PointingDeviceActiveSensors">PointingDeviceActiveSensors</a> lists (possibly) changed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Time"></a><code>property <b>Time</b>: <a  href="X3DTime.TX3DTime.html">TX3DTime</a> read FTime;</code></td>
</tr>
<tr><td colspan="2">
<p>
This is the scene time, that is passed to time-dependent nodes. See X3D specification &quot;Time&quot; component about time-dependent nodes. In short, this &quot;drives&quot; the time passed to TimeSensor, MovieTexture and AudioClip. See <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#SetTime">SetTime</a> for changing this.

<p>Default value is 0.0 (zero).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BackgroundStack"></a><code>property <b>BackgroundStack</b>: <a  href="CastleSceneCore.TBackgroundStack.html">TBackgroundStack</a> read FBackgroundStack;</code></td>
</tr>
<tr><td colspan="2">
<p>
Stack of background nodes. The node at the top is the current background. All nodes on this stack must descend from <a class="normal" href="X3DNodes.TAbstractBackgroundNode.html">TAbstractBackgroundNode</a> class.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="FogStack"></a><code>property <b>FogStack</b>: <a  href="CastleSceneCore.TFogStack.html">TFogStack</a> read FFogStack;</code></td>
</tr>
<tr><td colspan="2">
<p>
Stack of fog nodes. The node at the top is the current fog. All nodes on this stack must descend from <a class="normal" href="X3DNodes.TFogNode.html">TFogNode</a> class.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NavigationInfoStack"></a><code>property <b>NavigationInfoStack</b>: <a  href="CastleSceneCore.TNavigationInfoStack.html">TNavigationInfoStack</a> read FNavigationInfoStack;</code></td>
</tr>
<tr><td colspan="2">
<p>
Stack of NavigatinInfo nodes. The node at the top is the current NavigatinInfo. All nodes on this stack must descend from <a class="normal" href="X3DNodes.TNavigationInfoNode.html">TNavigationInfoNode</a> class.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ViewpointStack"></a><code>property <b>ViewpointStack</b>: <a  href="CastleSceneCore.TViewpointStack.html">TViewpointStack</a> read FViewpointStack;</code></td>
</tr>
<tr><td colspan="2">
<p>
Stack of viewpoint nodes. The node at the top is the current Viewpoint. All nodes on this stack must descend from <a class="normal" href="X3DNodes.TAbstractViewpointNode.html">TAbstractViewpointNode</a>. Note that this includes also VRML 1.0/Inventor nodes.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraPosition"></a><code>property <b>CameraPosition</b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraPosition;</code></td>
</tr>
<tr><td colspan="2">
<p>
Camera position/direction/up known for this scene.

<p>Set by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraChanged">CameraChanged</a>. <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraViewKnown">CameraViewKnown</a> = <code>False</code> means that <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#CameraChanged">CameraChanged</a> was never called, and so camera settings are not known, and so other Camera* properties have undefined values.

<p>These are remembered for various reasons, like reacting to changes to ProximitySensor box (center, size) (or it's transform), or changing LOD node children.

<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraDirection"></a><code>property <b>CameraDirection</b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraDirection;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraUp"></a><code>property <b>CameraUp</b>: <a  href="CastleVectors.html#TVector3Single">TVector3Single</a> read FCameraUp;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CameraViewKnown"></a><code>property <b>CameraViewKnown</b>: boolean read FCameraViewKnown;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CompiledScriptHandlers"></a><code>property <b>CompiledScriptHandlers</b>: <a  href="CastleSceneCore.html#TCompiledScriptHandlerInfoList">TCompiledScriptHandlerInfoList</a>
      read FCompiledScriptHandlers;</code></td>
</tr>
<tr><td colspan="2">
<p>
List of handlers for VRML/X3D Script node with &quot;compiled:&quot; protocol. This is read-only, change this only by <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#RegisterCompiledScript">RegisterCompiledScript</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="HeadlightOn"></a><code>property <b>HeadlightOn</b>: boolean
      read FHeadlightOn write SetHeadlightOn;</code></td>
</tr>
<tr><td colspan="2">
<p>
Should we use headlight for this scene. Controls if containing <a class="normal" href="CastleSceneManager.TCastleSceneManager.html">TCastleSceneManager</a> will use a headlight, if this is the main scene.

<p>When you load a new model, this is always updated based on this model's NavigationInfo.headlight. (If no NavigationInfo node, then default is to use the headlight.) When you bind a new NavigationInfo node, this is also updated to follow NavigationInfo.headlight.

<p>You can change the value of this property. If we have a NavigationInfo node, then NavigationInfo.headlight field will be always updated to correspond to this value. (It will be even updated using events mechanism if <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a>, so scripts inside the VRML/X3D &quot;know&quot; when you turn on/off the headlight and may react to it, e.g. spawn a zombie monster when you turn on the flashlight.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnHeadlightOnChanged"></a><code>property <b>OnHeadlightOnChanged</b>: TNotifyEvent
      read FOnHeadlightOnChanged write FOnHeadlightOnChanged;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Static"></a><code>property <b>Static</b>: boolean read FStatic write SetStatic default false;</code></td>
</tr>
<tr><td colspan="2">
<p>
Static scene will not be automatically notified about the changes to the field values. This means that <a class="normal" href="X3DFields.TX3DField.html#Send">TX3DField.Send</a> and <a class="normal" href="X3DFields.TX3DField.html#Changed">TX3DField.Changed</a> will not notify this scene. This makes a small optimization when you know you will not modify scene's VRML/X3D graph besides loading (or you're prepared to do it by manually calling Scene.ChangedField etc.).

<p>The behavior of events is undefined when scene is static. This means that you should always have <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a> = <code>False</code> when Static = <code>True</code>. Only when Static = false you're allowed to freely change <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ProcessEvents">ProcessEvents</a> to <code>True</code>.

<p>Changing this is expensive when the scene content is already loaded, so it's best to adjust this before <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GlobalLights"></a><code>property <b>GlobalLights</b>: <a  href="X3DNodes.TLightInstancesList.html">TLightInstancesList</a> read FGlobalLights;</code></td>
</tr>
<tr><td colspan="2">
<p>
Global lights of this scene. Read-only. May be useful to render other 3D objects with lights defined inside this scene.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AnimationPrefix"></a><code>property <b>AnimationPrefix</b>: string
      read FAnimationPrefix write FAnimationPrefix;</code></td>
</tr>
<tr><td colspan="2">
<p>
The required prefix of a TimeSensor node to be considered a &quot;named animation&quot; by our methods like <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Animations">Animations</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#PlayAnimation">PlayAnimation</a>, and <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#AnimationDuration">AnimationDuration</a>. By default this is <a class="normal" href="X3DNodes.html#DefaultAnimationPrefix">DefaultAnimationPrefix</a>. You can set this to an empty string to consider all TimeSensor nodes a possible &quot;named animation&quot;.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="TimePlaying"></a><code>property <b>TimePlaying</b>: boolean read FTimePlaying write FTimePlaying default true;</code></td>
</tr>
<tr><td colspan="2">
<p>
When <code>TimePlaying</code> is <code>True</code>, the time of our 3D world will keep playing. More precisely, our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Update">Update</a> will take care of increasing <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a>. Our <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Update">Update</a> is usually automatically called (if you added this scene to <a class="normal" href="CastleWindow.TCastleWindowCustom.html#Controls">TCastleWindowCustom.Controls</a> or <a class="normal" href="CastleControl.TCastleControlCustom.html#Controls">TCastleControlCustom.Controls</a>) so you don't have to do anything to make this work.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="TimePlayingSpeed"></a><code>property <b>TimePlayingSpeed</b>: Single read FTimePlayingSpeed write FTimePlayingSpeed default 1.0;</code></td>
</tr>
<tr><td colspan="2">
<p>
Controls the time speed (if <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TimePlaying">TimePlaying</a> is <code>True</code>): 1.0 means that 1 second of real time equals to 1 unit of world time.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Spatial"></a><code>property <b>Spatial</b>: <a  href="CastleSceneCore.html#TSceneSpatialStructures">TSceneSpatialStructures</a> read FSpatial write SetSpatial;</code></td>
</tr>
<tr><td colspan="2">
<p>
Which spatial structures (octrees, for now) should be created and managed.

<p>You should set this, based on your expected usage of this model. See <a class="normal" href="CastleSceneCore.html#TSceneSpatialStructure">TSceneSpatialStructure</a> for possible values. For usual dynamic scenes rendered with OpenGL, you want this to be [ssRendering, ssDynamicCollisions].

<p>Before setting any value &lt;&gt; [] you may want to adjust <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TriangleOctreeLimits">TriangleOctreeLimits</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ShapeOctreeLimits">ShapeOctreeLimits</a>. These properties fine-tune how the octrees will be generated (although default values should be Ok for typical cases).

<p>Default value of this property is [], which means that no octrees will be created. This has to be the default value, to 1. get you chance to change <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#TriangleOctreeLimits">TriangleOctreeLimits</a> and such before creating octree 2. otherwise, scenes that not require collision detection would unnecessarily create octrees at construction. Scenes that do not have any spatial structures use default <a class="normal" href="Castle3D.T3D.html">T3D</a> methods for resolving collisions, which means that collisions are checked vs <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#BoundingBox">BoundingBox</a> of this scene. (Unless <a class="normal" href="Castle3D.T3D.html#GetCollides">GetCollides</a> is <code>False</code>, in which case collisions are disabled, regardless of <code>Spatial</code>.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="ProcessEvents"></a><code>property <b>ProcessEvents</b>: boolean
      read FProcessEvents write SetProcessEvents default false;</code></td>
</tr>
<tr><td colspan="2">
<p>
Should the VRML/X3D event mechanism work.

<p>If <code>True</code>, then events will be send and received through routes, time dependent nodes (X3DTimeDependentNode, like TimeSensor) will be activated and updated from <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Time">Time</a> time property, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Press">Press</a>, <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Release">Release</a> and other methods will activate key/mouse sensor nodes, scripts will be initialized and work, etc.

<p>In other words, this makes the scene fully animated and interacting with the user.

<p>If <code>False</code>, this all doesn't work, which makes the scene static.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="URL"></a><code>property <b>URL</b>: string read FURL write SetURL;</code></td>
</tr>
<tr><td colspan="2">
<p>
Currently loaded scene <code>URL</code>. Set this to load a 3D scene from the given <code>URL</code>, we can load from any known 3D format (VRML, X3D, Collada, 3ds, Wavefront, etc.).

<p>Works just like the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> method (the overloaded version that takes <code>AURL: string</code> parameter). And, in fact, using directly the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> method will also change this <code>URL</code> property.

<p>The only difference of <code>Scene.URL := 'blah.x3d'</code> vs <code>Scene.Load('blah.x3d')</code> is that setting the <code>URL</code> will <i>not</i> reload the scene if you set it to the same value. That is, <code>Scene.URL := Scene.URL;</code> will not reload the scene (you have to use explicit <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> for this.).</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="FileName"></a><code>property <b>FileName</b>: string read FURL write SetURL; deprecated;</code></td>
</tr>
<tr><td colspan="2">
<p class="hint_directive">Warning: this symbol is deprecated.</p><p>
 Deprecated name for <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#URL">URL</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="ShadowMaps"></a><code>property <b>ShadowMaps</b>: boolean read FShadowMaps write SetShadowMaps default true;</code></td>
</tr>
<tr><td colspan="2">
<p>
At loading, process the scene to support shadow maps. This happens at the <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> method call, and it makes &quot;receiveShadows&quot; field automatically handled.

<p>Note that this is not the only way to make shadow maps. VRML/X3D author can always make shadow maps by using lower-level nodes, see [<a  href="http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_shadow_maps">http://castle-engine.sourceforge.net/x3d_extensions.php#section_ext_shadow_maps</a>]. When using these lower-level nodes, this property does not matter This property (and related ones like <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ShadowMapsDefaultSize">ShadowMapsDefaultSize</a>) is relevant only for handling shadows by the &quot;receiveShadows&quot; field.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="ShadowMapsDefaultSize"></a><code>property <b>ShadowMapsDefaultSize</b>: Cardinal
      read FShadowMapsDefaultSize write SetShadowMapsDefaultSize
      default <a  href="CastleSceneCore.TCastleSceneCore.html#DefaultShadowMapsDefaultSize">DefaultShadowMapsDefaultSize</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default shadow map texture size.

<p>Affects how shadow maps are handled for the &quot;receiveShadows&quot; field. This is taken into account at the scene <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#Load">Load</a> time, and only if <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ShadowMaps">ShadowMaps</a> is <code>True</code>.

<p>VRML/X3D author can always override this by placing a <code>GeneratedShadowMap</code> node inside light's <code>defaultShadowMap</code> field. In this case, <code>GeneratedShadowMap.size</code> determines shadow map size.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="InitialViewpointIndex"></a><code>property <b>InitialViewpointIndex</b>: Cardinal
      read FInitialViewpointIndex write FInitialViewpointIndex default 0;</code></td>
</tr>
<tr><td colspan="2">
<p>
When loading new model, use this viewpoint index to initialize camera. VRML/X3D specification says to use the first (index = 0) viewpoint, you can change this property to bind 2nd, 3rd and so on viewpoints.

<p>This is applied only at loading (actually, at <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#ChangedAll">ChangedAll</a>). If you later want to bind another viewpoint, just send set_bind := true to it.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a  href="legend.html"><img  src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="InitialViewpointName"></a><code>property <b>InitialViewpointName</b>: string
      read FInitialViewpointName write FInitialViewpointName;</code></td>
</tr>
<tr><td colspan="2">
<p>
When loading new model and looking for initial viewpoint, consider only viewpoints with this node name. Relevant only if non-empty.

<p>This may cooperate with <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a>: <a class="normal" href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a> specifies the index of viewpoint node that satisfies also <code>InitialViewpointName</code> condition. For example:

<p></p>

<ul class="paragraph_spacing">
  <li><p><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a> = 0 and <code>InitialViewpointName</code> = '' means to use the first viewpoint, ignoring nodes' names. This is the default behavior, also following VRML/X3D specification.</p></li>
  <li><p><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a> = 1 and <code>InitialViewpointName</code> = '' means to use the 2nd viewpoint. Node name doesn't matter.</p></li>
  <li><p><a class="normal" href="CastleSceneCore.TCastleSceneCore.html#InitialViewpointIndex">InitialViewpointIndex</a> = 1 and <code>InitialViewpointName</code> = 'blah' means to use the first viewpoint named 'blah'. That is, we are only counting nodes named 'blah' for this.</p></li>
</ul>

<p></p>
</td></tr>
</table>
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://michalis.ii.uni.wroc.pl/piwik-castle-engine/";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "1"]);
    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Piwik Code -->

<noscript>
<!-- Piwik Image Tracker -->
<img src="http://michalis.ii.uni.wroc.pl/piwik-castle-engine/piwik.php?idsite=1&amp;rec=1" style="border:0" alt="" />
<!-- End Piwik -->
</noscript>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2015-06-15 04:43:11</em>
</span>
</td></tr></table></body></html>