Jump to content

Recommended Posts

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.

Posted
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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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