데이빗의 도스 게임 자료실

한국어

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

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

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

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

0개 첨부 됨 ( / )
옵션 :
:
:
:
:
List of Articles
번호 제목 글쓴이 조회 수 추천 수 비추천 수 날짜sort
48 이클립스 UTF-8 인코딩 관리자 10446     2013-03-12
 
47 안드로이드 개발환경 관리자 12498     2014-08-27
 
46 Eclipse 에서 NDK 디버깅하기 관리자 14273     2014-11-21
 
45 Eclipse에서 NDK Build file 관리자 10825     2014-11-21
 
44 MSSQL 날짜 계산 함수 관리자 8173     2015-03-13
 
43 MSSQL 한글이나 한자가 ???로 나타날때 관리자 34190     2015-06-04
 
42 MSSQL 테이블 복사하기 관리자 4191     2015-09-11
 
41 MSSQL 저장프로시저 콜 관리자 1547     2015-09-12
 
40 MSSQL 날자 문자열을 datetime으로 변환 관리자 18566     2016-01-21
 
39 현재시간으로 UTC시간 구하기 & 문자열 -> DATETIME 관리자 2959     2016-05-12
 
38 DISTINCT 의 사용 관리자 12879     2016-05-12
 
37 the breakpoint will not currently be hit 관리자 581     2016-05-15
 
36 mssql 테이블 복사 및 데이터 복사하기 관리자 3597     2016-05-17
 
35 DB 최적화 관련 문서 file 관리자 2181     2016-05-18
 
34 트랜잭션 로그파일 축소 관리자 18124     2016-05-18
 
33 DB ERRORLOG 삭제 관리자 17603     2016-05-18
 
32 MS-SQL 테이블 컬럼 조작(추가,수정,삭제) 관리자 6914     2016-05-24
 
31 SET NOCOUNT ON 관리자 6193     2016-06-29
 
30 MSSQL INT를 VARCHAR로 변환 관리자 5877     2016-10-25
 
» Unreal Engine 4 Devs, How to get rid of the black borders in mirror mode. 관리자 52186     2017-04-20
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 the...