Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Effects Question (Read 437 times)
Sep 11th, 2009 at 12:45pm

Boikat   Offline
Colonel
Hello!
NW Loueezianner

Gender: male
Posts: 2978
*****
 
Is anyone familiar with what lines in the effect file designates which portion of the effect texture .bmp the "particleattrubutes" uses?  Most of the textures have four images, one in each quarter, of the .bmps. 

What I'm trying to figure out is how any given quarter of the .bmp is referenced in the codeing.

(I've already went through the effects SDK, it's not too much help in that area.)

Disregard!


  JoBee supplied the info.

(Hold on to your hats, things are going to get a little weird. Smiley  )
« Last Edit: Sep 11th, 2009 at 2:04pm by Boikat »  

...
"I reject your reality, and substitute my own" Adam Savage, Mythbusters
IP Logged
 
Reply #1 - Sep 20th, 2009 at 6:26pm

microlight   Offline
Colonel
It's a bird...
Southern UK

Gender: male
Posts: 2236
*****
 
Hey, share, dudes! What's the answer?

Wink
 

...
BAe ATP for FS9 now available! www.enigmasim.com
IP Logged
 
Reply #2 - Mar 13th, 2010 at 9:48pm

Boikat   Offline
Colonel
Hello!
NW Loueezianner

Gender: male
Posts: 2978
*****
 
microlight wrote on Sep 20th, 2009 at 6:26pm:
Hey, share, dudes! What's the answer?

Wink


Sorry i missed this!  Tongue

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? Cheesy
 

...
"I reject your reality, and substitute my own" Adam Savage, Mythbusters
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print