Archive: New Preset


3rd July 2003 23:51 UTC

New Preset
Here's a pretty firey preset. Any advice would be great, but before I submit it I have question.

Sometimes when you use a bump, all the black pixels aren't completely affected by it, causing rough, sharp edges on the render object, which doesn't exactly look good. Is there any way to fix this?


4th July 2003 00:08 UTC

No offense, but this doesn't look very 'firey' to me. It is too busy and hard to see what is going on.

On the techincal side:

SSC:
Init:
n=80;t=0.0;
Remove t=0.0. It is redundant.
Add p9=acos(-1)*9. acos(-1) is equal to pi, so is much more accurate than writing it out.

Per point:

r=i*3.14159*9;
Repalce "3.14159*9" with p9. Because we calculated acos(-1)*9 in init, it is not calculated again, saving you 80 calculations per frame. While this is not important now, it will help once you make more and more complex presets.

d=sin(r*0)+v*0.5;
Remove sin(r*0). When you multiply anything by 0, it is zero. The sine of 0 is also 0. Doing this saves you 160 calculations every frame. Again, it is not important now, but helps in the long run.

The rest of the SSC is fine.


In the bump, you have
Frame:


x=0.5+0*0.3;
y=0.5+0*0.3;
t=t+0.1;

You never use t, so there is no need to have it. Also, you have numbers multiplying by 0 again. Remove the +0*.3 in the x and y calculations.


4th July 2003 00:26 UTC

Like m^2k was saying - make sure you OPTIMIZE - it makes your code faster(esp. when you have useless functions, such as sin,cos,tan,etc) and easier to read.

I'm not exactly sure what you mean by the bump - it only does a certain area surrounding the bump location, so anything outside of that circle will not be affected. I also don't think that it modifies purely black pixels, but if the color has the slightest color(even if it's not noticable - such as RGB 0,0,1), it may apply the bump to it. I'm not sure about that, but I think that may be what you are talking about.


4th July 2003 02:08 UTC

Quack
Dont mind me. I'm bored.

Oh yeah, here is a remix. Dont complain, im bored. :rolleyes:

[edit]
im so bored i forgot to post about the preset.

pretty nice, except for the things mentioned above. nothing else too say.


4th July 2003 11:04 UTC

I like the color combination, but the preset aint that special:rolleyes: