266 posts
Posted 23 March 2012 - 08:53 PM
Is there a way to edit a blocks texture in real-time?
Really need it for my CCLights mod.
510 posts
Posted 24 March 2012 - 07:38 AM
Well, you can render almost everything if you know OpenGL. You will need to make your block having a tile entity (should be for peripheral anyways) and create a subclass of TileEntitySpecialRenderer. Inside, you can implement any custom OpenGL rendering algorithm. If you need, for instance, color changing, you can just use glcolor.
I would not recommend direct texture editing, as the texture would need to be reloaded every time, and that costs performance.
266 posts
Posted 24 March 2012 - 02:42 PM
…Thanks…
I'll just stick with wool colors.
2447 posts
Posted 24 March 2012 - 11:32 PM
This is not really a peripheral question, and more of a general minecraft question. This forum should really only be used for peripheral API questions.
195 posts
Location
Cambridgeshire, England
Posted 25 March 2012 - 11:05 AM
I agree with cloudy. This section is for questions specifically related to peripherals. Your question is more a generic minecraft modding question so would be better asked at minecraftforum.net's modding section.
266 posts
Posted 16 December 2012 - 03:08 PM
Well, you can render almost everything if you know OpenGL. You will need to make your block having a tile entity (should be for peripheral anyways) and create a subclass of TileEntitySpecialRenderer. Inside, you can implement any custom OpenGL rendering algorithm. If you need, for instance, color changing, you can just use glcolor.
I would not recommend direct texture editing, as the texture would need to be reloaded every time, and that costs performance.
Well, you were wrong about editing the texture directly :D/>. Look at CCLights now!
1054 posts
Posted 16 December 2012 - 03:27 PM
He didn't say it wouldn't work, he just said that it would cost performance. OpenGL would definitely be the wisest choice in the case of CCLights. Also, Xfel replied that almost 9 months ago O.o .