Panoramic Video Outsourcing team: U3d Panorama Tour (ii)

Source: Internet
Author: User

Click Ambient light, as follows

Adjusted to

Can be set to complete

14. Set up first person browsing

Delete the main Camera in the scene

Drag the first person controller under prefabs under standard assets in the project area to the hierarchy area

Click the first person controller, adjust the position of the first person controller to the appropriate position in the scene, and set its height to 1.37 to 2.1

Set the height of the first person controller above the ground in the scene

15. Click Run To test

Modify the View Control key to the right button

16. Open the Mouselook script under Standardassets under Camerascripts in the project area,

in quaternion originalrotation;

void Update ()

{if (axes = = Rotationaxes.mousexandy)

{

Read the mouse input axis

Add a line of code to change to

Quaternion originalrotation;

void Update ()

{

if (Input.getaxis ("Fire2") ==0) return;

if (axes = = Rotationaxes.mousexandy)

{

Read the mouse input axis

How to cancel the right-click menu on the Browse window

You can disable the display of the right-click menu as long as you set the Unity object's parameters as follows:

<object id= "Unityobject" classid= "clsid:444785f1-de89-4295-863a-d46c3a781394"

Width= "height=" codebase= "http://webplayer.unity3d.com/download_webplayer/UnityWebPlayer.cab#version=2,0,0,0" >

<param name= "src" value= "Mydatafile.unity3d"/>

<param name= "Disablecontextmenu" value= "true"/>

<embed id= "unityembed" src= "Mydatafile.unity3d" width= "All" height= "type=" and "Application/vnd.unity" pluginspage = "http://www.unity3d.com/unity-web-player-2.x" disablecontextmenu= "true"/>

</object>

Plant Effect Settings

17. For the plant effect of single-sided slices, it is necessary to set its material to the Transparent/vertexlit type and add the bulletin board script to it.

Before setting

Set the material type to Transparent/vertexlit type, as follows

The way to add a bulletin board script to a single-sided piece of plant is to select the plant first and then click the camera facing billboard under the menu component under scripts, as follows

After setting the material type and adding the bulletin board script, the following

If you do not have the script component, you can open the Script Editor, copy the following code into the script, save to Assets\scripts, named CameraFacingBillboard.cs can be

Using Unityengine;

Using System.Collections;       public class Camerafacingbillboard:monobehaviour {public Camera Cameratolookat;      void Start () {cameratolookat = Camera.main;         } void Update () {Vector3 v = cameratolookat.transform.position-transform.position;         v.x = V.z = 0.0f; Transform.         LookAt (CAMERATOLOOKAT.TRANSFORM.POSITION-V); }      }

18. For a cross-crossed plant, you need to set its material to nature/vegetation and unlit type

Pre-set effect

The effect after setting

setting of water surface effect

19. Create a mesh patch

20. Set water material and water scripts for the surface patches, such as

Can

Treatment of baking light and shadow map

21.unity3d Requirements for light and shadow baking

U3D's light map uses a self-illuminated map channel of the standard material in 3Dmax to store the shadow map-related parameters, such as

There are outsourcing needs welcome contact qq:372900288 tel:13911652504

Panoramic Video Outsourcing team: U3d Panorama Tour (ii)

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.