전체 글(295)
-
[SKKU DT] 69일차 -유니티 Shader Graph(셰이더 그래프), Particle System(파티클 시스템) 정리, 예제
Larva 셰이더 그래프 Particle System(파티클) Duration: 파티클이 분사되는 시간 Start Lifetime: 파티클이 계속 살아서 움직이는 시간 Start Speed: 파티클이 움직이는 속도 Start Size: 파티클의 크기, 4개의 옵션을 자주 쓴다. Gravity Modifier: 중력의 영향을 줌 Simulation Speed: 파티클 자체의 속도를 빠르게 하는 것이 아니라 파티클을 빠르게 재생시켜 보는 개념 Stop Acton: 파티클이 사라질 때의 옵션 Emission: 파티클 개수 설정 가능, Bursts로 폭발 효과 설정 가능(Rate over Time을 0으로 만들면 폭발 이후 파티클이 나오지 않게 할 수 있다. Shape: 방출 모양을 설정할 수 있다. Spher..
2024.02.07 -
[SKKU DT] 68일차 -유니티 Rest API 활용하기(뉴스 기사, 주식 정보), Shader Graph(셰이더 그래프)
뉴스 기사 가져오기 https://newsapi.org/ News API – Search News and Blog Articles on the Web “Ascender AI has a mission to apply AI to the media, and NewsAPI is one of our most valuable resources. Ascender is redefining how users interact with complex information, and the NewsAPI feed is an essential showcase for our technologies.” Braddock Ga newsapi.org 이름과 이메일을 입력하면 바로 API 키를 할당 받을 수 있다. https://newsa..
2024.02.06 -
[SKKU DT] 67일차 -유니티 Rest API 활용하기(날씨, 정보, 사진)
OpenWeatherMap에서 날씨 정보 받기 예전에도 했지만 OpenWeatherMap에서 날씨 API를 유니티로 받아올 것이다. Сurrent weather and forecast - OpenWeatherMap Access current weather data for any location on Earth including over 200,000 cities! The data is frequently updated based on the global and local weather models, satellites, radars and a vast network of weather stations. how to obtain APIs (subscriptions w openweathermap.org 내 ..
2024.02.05 -
[Robot Arm Arduino Project] RAAP프로젝트 -로봇 완성
새 포텐셔미터를 갈아 끼고도 Shoulder 모터의 떨림 현상은 해결되지 않았다. 다시 모든 가능성을 열어두고 안되는 점을 찾기 시작했다. 모터 자체의 결함 -서보 드라이버의 다른 핀에 꽂으니 잘 작동했으므로 통과 서보 드라이버의 결함 -코드에 작성된 해당 핀에 정상 작동하던 모터를 꽂으면 그 모터가 떨림 따라서 서보 드라이버 자체의 결함 보다는 포텐셔미터로부터 들어오는 해당 핀의 문제로 의심됨. 아두이노의 결함 -다른 아두이노에 그대로 적용해본 결과 떨림 현상 똑같이 발현. 포텐셔미터의 결함 -이미 새 포텐셔미터를 갈았으므로 통과. 하지만 혹시 몰라서 다른 새 포텐셔미터로 갈아끼웠다. 배선의 문제 -Shoulder 모터에 연결된 전선의 배선을 반대로 하면 해결될 것 같았으나 반대로 하면 모터가 돌아가지..
2024.02.05 -
[SKKU DT] 66일차 -유니티 UI 활용하기
유니티 UI -Slider 활용 위의 예시 같은 UI를 만들어볼 것이다. 3D URP 프로젝트를 하나 만든다. Slider를 하나 만든다. 음악에서 이퀄라이저 같은 모양을 만들 것이다. SliderChange 스크립트 생성 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SliderChange : MonoBehaviour { public Slider slider; public float currentValue; void Start() { InvokeRepeating("RandomValue", 0.1f, 0.1f); //함수 이름, 1초마다 반복하고, ..
2024.02.02 -
[SKKU DT] 65일차 -유니티에서 ChatGPT Api 가져오기
유니티에서 ChatGPT 가져오기 API key를 받아오기 전에 유니티 씬으로 UI를 만든다. MyGPT 스크립트 생성 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Networking; public class MyGPT : MonoBehaviour { public InputField userInputField; public Text responseText; private readonly string openAIApiURL = "https://api.openai.com/v1/chat/completions"; private readonly s..
2024.02.01