Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Rotate TileEntityModel
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
redstonedude

Rotate TileEntityModel

By redstonedude, January 18, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

redstonedude    0

redstonedude

redstonedude    0

  • Tree Puncher
  • redstonedude
  • Members
  • 0
  • 40 posts
Posted January 18, 2014

Hi, I've made a block with a TileEntity and given the TileEntity a model so that i can get a block that's not got fixed 1x1x1 dimensions, however is there an easy way to rotate the model around the 4 directions (N,E,S,W) easily? Ive made the model in Techne but some of the boxes are at angles and some rotate so it would be possible to just use .setRotationAngle on the boxes but i woudl require some complex trigonomety to rotate and translate the boxes which in turn would take up lots of cpu and lag the game probably, is there a parameter in any other function like .render that i can use to rotate the model?

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2401

Draco18s

Draco18s    2401

  • Reality Controller
  • Draco18s
  • Members
  • 2401
  • 15918 posts
Posted January 18, 2014

GL11.GL_rotate(angle, amount_on_xaxis, amount_on_yaxis, amount_on_zaxis)

 

So probably, figure out how far to rotate it (metadata) and then GL11.GL_rotate(angle, 0, 1, 0)

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

redstonedude    0

redstonedude

redstonedude    0

  • Tree Puncher
  • redstonedude
  • Members
  • 0
  • 40 posts
Posted January 19, 2014

that goes in the renderer class i presume?

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2401

Draco18s

Draco18s    2401

  • Reality Controller
  • Draco18s
  • Members
  • 2401
  • 15918 posts
Posted January 19, 2014

that goes in the renderer class i presume?

 

Yes.

 

And don't forget a push and pop matrix, if you don't already have one (you should).

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

redstonedude    0

redstonedude

redstonedude    0

  • Tree Puncher
  • redstonedude
  • Members
  • 0
  • 40 posts
Posted January 19, 2014

okay, will add that now, also thansk for the reminder about the matrix i was getting stack overflows cos i didn't pop it. also i know this is a bit off-topic but can you please explain pushing and popping matrixes to me quickly; i use pre-made rendering code and techne for all my modelling however i'm starting to understand how to manipulate it 'manually' quite well, my current understanding is pushing and popping matrixes is like creating and deleting variables, am I right?

  • Quote

Share this post


Link to post
Share on other sites

redstonedude    0

redstonedude

redstonedude    0

  • Tree Puncher
  • redstonedude
  • Members
  • 0
  • 40 posts
Posted January 19, 2014

just noticed, GL_Rotate doesn't exist, i presume you mean glRotatef?

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2401

Draco18s

Draco18s    2401

  • Reality Controller
  • Draco18s
  • Members
  • 2401
  • 15918 posts
Posted January 19, 2014

just noticed, GL_Rotate doesn't exist, i presume you mean glRotatef?

 

Ah yes.  I tend to remember things in vernacular and use the IDE code hinting features to get the name I'm trying to use.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • poopoodice
      Rotating Item Model Baked Quads

      By poopoodice · Posted just now

      Maybe not in Vector3d, but there's one in Vector3f  
    • mireyaruff
      my server doens`t work

      By mireyaruff · Posted 36 minutes ago

      Thx, appreciate it!
    • Badnews4u
      My forge server won't load all the mods

      By Badnews4u · Posted 51 minutes ago

      Went through all the steps to make forge server hosted from my computer. I was able to successfully launch the server, but after joining the server I noticed not all my mods were working. Most notably it didn't generate a world with biomes o' plenty when I made sure to set the biomes o' plenty default world setting in the configs to true. Also gravestone mod won't give me gravestones. I made sure to update my java and everything and yes, I made sure to create the server using the forge .jar file. Any suggestions on how to fix this?
    • Lellian
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian · Posted 2 hours ago

      Well this is embarrasing. I don't know how I missed this, but it fixed everything.   Thank you very much 🤣🔫
    • Draco18s
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Draco18s · Posted 2 hours ago

      Cough.  
  • Topics

    • poopoodice
      3
      Rotating Item Model Baked Quads

      By poopoodice
      Started Wednesday at 09:45 PM

    • peermans
      2
      my server doens`t work

      By peermans
      Started January 7

    • Badnews4u
      0
      My forge server won't load all the mods

      By Badnews4u
      Started 51 minutes ago

    • Lellian
      4
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian
      Started 4 hours ago

    • Chicckenprell
      0
      stoneblock 1.12.2 server crashing

      By Chicckenprell
      Started 4 hours ago

  • Who's Online (See full list)

    • Belial
    • jbredwards
    • Choonster
    • delta
    • Draco18s
    • Klarks
    • Badnews4u
    • TheHook
    • KirbyTheStar
    • LevelNaomi
    • Kreepydude
    • ChampionAsh5357
    • HEHEHAHAHA
    • Lellian
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Rotate TileEntityModel
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community