Because the version is newer and bigger. I have read version 3.6 before, which is quite different from version 4.0.9. For example, the new view3d attribute is changed.
This note requires you to write it in a fixed way. There are no two writing methods.
I. view3d
1 view3d = new view3d (); 2 3 view3d. camera. z =-800; 4 view3d. camera. y = 15; 5 // scenario precision 6 view3d. antialias = 10; 7 // camera attribute 8/* view3d. camera. lens. far = 800; */9 view3d. camera. lens. near = 1; 10 // the color of the video. backgroundcolor = 0 xccddff; 12 addchild (view3d); 13 addchild (New awaystats (view3d); 14 15 dlight = new directionallight; 16 dlight. position = new vector3d (-500,-); 17 dlight. lookat (New vector3d); 18 dlight. color = 0 xffffff; 19 // light diffuse reflection 20 dlight. diffuse = 1.5; 21 // light reflection 22 dlight. specular = 0.1; 23 // The lighting range is 24 dlight. ambient = 0.3; 25 view3d. scene. addchild (dlight); 26 27 // instantiate your own scenario and add things to the scenario. Similarly, 28 scene = new myscene (); 29 // Add view in your own scenario. 30 view3d. scene. addchild (scene );
Question:
3.6 set the central sight
Import away3d. Core. Clip. rectangleclipping;
4.0.9 how do I set the view settings?
Ii. awaystats class
Awaystats (view3d: view3d = NULL, minimized: Boolean = false, transparent: Boolean = false, meandatalength: uint = 0, enableclicktoreset: Boolean = true, enablemodifyframerate: Boolean = true)
Key Points:view3d:View3D
(Default =null
)
-Added view3d to view the number of model faces.