Page 1 of 1

Effects Question

PostPosted: Fri Sep 11, 2009 11:45 am
by Boikat
Is anyone familiar with what lines in the effect file designates which portion of the effect texture .bmp the "particleattrubutes" uses?

Re: Effects Question

PostPosted: Sun Sep 20, 2009 5:26 pm
by microlight
Hey, share, dudes! What's the answer?

;)

Re: Effects Question

PostPosted: Sat Mar 13, 2010 9:48 pm
by Boikat
Hey, share, dudes! What's the answer?

;)


Sorry i missed this!  :P

In the "effect" file, each element is made up of three sections, [emitter.x], [particle.x], and [particleatributes.x]

In the [particleatributes] section, ther are two lines:

uv1=x.xx, y.yy
uv2=x.xx, y.yy

UV1 is the lower left corner, and UV2 is the upper right corner of one quarter of the texture BMP.

So, upper left quarter of the BMP would be

uv1=0.50, 0.00
uv2=0.00, 0.50

Upper right would be

uv1=0.50, 0.50
uv2=0.00, 1.00

Lower left would be..

uv1=1.00, 0.00
uv2=0.50, 0.50

and lower right would be..

uv1=1.00, 0.50
uv2=0.50, 1.00

Again, sorry I missed this.  I only happened across it while looking for ShaneG's "Adventures in GMAX" thread.  Has anybody seen it? :D