분류 전체보기 79

백준, Python) 15552, 10951

15552sys를 쓰는 문제 import sys N = int(input())for i in range(N): a,b = map(int, sys.stdin.readline().split()) print(a+b) input 대신 sys.stdin.readline()을 활용하는 문제 sys.stdin.readline()은 1줄씩 읽어들이고, \n과 같은 개행문자까지 입력을 받음.그렇기 때문에 strip()이나 rstrip()을 이용해 개행문자를 없애줌.(right strip->rstrip()) split() 대신 strip()을 사용하다 틀린 결과strip()-> 문자열이 반환됨. 그렇기 때문에 map(int, "3 5")이 시행될 경우, 변환이 안됨 (3과 5는 임의로 입력된 값이..

백준, Python) 1단계 입출력과 사칙연산

2~6원래 작성한 코드a,b = input().split()a= int(a); b=int(b)if a>0 and b10 and b!=0: print(a/b) 다른 분들에 비해 시간이 오래 걸려서 찾아보니 a,b = map(int, input().split())print(a+b)-> 이 방식으로 작성하기 10430번조건 if (x>=2 and y>=2 and z>=2) and (x1000 and y1000 and z1000): -> 간소화 버전if all(2 v 1000 for v in (x, y, z)): 근데 조건까지 추가하면 계속 틀렸다고 나와서 조건을 뺏더니 맞았다고 함,, 2588번하드코딩식 x = int(input())y = str(input())print(x*int(y[2]))..

메타버스 4기 Mar 23, 2025

GrabComponent Outliner 설정, Controller Aim 방향 확인  PostProcess Volume 추가다운 받은 Outliner 에셋 Instance 화 시키기PostProcess Volume 에서 Post Process Materials에서 다운 받은 Outliner 에셋 추가  오브젝트의 Static Mesh에서 Render Custom Depth pass체크박스 체크    VRPawn에 TraceAim 함수 설정  이후 Input Action Grab Right Pressed에 다음과 같이 설정 Is Not Valid부분에 설정

UE5) Lighting 조정 (Allow Static Lighting)

적용 예시 Map 가져오던 중 Lighting으로 인한 실내의 texture가 안 보이는 현상건물 내부에 조명을 설정할 경우 → texture가 적용된 것이 보임→ Texture 문제는 아님! 설정 전      설정 후Allow Static Lighting을 설정해야 변함        Static Light 관련 언리얼 엔진 문서 https://dev.epicgames.com/documentation/ko-kr/unreal-engine/static-lights?application_version=4.27

Unreal Engine 2025.03.16

메타버스 4기 Mar 16, 2025

활동정리 - DataAsset 활용해 CharacterControlData 만들기(Quater,Shoulder View)  - 이전에 정의했던 CharacterBase에서 있던 변수를 활용해서 view를 조정한 CharacterControlBase를 만들어서 사용 - Cpp에 생성자 정의해서 bUseControllerRotationYaw = false; 설정   - CharacterBase에 ECharacterControlType 정의 - Map자료 구조 사용해서 정의  - 생성자에서 editor에서 만들어준 DataAsset의 Reference경로 설정 - Editor에 있는 Data Asset안에 정의된 값을 가져와서 CharacterBase에 넘겨줌. -> View에 따라 다른 값 - Charact..