Posted August 7, 20187 yr Hello! I want to add new potion effect that affects player view camera (like cracked screen). Is there another way to achieve such effect than shaders? If no, can someone link me to some good shaders tutorial from basics?
August 7, 20187 yr 5 hours ago, Krevik said: Hello! I want to add new potion effect that affects player view camera (like cracked screen). Is there another way to achieve such effect than shaders? If no, can someone link me to some good shaders tutorial from basics? You want to draw on the screen directly/an overlay. Use RenderGameOverlayEvent.Post VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 8, 20187 yr 6 hours ago, Animefan8888 said: You want to draw on the screen directly/an overlay. Use RenderGameOverlayEvent.Post Do you know if the distortion caused by nausea would also be possible with this event? About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
August 8, 20187 yr 4 minutes ago, Cadiboo said: Do you know if the distortion caused by nausea would also be possible with this event? It should take a look at GuiIngameForge line 139. It simply just renders the portal affect over the screen. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 8, 20187 yr Just now, Animefan8888 said: It should take a look at GuiIngameForge line 139. It simply just renders the portal affect over the screen. I’m not at my computer or I would look myself, by effect do you mean the texture, the distortion or both? About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
August 8, 20187 yr 2 minutes ago, Cadiboo said: I’m not at my computer or I would look myself, by effect do you mean the texture, the distortion or both? That is just the texture, the actual distortion is done in EntityRenderer#setupCameraTransform which just does some GL rotations and scales. Though you might be able to do this, though you should do it in GameOverlayEvent.Pre so it doesn't mess with the hotbar, etc. Also you may want to create your own thread because this is getting off topic and might be considered Thread Hijacking. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.