Open jeruik opened 3 years ago
Multiply the height by screen ration before rendering on screen that is before calling present render buffer
On Sun, 31 Jan, 2021 at 3:19 PM, 小菜 notifications@github.com wrote:
_brushTexture = [self setupTexture:@"3.png"]; _floorTexture = [self setupTexture:@"1.png"]; _bwTexture = [self setupTexture:@"2.png"];
This is how I load it. Below is the preview of the three pictures [image: 1] https://user-images.githubusercontent.com/13136773/106379523-93036300-63e7-11eb-821f-10306955ead2.png [image: 2] https://user-images.githubusercontent.com/13136773/106379526-94349000-63e7-11eb-82ae-9298d1460e2e.png [image: 3] https://user-images.githubusercontent.com/13136773/106379527-94cd2680-63e7-11eb-8069-4537d8d36db6.png ,
The following is the final view effect
[image: WechatIMG439] https://user-images.githubusercontent.com/13136773/106379589-f1304600-63e7-11eb-9a3b-293f0abc4e8c.jpeg
The black is the viewcontroller background and the green view is the OpenGLView. In fact, I set a square 100x100, but I don’t know why the final result view is only half and it has been stretched. I hope to get a layer that does not stretch and the background is transparent. I am a newbie to opengl, and I have tried many solutions but failed. I hope to get help from you. Thank you very much.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mostafizurrahman/MultipleTexture_iOS_OpenGL/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBDC55F7RB2KWP34BXVQ3S4UOB3ANCNFSM4W3FLQHQ .
-- Sincerely- Mostafizur Rahman Software Engineer SureCash Progoti Systems Ltd. Borak Mehnur, Banani, Dhaka-1212
Thank you very much for your reply, But I don’t know why it becomes green, do you know how to change green to transparent
This is how I load it. Below is the preview of the three pictures
,
The following is the final view effect
The black is the viewcontroller background and the green view is the OpenGLView. In fact, I set a square 100x100, but I don’t know why the final result view is only half and it has been stretched. I hope to get a layer that does not stretch and the background is transparent. I am a newbie to opengl, and I have tried many solutions but failed. I hope to get help from you. Thank you very much.