반응형
※ 해당 글은 capstone 종합설계 프로젝트를 하면서 적었던 일지를 돌아보며 작성한 것입니다.
개발일지 2022.11.04
// adjust_value column
{
cloth_type: "cloth_top" / "cloth_bottom" // key 이름 수정 필요
ui_list: [
{ // slider type
type: "slider",
title: "...",
slider_attrs: {
type: "range",
min: 1,
max: 1,
step: 1,
default_value: 1,
}
},
{ // select type
type: "select",
title: "...",
element_list: [
{
// yet
},
],
selected_element_idx: 0,
},
{ // select and slider type
type: "select_slider",
title: "소매 모양",
shape_list: [
{
title: "항아리형",
slider_attrs: {
type: "range",
min: 1,
max: 1,
step: 1,
default_value: 1,
}
},
{
title: "나팔형",
slider_attrs: {
type: "range",
min: 1,
max: 1,
step: 1,
default_value: 1,
}
},
],
selected_shape_idx: 0, // 0~1
},
{ // palette type
type: "palette",
title: "...",
color: "#ffffff"
},
{ // texture type
type: "texture",
texture_idx: ,
}
]
}
위 데이터는 옷의 종류, 부위별 조절할 수 있는 값들, color, texture를 설정하는 form의 형태이다.
위 데이터에 각 color model에 대해 적용되어야 할 color 및 texture정보가 있다.
cloth_type과 color 또는 texture인지 여부를 input으로하면, output으로 clothList recoil데이터에서 해당 값들을 찾아서 반환해주는 모듈이 필요하다.
반응형
'개발 > three.js' 카테고리의 다른 글
[Capstone Project] template 변경하기 issue (0) | 2023.03.28 |
---|---|
[Capstone Project] template 모델 부위별 따로 생성하기 / position 옮기기 & 모델 분리 / slider 분리 적용 (1) | 2023.03.24 |
[Capstone Project] Idea : 옷의 형태 변형 아이디어, 피팅 모델 추가 아이디어 (0) | 2023.03.17 |
[Capstone Project] 망가지는 texture mapping 해결방안 (0) | 2023.03.03 |
[Capstone Project] 길이 조정 환경 만들기 - 1, 2 (0) | 2023.03.02 |