데이빗의 도스 게임 자료실

한국어

Game Dev

One of the most annoying things when you try to get a screen recording of your game is the huge black borders on either side of the screen that look like this.

http://i.imgur.com/6eVjJey.jpg

This is the default view for all UE4 games but there is a way to be able to change the view to wide screen without stretching the image.

1st You need to find and open a file called SteamVRRender.cpp This is the path for that file on my computer.

http://i.imgur.com/bf670Bf.jpg

2nd Change it from this

RendererModule->DrawRectangle( RHICmdList, ViewportWidth / 4, 0, ViewportWidth / 2, ViewportHeight, 0.1f, 0.2f, 0.3f, 0.6f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1), *VertexShader, EDRF_Default);

http://i.imgur.com/na0ZfJr.jpg

to this

RendererModule->DrawRectangle( RHICmdList, 0, 0, ViewportWidth, ViewportHeight, 0.0f, 0.3f, 0.4f, 0.4f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1), *VertexShader, EDRF_Default);

http://i.imgur.com/b9ZWffI.jpg

3rd Save the change then rebuild the version of the engine you are using. I'm using the Oculus forward renderer so this is where I go

http://i.imgur.com/grw4NR5.jpg

I click on UE4.sin Then I click on Build Solution

http://i.imgur.com/MnTRx6B.jpg

After that when I play the game in the project editor or a packaged game and I want to do a screen recording it goes from this before build

http://i.imgur.com/BNkuacu.jpg

To this after build

http://i.imgur.com/5pQAndi.jpg

조회 수 :
52774
등록일 :
2017.04.20
21:06:28 (*.168.0.1)
엮인글 :
게시글 주소 :
http://dosgame.yyartsworld.pe.kr/developer/38231
사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
옵션 :
:
:
:
:
List of Articles
번호 제목 글쓴이 날짜 조회 수
48 Warning: unable to build chain to self-signed root for signer file 관리자 2024-03-26 643
47 UE4 Gradle 버전 설정 관리자 2023-05-11 1065
46 UE4 - Accept SDK License 관리자 2023-04-30 3305
45 MYSQL ODBC 일정시간 후 커넥션이 lost 된다면 관리자 2021-12-18 7933
44 MYSQL ODBC Set Max Connection 관리자 2021-10-05 42393
43 Could not determine java version from '12.0.1' 관리자 2021-07-16 29998
42 MySQL DB 백업및 복원 관리자 2020-12-02 17492
41 UE4 MacOS Generate Xcode Project 안될때 관리자 2020-08-27 22927
40 Visual C++ Release 빌드에서 디버그 하기. 관리자 2020-04-10 7927
39 바이너리를 스트링으로 변환 관리자 2019-06-04 8829
38 Reflection vector file 관리자 2019-02-28 114126
37 Provisioning Profile location 관리자 2018-07-10 22939
36 UE4 How to deploy my app on IOS device without paying the $99 Apple developer program. 관리자 2018-06-23 67754
35 C++ printf() 64bit int, hex 관리자 2018-06-12 52730
34 JNI GetMethodID, GetStaticMethodID signature example 관리자 2018-06-12 36376
33 Visual C++ - Object file created with an older compiler than other objects 관리자 2018-05-31 50670
32 소켓옵션 SO_LINGER 에 대해 관리자 2018-05-26 17178
31 MSSQL ODBC Binary Data 이미지 같은 바이너리 데이터 올리기 관리자 2018-05-16 2534
30 map을 deque에 일괄 삽입 std::copy std::transform std::back_inserter 관리자 2018-05-03 23848
29 Windows C++ Mac Address 구하기 관리자 2018-04-20 32062