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

This is my event:

QLNLl0L.png

p.s i tried the subclasses.

 

s6hLusu.png

Above this line, I am also registering my GUI event listener with RenderGameOverlay, which works fine.

 

  • Author
8 minutes ago, diesieben07 said:

You have to use one of them. Using just RenderPlayerEvent does not produce useful results.

What do you mean by "not working"?

my method isn't being called.

  • Author
1 minute ago, diesieben07 said:

Are there any players on screen?

Is that event only for remote players? I want to modify my player.

  • Author
Just now, matthew123 said:

Is that event only for remote players? I want to modify my player.

Oh, I get it. On singleplayer, it does not render the player model. Thus, theoretically, it should work when I go into 3rd person?

  • Author

Well, it is not working anyway. I want to modify the player's arm rotation (the model rotations in general). How would I do that? I also want to do it for all players that are tracking.

  • Author
Just now, diesieben07 said:

It should work fine if you go in third person. How have you checked?

By going into third person The arm did not rotate. But I also want the pose in first person to change.

  • Author
19 minutes ago, diesieben07 said:

It should work fine if you go in third person. How have you checked?

I will implement the hand animation using RenderHandEvent. How do I work with these quaternions?

  • Author
9 minutes ago, matthew123 said:

I will implement the hand animation using RenderHandEvent. How do I work with these quaternions?

I will just be tweaking the Euler angle until i get it right.

  • Author
3 minutes ago, diesieben07 said:

Show your code.

 event.getRenderer().getModel().rightArm.yRot = 50f;
 event.getRenderer().getModel().rightArm.xRot = 50f;

I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand?

  • Author
Just now, matthew123 said:
 event.getRenderer().getModel().rightArm.yRot = 50f;
 event.getRenderer().getModel().rightArm.xRot = 50f;

I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand?

Huh. Now that i think about it, the POST event is AFTER the thing was rendered. So I may need to do it in PRE, right?

  • Author
1 minute ago, matthew123 said:

Huh. Now that i think about it, the POST event is AFTER the thing was rendered. So I may need to do it in PRE, right?

Also does not work.

  • Author
10 minutes ago, diesieben07 said:

That's not how that works.

There is no event that lets you modify the animations.

Then, how would I go about rotating / animating things in the player model?

  • Author
11 hours ago, diesieben07 said:

You have to cancel the rendering and render it yourself.

That worked, thanks.

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.