Jump to content

Recommended Posts

Posted (edited)

My aim is to make "glyphs" out of particles -- images to decorate the casting of rituals.

 

How can I create particles of different colours if ParticleType and BasicParticleType have no colourising variables and Particles themselves (and their subclasses) cannot be registered and have a texture bound to them?

 

Side note:

The way I am planning to make the images is to read an array of bytes from a png file in the mod resources. The Glyph class will then take those bytes in groups of 4 (red, green, blue and alpha for each pixel) and apply these attributes to a particle, then add it to the world. Particle has all of these variables in it, I just can't see how to utilise them, as I said above.

 

GitHub in signature

Edited by GenElectrovise
GitHub in signature

How to ask a good coding question: https://stackoverflow.com/help/how-to-ask

Give logs, code, desired effects, and actual effects. Be thorough or we can't help you. Don't post code without putting it in a code block (the <> button on the post - select "C-type Language"): syntax highlighting makes everything easier, and it keeps the post tidy.

 

My own mod, Magiks Most Evile: GitHub (https://github.com/GenElectrovise/MagiksMostEvile) Wiki (https://magiksmostevile.fandom.com/wiki/Magiks_Most_Evile_Wiki)

Edit your own signature at https://www.minecraftforge.net/forum/settings/signature/

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...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.