Author Topic: What dose it do?  (Read 1827 times)

Offline AssassinPegasus

  • Dedicated Supporter
  • ***
  • Posts: 494
  • Country: lt
  • Floof-O-Meter: 9
  • Horsing around
    • Ze-Shapyra
    • Shapyra
    • View Profile
What dose it do?
« on: May 25, 2013, 09:56:24 pm »
Im lookkting and lookting at the same fiel callded  Tree wave...What dose it do?

BouncyLion101

  • Guest
Re: What dose it do?
« Reply #1 on: May 25, 2013, 10:55:19 pm »
Hm..if you're asking what the tree wave file does I think it does as effect for trees.
Just go to EffectMaker and test it out with the file, don't know if anything will actually happen though since I haven't tested it out either. x3

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: What dose it do?
« Reply #2 on: May 25, 2013, 11:45:44 pm »
You can't actually "test out" the treeWave file because it's a .cg file. You can open it up in Notepad however and you'll see pretty much just a script.

Code: [Select]
void treeWave_VP(
             float4 iPosition         : POSITION,
             float2 texCoord0         : TEXCOORD0,

             out float4 oPosition     : POSITION,
             out float2 uv0           : TEXCOORD0,

             uniform float    uTime,
             uniform float4x4 uWorld,
             uniform float4x4 uWorldViewProj)
{
   if(iPosition.y>2)
   {
      uTime += mul(uWorld, iPosition-float4(0,0,2,0)).x/100;
      iPosition.xz += float2(sin(uTime), cos(uTime))*iPosition.y/100;
   }

   oPosition  = mul(uWorldViewProj, iPosition);
   uv0 = texCoord0;
}
void treeWave_FP(
        float2 uv0        : TEXCOORD0,

        out float4 color    : COLOR,

        uniform sampler2D texture)
{
    color = tex2D(texture, uv0);
}

I can't say I know what this file does at the moment, honestly I'm finding it confusing but I'll look into it though xD
Will be inactive due to work and exams.

Offline AssassinPegasus

  • Dedicated Supporter
  • ***
  • Posts: 494
  • Country: lt
  • Floof-O-Meter: 9
  • Horsing around
    • Ze-Shapyra
    • Shapyra
    • View Profile
Re: What dose it do?
« Reply #3 on: May 26, 2013, 09:28:47 am »
Lol none is caring about that lonely file XD

Offline kiaz1st

  • Community Champion
  • ****
  • Posts: 1,686
  • Country: gb
  • Floof-O-Meter: 44
  • The Rogue
    • kiaz1st
    • kiaz1st
    • kiaz1st
    • View Profile
    • Kiaz Site
Re: What dose it do?
« Reply #4 on: May 26, 2013, 12:40:10 pm »
poor lonely file, yeah, Ive been scrolling through folders, and I noticed, but I didnt dare mess around with it o.o

Offline AssassinPegasus

  • Dedicated Supporter
  • ***
  • Posts: 494
  • Country: lt
  • Floof-O-Meter: 9
  • Horsing around
    • Ze-Shapyra
    • Shapyra
    • View Profile
Re: What dose it do?
« Reply #5 on: May 26, 2013, 07:12:22 pm »
file-For ever alone XD still is dosent work in effect maker