texugo

19-01-2009 02:34:30

Hi bros

I did'nt undestood how to Compositor works. In special the samples :

## Calculate gaussian texture offsets & weights

deviation = 3.0

texelSize = 1.0 / self.mBloomSize

## central sample, no offset

self.mBloomTexOffsetsHorz[0] = 0.0

self.mBloomTexOffsetsHorz[1] = 0.0

self.mBloomTexOffsetsVert[0] = 0.0

self.mBloomTexOffsetsVert[1] = 0.0

self.mBloomTexWeights[0] = Ogre.Math.gaussianDistribution(0, 0, deviation)

self.mBloomTexWeights[1] = self.mBloomTexWeights[0]

self.mBloomTexWeights[2] = self.mBloomTexWeights[0]

self.mBloomTexWeights[3] = 1.0

## 'pre' samples

for i in range (8):

self.mBloomTexWeights

I did'nt undestood how to Compositor works. In special the samples :

## Calculate gaussian texture offsets & weights

deviation = 3.0

texelSize = 1.0 / self.mBloomSize

## central sample, no offset

self.mBloomTexOffsetsHorz[0] = 0.0

self.mBloomTexOffsetsHorz[1] = 0.0

self.mBloomTexOffsetsVert[0] = 0.0

self.mBloomTexOffsetsVert[1] = 0.0

self.mBloomTexWeights[0] = Ogre.Math.gaussianDistribution(0, 0, deviation)

self.mBloomTexWeights[1] = self.mBloomTexWeights[0]

self.mBloomTexWeights[2] = self.mBloomTexWeights[0]

self.mBloomTexWeights[3] = 1.0

## 'pre' samples

for i in range (8):

self.mBloomTexWeights

*= 1.25 * Ogre.Math.gaussianDistribution(i, 0, deviation)*

self.mBloomTexWeightsself.mBloomTexWeights

*= self.mBloomTexWeights*

self.mBloomTexWeightsself.mBloomTexWeights

*= self.mBloomTexWeights*

self.mBloomTexWeightsself.mBloomTexWeights

*= 1.0*

self.mBloomTexOffsetsHorzself.mBloomTexOffsetsHorz

*= i * texelSize*

self.mBloomTexOffsetsHorzself.mBloomTexOffsetsHorz

*= 0.0*

self.mBloomTexOffsetsVertself.mBloomTexOffsetsVert

*= 0.0*

self.mBloomTexOffsetsVertself.mBloomTexOffsetsVert

*= i * texelSize*

## 'post' samples

for i in range (8,15):

self.mBloomTexWeights## 'post' samples

for i in range (8,15):

self.mBloomTexWeights

*= self.mBloomTexWeights[(i-7)*self.x+0]*

self.mBloomTexWeightsself.mBloomTexWeights

*= self.mBloomTexWeights*

self.mBloomTexWeightsself.mBloomTexWeights

*= self.mBloomTexWeights*

self.mBloomTexWeightsself.mBloomTexWeights

*= 1.0*

self.mBloomTexOffsetsHorzself.mBloomTexOffsetsHorz

*= -self.mBloomTexOffsetsHorz[(i - 7)*self.x+0]*

self.mBloomTexOffsetsHorzself.mBloomTexOffsetsHorz

*= 0.0*

self.mBloomTexOffsetsVertself.mBloomTexOffsetsVert

*= 0.0*

self.mBloomTexOffsetsVertself.mBloomTexOffsetsVert

*= -self.mBloomTexOffsetsVert[(i - 7)*self.x+1]*

What is the central, pre and pos samples? where Are they in screen?

ThanksWhat is the central, pre and pos samples? where Are they in screen?

Thanks