View Single Post
Old 18th February 2018, 14:48   #6
xmuzack
Senior Member
 
xmuzack's Avatar
 
Join Date: Sep 2016
Posts: 115
Hi Nitorami, interesting you mentioned Milkdrop supporting DDS. I'm going to have to play with that since Photoshop is in my background. So would learning C or C++ be a help for a few ideas I have for Milkdrop? Tons of resourses on C on the web, and it seems to me Butterbeaster used some C. I could be wrong of course.

Here's the issues I'm having, I'm sorry if this is a bit long:

Barrowed form Amandio C's Muybridge Horse and shortened to used 5 images, I understand that the samples is defined in the comp shader so the only way for that to work is to manually work the shaders in there. Example being the Muybridge Horse pixelated preset (not shown below).

per_frame_15=t=200*(2-.05*time);
per_frame_16=q12=bnot(t%5);
per_frame_17=q13=bnot(1-t%5);
per_frame_18=q14=bnot(2-t%5);
per_frame_19=q15=bnot(3-t%5);
per_frame_20=q16=bnot(4-t%5);
warp_1=`shader_body {}
comp_1=`sampler sampler_dancer1, sampler_dancer2, sampler_dancer3, sampler_dancer4, sampler_dancer5;
comp_2=`
comp_3=`shader_body
comp_4=`{
comp_5=`
comp_6=`if (q12) { ret=(tex2D(sampler_dancer1,uv)); }
comp_7=`if (q13) { ret=(tex2D(sampler_dancer2,uv)); }
comp_8=`if (q14) { ret=(tex2D(sampler_dancer3,uv)); }
comp_9=`if (q15) { ret=(tex2D(sampler_dancer4,uv)); }
comp_10=`if (q16) { ret=(tex2D(sampler_dancer5,uv)); }
comp_11=`
comp_12=`}


---------------------------------------------------------------------------------

Then I tried moving it from comp shader to the warp shader, the screen goes white and I get this flag:

error compiling ps_2_a warp shader:
(170): error X3017: cannot implicitly convert from 'const float2' to 'float3'


per_frame_15=t=200*(2-.05*time);
per_frame_16=q12=bnot(t%5);
per_frame_17=q13=bnot(1-t%5);
per_frame_18=q14=bnot(2-t%5);
per_frame_19=q15=bnot(3-t%5);
per_frame_20=q16=bnot(4-t%5);
warp_1=`sampler sampler_dancer1;
warp_2=`sampler sampler_dancer2;
warp_3=`sampler sampler_dancer3;
warp_4=`sampler sampler_dancer4;
warp_5=`sampler sampler_dancer5;
warp_6=`
warp_7=`shader_body{
warp_8=`
warp_9=`ret= q12*(sampler_dancer1,uv);
warp_10=`ret= ret+tex2D+q13*(sampler_dancer2,uv);
warp_11=`ret= ret+tex2D+q14*(sampler_dancer3,uv);
warp_12=`ret= ret+tex2D+q15*(sampler_dancer4,uv);
warp_13=`ret= ret+tex2D+q16*(sampler_dancer5,uv);
warp_14=`
warp_15=`}


---------------------------------------------------------------------------------------

This flag pops up when I try these:

error compiling ps_2_a warp shader:
(170): error X3017: cannot implicitly convert from 'const float2' to 'float3'


warp_9=`if (q12==1) {ret = tex2D (sampler_dancer1, uv1*texsize.xy*texsize_001.zw);}
warp_10=`if (q13==2) {ret = tex2D (sampler_dancer2, uv1*texsize.xy*texsize_001.zw);}
warp_11=`if (q14==3) {ret = tex2D (sampler_dancer3, uv1*texsize.xy*texsize_001.zw);}
warp_12=`if (q15==4) {ret = tex2D (sampler_dancer4, uv1*texsize.xy*texsize_001.zw);}
warp_13=`if (q16==5) {ret = tex2D (sampler_dancer5, uv1*texsize.xy*texsize_001.zw);}


error compiling ps_2_a warp shader:
(170): error X3004: undeclared identifier 'text2D'


warp_9=`ret= ret+tex2D+q12*(sampler_dancer1,uv);
warp_10=`ret= ret+tex2D+q13*(sampler_dancer2,uv);
warp_11=`ret= ret+tex2D+q14*(sampler_dancer3,uv);
warp_12=`ret= ret+tex2D+q15*(sampler_dancer4,uv);
warp_13=`ret= ret+tex2D+q16*(sampler_dancer5,uv);


error compiling ps_2_a warp shader:
(170): error X3004: undeclared identifier 'text2D'


warp_9=`ret= tex2D+q12*(sampler_dancer1,uv);
warp_10=`ret= tex2D+q13*(sampler_dancer2,uv);
warp_11=`ret= tex2D+q14*(sampler_dancer3,uv);
warp_12=`ret= tex2D+q15*(sampler_dancer4,uv);
warp_13=`ret= tex2D+q16*(sampler_dancer5,uv);


Obviously, I'm missing something here. Thanks for your help.

Last edited by xmuzack; 18th February 2018 at 15:02. Reason: formatting
xmuzack is offline   Reply With Quote