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

Ok I have encountered a bit of problem that is leaving me scratching my head a bit.

 

I am rendering a living entity onto the HUD, and I have it working great except for one small problem.

 

If there is an image on the same X as my rendered object, it becomes affected by lighting, and if the sky is the backdrop, the sky changes colors slightly.

 

I have tried disabling all the common features after my render, but nothing seems to be fixing the issue.(Yes, I did try doing a GL11.glDisable(GL11.GL_LIGHTING), this does not work, it still causes images to be effected by lighting.

 

I will point out that I am using the entities current renderer to do my rendering, I just translate, rotate and scale it into place, and I have been setting up my environment the normal way with entityRenderer.setupOverlayRendering(Although it makes no difference it seems whether I do this or not).

 

Here is my relavent rendering code:

RenderLiving ren = (RenderLiving) RenderManager.instance.getEntityClassRenderObject(el.getClass());
GL11.glTranslatef(locX, locY, 0);
GL11.glRotatef(180, 0, 0, 1);
GL11.glScaled(25, 25, 25);
ren.doRender(el, 1, 1, 1, 0, 0);

 

Anyone got a clue?

 

Edit:  I solved it with a GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); So it's all good now :)

(That pushes the current settings stack, so when you pop the stack, they are restored)

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.