Away3d 4.0.9gold Study Notes (1)

Source: Internet
Author: User

 

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.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.