Page 1 of 1
draw_wave bug?
Posted: Wed Jul 11, 2012 3:41 am
by APCs r Evil
I'm using draw_wave to render a flat ring and while it works just fine for that, I am having trouble with the texture.
The wave section nearest the Scout is showing vsmoke.tga the way you would expect, but the rest of the ring appears to be using a different texture altogether. At first I thought the ring was horribly stretching the texture but you can see that the light and dark sections don't match up.
Below are the exact settings used to take that screenie. I don't know if this is a bug or just something I messed up, so feedback would be helpful.
[Ring]
simulateBase = "sim_smoke"
lifeTime = 20.2
renderBase = "draw_wave"
textureName = "vsmoke.tga"
textureBlend = "one one modulate"
startColor = "255 255 63 255"
finishColor = "255 127 30 0"
startRadius = 6.0
finishRadius = 20
animateTime = 20.2
waveAngle = 3.14159
waveDepth = 0.5
waveSegments = 32
Re: draw_wave bug?
Posted: Wed Jul 11, 2012 4:26 am
by S.cavA.rmyG.en
try this
Code: Select all
[Ring]
simulateBase = "sim_smoke"
lifeTime = 20.2
renderBase = "draw_wave"
textureName = "vsmoke.tga"
textureBlend = "one one modulate"
startColor = "255 255 63 255"
finishColor = "255 127 30 0"
startRadius = 6.0
finishRadius = 20
animateTime = 20.2
waveAngle = 3.15159 //test this
waveDepth = 0.5
waveSegments = 37 //and this
if those don't fix/do any thing then its probly a bug.
Re: draw_wave bug?
Posted: Wed Jul 11, 2012 4:53 am
by Nielk1
That is the last pixel on either side of the image repeating over and over. Might be a bug, to fiddle around. Normally the textures used are more single gradients than anything more complex, but I think FE pulled off a pattern OK.
Re: draw_wave bug?
Posted: Wed Jul 11, 2012 11:36 am
by APCs r Evil
S.cavA.rmyG.en wrote:3.15159 //test this
waveSegments = 37 //and this
No dice. 3.15 created a small overlap area that was more opaque than the rest of the ring. Adding more waveSegments seemed to get rid of that overlap area but not spread the texture throughout the ring.
Nielk1 wrote:That is the last pixel on either side of the image repeating over and over.
Sure enough. Tried using lightflare.tga and the only the lightflare was visible in that small section, no visible ring
Looks like the texture is only applied to the first wave segment, and I also noticed that the wave I posted doesn't slowly fade over time, so its finishColor alpha is never used, only the startColor alpha. Although for some reason the finishColor colors
are used...
Re: draw_wave bug?
Posted: Fri Aug 17, 2012 9:06 am
by TheJamsh
You could use a draw_geom effect if you want a workaround for the meantime. unfortunately draw_geom, draw_sphere and draw_wave are still pretty buggy in multi-world and I don't think that's likely to change soon.
Re: draw_wave bug?
Posted: Fri Aug 17, 2012 10:05 am
by MrTwosheds
I think it was only ever intended to draw a simple gradient texture, its not like its a properly UV mapped object.
waveAngle = 3.14159 = Pi, increasing this will cause the overlap. Use drawgeom if you want something more complicated.
Re: draw_wave bug?
Posted: Fri Aug 17, 2012 1:52 pm
by Red Devil
rounding error, perhaps? tried using more digits? 3.14159265359
Re: draw_wave bug?
Posted: Fri Aug 17, 2012 9:03 pm
by Nielk1
I wouldn't be surprised if the UV code is bad. Turns out that the code on the little circular gauge was bad for a long time and no one ever knew because it wasn't noticeable till an actual image texture was applied.
Re: draw_wave bug?
Posted: Sat Aug 18, 2012 12:31 am
by TheJamsh
Going back to my previous post, a draw_geom would probably be less expensive am I right? Less polygons to draw? (I'm guessing that draw_wave just uses a bunch of polies generated by the engine?)
Re: draw_wave bug?
Posted: Sat Aug 18, 2012 1:57 am
by Nielk1
bugs should still be fixed... This should be tested in beta and then fixed if actually broken.
Re: draw_wave bug?
Posted: Sat Aug 18, 2012 6:44 am
by MrTwosheds
Well I can't ever recall seeing anyone produce a full detail textured ring with it. Some evidence that it was ever different?
Re: draw_wave bug?
Posted: Sat Aug 18, 2012 5:03 pm
by Nielk1
MrTwosheds wrote:Well I can't ever recall seeing anyone produce a full detail textured ring with it. Some evidence that it was ever different?
If that's true then we definitely have an issue to have fixed. I thought FE had some, but I don't recall.
I had a case where I put a texture on a circular gauge and found that when it had a certain value range the UV was all wrong on the element. I think it was Ken who fixed the gauge issue. This is probably just a case of similar issues.
Re: draw_wave bug?
Posted: Sun Aug 19, 2012 1:58 am
by Red Devil
FE uses some expanding rings on water to simulate raindrops or some bubbles rising from the depths.
Re: draw_wave bug?
Posted: Sun Aug 19, 2012 2:14 am
by MrTwosheds
Rings would be done with a simple gradient, where the image across the texture is the same anyway, so it wouldn't matter. I don't think it ever did draw a whole texture all the way round.
Re: draw_wave bug?
Posted: Sun Aug 19, 2012 3:59 am
by Nielk1
Even if it didn't, it should.