Jump to content




Dynamically edit a block texture.


  • You cannot reply to this topic
6 replies to this topic

#1 ds84182

  • Members
  • 184 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.

#2 Xfel

    Peripheral Designer

  • Members
  • 515 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.

#3 ds84182

  • Members
  • 184 posts

Posted 24 March 2012 - 02:42 PM

...Thanks...
I'll just stick with wool colors.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 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.

#5 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 25 March 2012 - 10: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.

#6 ds84182

  • Members
  • 184 posts

Posted 16 December 2012 - 03:08 PM

View PostXfel, on 24 March 2012 - 07:38 AM, said:

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!

#7 Orwell

    Self-Destructive

  • Members
  • 1,091 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 .





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users