Jump to content

Recommended Posts

Posted

What i am trying to do is create a GUI that allows the player to place "cubes" onto the rendered player model, but i am having issues getting where the player has clicked on the screen in relation to the players model.Too make it easier i would like to have the blocks aligned to a grid that goes around the selected body part. The player's model will not be rendered with the same rotations. I also need to know what part was clicked and translate it into where a cube should be rendered on the player's model. The GUI looks like

 

 

hkEulUY.gif

 

 

Gui Class: https://github.com/Wurmatron/VoidRPG/blob/master/src/main/java/wurmatron/voidrpg/client/gui/GuiArmorCustomization.java

Full Src: https://github.com/Wurmatron/VoidRPG/

- Wurmatron

Posted

As coolAlias (I think) mentioned sometime in other post - this is impossible using standard MC entity rendering / ray trace.

 

Even with loads of math covering rotations and simply retrieving part of screen - this will simply not work. There is just too much factors involved.

 

What you "need" to do:

Stop thinking about rendering/entity as Minecraft thingy. You probably know those website skin editors? I strongly suggest looking up their code. You will need singular "pixels" (of model) to be represented by mini-entities and render all of them as singularities - only then ray trace has any point (and I don't mean minecraft's ray trace, you need to write whole system as a custom program - like those web editors).

 

At least - that is how I see it.

1.7.10 is no longer supported by forge, you are on your own.

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.