RVMAT – ArmA: Armed Assault Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(RVMAT on sprite particle)
Line 23: Line 23:
So a particle can either be very bright, or have no glow at all like an ordinary smoke particle.
So a particle can either be very bright, or have no glow at all like an ordinary smoke particle.


But if anyone does find a way, please let me know.
But if anyone does find a way, please let me know --[[User:Maddmatt|Maddmatt]] 20:57, 13 October 2007 (CEST)

Revision as of 20:57, 13 October 2007

Additional Info (from Armored_Sheep)

 Specular map is a complex bitmap. Each color chanel has its own purpose. 
 You should understand well the way of calculating pixel colors in scene
 before you paint those textures. As written value of each pixel is
 calculated with RVMAT values and engine lighting values. Texture _SM has
 diffuse values in RED, specular in GREEN and, Specular power in BLUE
 chanel. _SMDI does not use RED chanel (better compression) GPU calculates
 those values automaticaly as Diffuse = 1 - Specular. When you use
 specular map - diffuse, specular in RVMAT should be 1. Then paint B/W map
 with maximum specular and minimum specular values you imagine on surface.
 Than choose minimum (black) and maximum specular (white) values and change
 the bitmap levels to those values. (c)Armored_Sheep

--Bdfy

RVMAT on sprite particle

I tried to get a custom RVMAT on a particle, to get a fire to glow. Seems that RVMAT files don't work properly on particles. I can set: renderFlags[]={"AddBlend"};

But that's the only thing that has any effect. It makes the particle really bright - much too bright for the particle I want to use. It also seems to cause some transparency issues like objects behind being drawn on top of it. The same thing is done on a couple BIS particles like sparks, although not sure if they experience the transparency glitches. Other settings seem to be completely ignored. I could see the changes in the Buldozer preview (but there it isn't drawn as a sprite), but not in game when the particle was used. So a particle can either be very bright, or have no glow at all like an ordinary smoke particle.

But if anyone does find a way, please let me know --Maddmatt 20:57, 13 October 2007 (CEST)