mine can't yet be used for drawing at pieces(later it will, i posted it before,first is making it draw from center, second is drawing at a piece, third is making it draw at different pieces).
currently i will make all the UnitDefs, to later make them something better.
Ribbon Effects
Moderator: Moderators
Re: Ribbon Effects
Quad trails are entirely well possible:user wrote:i think i will remake the drawing function to something better, since currently, it is limited, quad drawing doesn't seems possible, it doesn't draws any quads, no matter what i try, and i tried almost everything i could think of.
- Attachments
-
- TTrails.jpg
- (179.32 KiB) Downloaded 274 times
Re: Ribbon Effects
i mean they are not possible using the current function, and i don't think you are using the same function as me.Kloot wrote:Quad trails are entirely well possible:user wrote:i think i will remake the drawing function to something better, since currently, it is limited, quad drawing doesn't seems possible, it doesn't draws any quads, no matter what i try, and i tried almost everything i could think of.
Re: Ribbon Effects
Quad trails pity da fool!
Do the last few quads have a seperate texture or can they use a mask at the end of the trail?
Do the last few quads have a seperate texture or can they use a mask at the end of the trail?
Re: Ribbon Effects
my quad drawing code is almost done, it will be really good.
if you think it is a really good idea, then i will make it.
Do the last few quads have a seperate texture or can they use a mask at the end of the trail?
if you think it is a really good idea, then i will make it.
Re: Ribbon Effects
Dunno but I thought most trails used at least two textures for a smooth end piece, or maybe a mask to do the same. Guess the former is easier.
Re: Ribbon Effects
i found a way to easily make per piece trails, with all the features i posted before, that means per piece color, texture, draw vector, min speed, wait, so expect this for the next week probably.
Re: Ribbon Effects
i made 4 new, very useful UnitDef values, and i have those 2 in the works:
trailgravity;
trailwind;
i got quad render mode done, made the drawing function better, fixed almost all errors in the other values.
after i finish those UnitDefs, then i will make some more UnitDefs which i find useful, then i implement that way of drawing per piece trails.
the per piece trails, will allow every piece have its own values, this means per piece color, draw vector, gravity, wind multiplier, life time.
trailgravity;
trailwind;
i got quad render mode done, made the drawing function better, fixed almost all errors in the other values.
after i finish those UnitDefs, then i will make some more UnitDefs which i find useful, then i implement that way of drawing per piece trails.
the per piece trails, will allow every piece have its own values, this means per piece color, draw vector, gravity, wind multiplier, life time.
Re: Ribbon Effects
Neat. Can't wait to be able to test this.
Re: Ribbon Effects
ok, it will be out soon, i have found some small issues with creating the trail gravity, but the wind should be easy, GetWind returns everything needed.
i will post here the new changes and tags:
some ideas i have:
a tag for using a 3d model as trail, with or without size increase, draw only once or repeat(only once means it gets attached to a piece, repeat would work same as normal trails).
a tag for trail collisions, with flying units only.
soon i will make new screens showing all this new stuff.
i will post here the new changes and tags:
Code: Select all
quad render mode: draws quads fast.
now the rendermode and blendmode tags will take a string instead of a number, and instead of "additive" and "subtractive", "add" or "sub" can be used.
changed minspeed to minspeedx,minspeedy,minspeedz,
traildrawvector: makes the trail only get drawn when the unit is going in an specific direction, so a value of xz would make the trail only get drawn when the unit is not going in the y direction. the values can be x,y,z,xz,xy,yz,xyz.
trailbillboarded: when set to true, it will use gl.BillBoard to draw the trail, this means the trail would be 2d.
trailsizemod: size decrease rate, high values decreases faster, 0 to deactivate.
trailtexture: well, the name explains.
trailgravity: gravity multiplier, 1 would be normal fall rate, should be set to values lower than 1, 0 to deactivate trail gravity.
what will come soon:
trailwind: the wind multiplier for the trail, 0 deactivates it.
a tag for using a 3d model as trail, with or without size increase, draw only once or repeat(only once means it gets attached to a piece, repeat would work same as normal trails).
a tag for trail collisions, with flying units only.
soon i will make new screens showing all this new stuff.