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

I have an entity which I want to render as a sphere. Just like this:

Poessoul.png

It is a little hard to tell but there is three spheres, The inner purple/blue, the middle dark purple/black and the outer red haze. How would I achieve this?

 

You will have to figure out how to draw that using regular OpenGL (maybe a tesselator) and then hook into

@SubscribeEvent(receiveCanceled=false)
public void onEvent(RenderGameOverlayEvent.Pre event) {

and call your draw method.

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

  • Author

You will have to figure out how to draw that using regular OpenGL (maybe a tesselator) and then hook into

@SubscribeEvent(receiveCanceled=false)
public void onEvent(RenderGameOverlayEvent.Pre event) {

and call your draw method.

 

I would like to render it as 3D not a 2D Image. The image is an example of how I would like it to look.

  • Author

I have figured it out thanks to one of Jabelar's tutorials, albeit a few issues.  One, the entity does not render correctly. It renders the color incorrectly, depending on the side/angle viewed. Two, when looking at the entity it causes the item/block that is in the players hand and items on the floor to turn blue/black. 

 

Client Proxy:

https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/proxy/ClientProxy.java

 

Render Class:

https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/client/render/entiy/SoulRenderFactory.java

 

ea35rE6.png

 

InA3aeT.png

I ha this exact same problem when i was trying to do something similiar. Mine was a fun project though so i gave up. The author of the tutorial probably is the one who can give you a solution, but wait for possible fixes from the more experienced programmers of this community. What i would like to tell you though is that you shouldn't be rendering 2 spheres (4 technically, outer sphere inside and outside and inner sphere inside and outside). Render just one sphere and apply a texture to it to make it look like there's another sphere inside it. This is just for better performance. If there are around 100 of these spheres in the same area some computers will struggle to keep up. Well i am not quite sure how minecraft renders objects but a sphere is a complex one. It's made up with a lot of vertexes.

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.