Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello, I am making a coremod that renders the game in two separate viewports that are slightly different to be used for cross-eyed 3d viewing. Basically it looks like this:

MwNxyItLCqR67aAebdcKIjtJ-ZMJESE8RZf-xJOr

I am currently using MCP reborn (MCP for 1.15.2) instead of forge right now due to ease of use, but I plan to make this a coremod later and I don't know where I can get better help for modding right now than this site.

Currently, I have achieved this by modifying 

net.minecraft.client.renderer.WorldRenderer.func_228426_a_(WorldRenderer.java:841)
[14:51:27] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.renderer.GameRenderer.renderWorld(GameRenderer.java:593)
[14:51:27] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:420)
[14:51:27] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:909)
[14:51:27] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.Minecraft.run(Minecraft.java:544)
[14:51:27] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.main.Main.main(Main.java:177)

I then run most of the code inside of this method twice, excluding the code that clear the screen, but I run RenderSystem.viewport() each time to change the position and scaling of each image. However, using this method only scales the viewport, and it results in each image being squished and looking terrible. It looks like this:

Fceuevn.png

How can I get minecraft to actually render the world at half the width instead of simply scaling down the image? Where do the world render methods actually look for the resolution to render at?

Any help would be appreciated. Thanks.

  • Author
25 minutes ago, diesieben07 said:

Jarmodding is not supported on this forum.

Especially for something that does not even need to be a coremod.

This does not need to be a coremod? Can you elaborate on how this can be done?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.