Old 3rd July 2003, 22:51   #1
Zana
Member
 
Zana's Avatar
 
Join Date: Jul 2003
Location: Iceland
Posts: 76
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?
Attached Files
File Type: zip pyromanic incantations.zip (904 Bytes, 131 views)
Zana is offline   Reply With Quote
Old 3rd July 2003, 23:08   #2
mikm
Major Dude
 
mikm's Avatar
 
Join Date: May 2001
Location: somewhere else
Posts: 1,286
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.

powered by C₈H₁₀N₄O₂
mikm is offline   Reply With Quote
Old 3rd July 2003, 23:26   #3
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
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.
anubis2003 is offline   Reply With Quote
Old 4th July 2003, 01:08   #4
WHCode RED
Registered User
 
WHCode RED's Avatar
 
Join Date: Sep 2002
Location: My Computer! Posts: 257874
Posts: 69
Quack

Dont mind me. I'm bored.

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

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

pretty nice, except for the things mentioned above. nothing else too say.
Attached Files
File Type: zip zana - pyromanic incantations (rmx by codered).zip (1.1 KB, 119 views)
WHCode RED is offline   Reply With Quote
Old 4th July 2003, 10:04   #5
[Ishan]
Major Dude
 
[Ishan]'s Avatar
 
Join Date: Mar 2003
Location: India
Posts: 1,156
Send a message via Yahoo to [Ishan]
I like the color combination, but the preset aint that special


Amateur AVS'er. All over again.

Last AVS Pack :
Resurgence

[Ishan] is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Presets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump