armory icon indicating copy to clipboard operation
armory copied to clipboard

It would be cool if there were hair particles in armory3d

Open Sekaus opened this issue 3 years ago • 11 comments

Hair particles will be able to give one's character so much more life and can make one's game look more realistic. and if I am not mistaken then it can easily run on the GPU to save fps

Sekaus avatar Aug 27 '21 17:08 Sekaus

Hair particles is already supported by Armory and it is done via GPU instancing. Here is an example of the particles rendered as grass.

You can download the example here

QuantumCoderQC avatar Aug 27 '21 17:08 QuantumCoderQC

@QuantumCoderQC well that is cool... but how can I make the particles visible when I run the game?...

Sekaus avatar Aug 27 '21 17:08 Sekaus

I'm sorry I did not understand what you mean by "make the particles visible"? Are the grass particles already not visible? Can you please elaborate.

QuantumCoderQC avatar Aug 27 '21 17:08 QuantumCoderQC

@QuantumCoderQC the particles in the example are working but not in my blender fil... I do not know what is wrong but the hair can not be shown...

Sekaus avatar Aug 27 '21 17:08 Sekaus

@QuantumCoderQC maybe it's because I have to add a texture to the hair particles...

Sekaus avatar Aug 27 '21 18:08 Sekaus

@Sekaus its difficult to tell what's wrong, but have you set particles to be drawn as objects in Blender?

QuantumCoderQC avatar Aug 27 '21 19:08 QuantumCoderQC

@QuantumCoderQC okay... I can see them... but they are not displayed correctly....

Sekaus avatar Aug 27 '21 19:08 Sekaus

Can you elaborate what is wrong in the display? The colors? position? Perhaps share an image comparing blender vs armory.

QuantumCoderQC avatar Aug 27 '21 19:08 QuantumCoderQC

@QuantumCoderQC all the hairs point the same way... the hair was meant to look like this Skærmbillede (308) But when I press F5 its look like this Skærmbillede (310)

Sekaus avatar Aug 27 '21 20:08 Sekaus

I see, well, thanks for the info. Can you please share the blend file so i can have a look at it when I get some time.

In the meantime, there is another way to get these particles rendered:

  1. Convert these hair particles in Blender to mesh objects linked duplicates. This can be done in the Particle system modifier with "Convert to Mesh"
  2. Now, if all goes well, each particle will be a new object. But they will all have the same mesh in Blender.
  3. Parent all the particle objects to one particle object.
  4. In the parent particles Object property, enable instancing and set it to loc+rot+scl.
  5. Run the game.

QuantumCoderQC avatar Aug 27 '21 20:08 QuantumCoderQC

@QuantumCoderQC Here Viggo_Hunter.zip

Sekaus avatar Aug 27 '21 20:08 Sekaus