로메오의 블로그

Unity ProBuilder - Wind Generator Modeling 본문

Design/Unity & Oculus

Unity ProBuilder - Wind Generator Modeling

romeoh 2024. 1. 24. 23:32
반응형

Blender, Unity 목록

 

3D > Capsule을 생성합니다.

 

 

 

Capsule Colider는 삭제합니다.

 

 

 

 

ProBuilderize합니다.

 

 

 

 

 

select Hidden: On으로 하고 뚜껑 면을 모두 선택합니다.

 

 

 

 

 

 

Delete Face 합니다.

 

 

 

Edge를 하나 선택해서 Fill Hole 합니다.

 

 

 

 

 

ProBuilder Default URP 맵으로 변경합니다.

 

 

 

 

 

Cylinder를 만들어줍니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

면을 하나 선택해서 Grow Selection 합니다.

그리고 Merge Face 합니다.

 

 

 

 

뒷면도 Grow Selection -> Merge Faces 합니다.

 

 

 

 

 

Shift + command 로 scale을 조절합니다.

 

 

 

 

 

면을 선택하고 Select face Ring 합니다.

 

 

 

 

 

Smothing 해줍니다.

 

 

 

 

 

UV Editor에서 앞부분을 선택해서 Group Selected Faces 해줍니다.

 

 

 

 

 

면을 선택하고 Extrude Faces 5 해줍니다.

 

 

 

 

 

10으로 한번 더 extrude 해줍니다.

 

 

 

 

면 두개를 선택하고 Pivot을 Center로 변경합니다.

 

 

 

 

 

command를 누르고 3단계 줄여줍니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cylinder를 생성합니다.

 

 

 

 

 

 

Select Grow -> Merge Faces 합니다.

 

 

 

 

 

 

 

 

 

 

 

Material을 두개 추가합니다.

 

 

 

 

 

wind_light에 Emission을 체크하고 색상을 변경합니다.

 

 

 

 

 

Material Editor에서

body, wind_light를 넣어줍니다.

 

 

 

 

body에 alt+1을 적용합니다.

 

 

 

 

 

 

 

 

날개도 Alt+1 을 적용합니다.

 

 

 

 

 

 

날개 끝부분을 extrude 해서 alt+2를 적용합니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

하나의 오브젝트에 Material이 두개 적용된것을 확인 할 수 있습니다.

 

 

 

 

좌표를 Pivot으로 변경하고 

Body를 Merge Object -> Freeze Transform 합니다.

 

 

 

 

wing을 body의 자식 오브젝트로 넣어줍니다.

 

 

 

WingRotate 스크립트를 생성합니다.

 

 

 

 

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WingRotate : MonoBehaviour
{
    public float speed;

    // Update is called once per frame
    void Update()
    {
        transform.Rotate(0, 0, speed * Time.deltaTime);
    }
}

위와 같이 코딩합니다.

 

 

 

 

 

Wing에 WingRotate를 연결하고 Speed를 12로 지정합니다.

 

 

 

 

 

 

 

Play해서 회전하는것을 확인 합니다.

 

 

 

 

 

Include Children 을 체크하고 export prefab 합니다.

 

 

 

 

 

 

 

Blender, Unity 목록

반응형
Comments