Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Seperate Camera for Minecraft

Submars

New member
Joined
Jul 23, 2021
Messages
2
Reaction score
0
Points
0
Hi, i was wondering about how i could create module that shows a seperate small screen on the bottom right of the screen that shows your targets perspective during combat. does anyone know how to do this within minecraft's src?
 
Hi, i was wondering about how i could create module that shows a seperate small screen on the bottom right of the screen that shows your targets perspective during combat. does anyone know how to do this within minecraft's src?
learn lwjgl and learn minecraft.
 
For this you need a framebuffer and then you have to do the following:
1. update framebuffer size if necessary
2. bind framebuffer
3. invoke renderWorld method from EntityRenderer and modify orientCamera so that you see the other player's view
4. unbind framebuffer
5. render the framebuffer
You might run into a couple of problems like the water being rendered separately and it could also be that minecraft also works with framebuffers somewhere in the renderWorld method which would unbind your framebuffer.
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top