Title: Stem Cell Scaffold Post by: Tim Emit on September 14, 2016, 03:55:53 PM Stem Cell Scaffold
(http://nocache-nocookies.digitalgott.com/gallery/19/6383_14_09_16_3_55_52.jpeg) http://www.fractalforums.com/index.php?action=gallery;sa=view;id=19608 Fragmentarium _ Asurf params- not exactly the same params but almost ... #info Amazing Surface by Kali - Based on Tglad's Amazing Box #define providesInit #define KN_VOLUMETRIC #define USE_EIFFIE_SHADOW #define USE_IQ_CLOUDS #include "DE-kn2.frag" #include "MathUtils.frag" #group AmazingSurface uniform int Iterations; slider[0,17,300] uniform int ColorIterations; slider[0,3,300] uniform float MinRad2; slider[0.00001,0.25,2.0] uniform float Scale; slider[-3,1.5,3.0] uniform int FoldType; slider[1,1,3] uniform vec3 PreTranslation; slider[(-5,-5,-5),(0,0,0),(5,5,5)] uniform vec2 FoldValues; slider[(0,0),(1,1),(5,5)] uniform bool Julia; checkbox[false] uniform vec3 JuliaValues; slider[(-5,-5,-5),(-1,-1,-1),(5,5,5)] uniform vec3 RotVector; slider[(-1,-1,-1),(1,1,1),(1,1,1)] uniform float RotAngle; slider[-180,0,180] mat3 rot; void init() { rot = rotationMatrix3(normalize(RotVector), RotAngle); } vec4 scale = vec4(Scale, Scale, Scale, abs(Scale))/MinRad2; float absScalem1 = abs(1-Scale); float AbsScaleRaisedTo1mIters = pow(abs(Scale), float(1-Iterations)); float DE(vec3 pos) { vec4 p = vec4(pos,1); vec3 c = Julia?JuliaValues:p.xyz; for (int i=0; i<Iterations; i++) { if (FoldType==1) p.xy=abs(p.xy+FoldValues)-abs(p.xy-FoldValues)-p.xy; if (FoldType==2) p.xy=FoldValues-abs(abs(p.xy)-FoldValues); if (FoldType==3) p.xy=abs(p.xy+FoldValues); p.xyz+=PreTranslation; float r2 = dot(p.xyz, p.xyz); if (i<ColorIterations) orbitTrap = min(orbitTrap, abs(vec4(p.xyz,r2))); p *= clamp(max(MinRad2/r2, MinRad2), 0, 1.0); p = p*scale; p.xyz+=c; p.xyz*=rot; } return ((length(p.xyz) - absScalem1) / p.w - AbsScaleRaisedTo1mIters); } #preset StemCellScaffold FOV = 1.186 Eye = 0.276634,3.01964,1.67067 Target = -0.690993,5.5549,1.57106 FocalPlane = 0.02 Aperture = 5e-05 InFocusAWidth = 0.41182 ApertureNbrSides = 5 ApertureRot = 0 ApStarShaped = false Gamma = 1.2384 ToneMapping = 3 Exposure = 0.97323 Brightness = 1.4373 Contrast = 1.9822 Saturation = 1.77525 GaussianWeight = 9.2524 AntiAliasScale = 0.0829 Bloom = true BloomIntensity = 0.51368 BloomPow = 8.5049 BloomTaps = 16 Detail = -2.91165 DetailAO = -0.41293 FudgeFactor = 1 MaxRaySteps = 352 MaxDistance = 20 Dither = 0 NormalBackStep = 3.6505 AO = 0.0117647,0.00784314,0.0470588,1 AoCorrect = 0.99718 Specular = 0.18284 SpecularExp = 8.155 CamLight = 0.956863,0.976471,0.976471,0.29644 CamLightMin = 0.01709 Glow = 1,0.513725,0.270588,0.01143 GlowMax = 0 Reflection = 0,0.0117647,0.0313725 ReflectionsNumber = 3 SpotGlow = true SpotLight = 0.92549,0.188235,0.121569,4.9206 LightPos = -0.2118,4.3974,0.6352 LightSize = 0.49353 LightFallOff = 0.11764 LightGlowRad = 0.9357 LightGlowExp = 4.1598 HardShadow = 1 ShadowSoft = 6.9028 BaseColor = 0.878431,0.921569,0.976471 OrbitStrength = 0.54703 X = 0.294118,0.533333,0.6,0.79484 Y = 0.14902,0.705882,0.290196,0.90792 Z = 0.25098,0.796078,0.823529,0.86592 R = 0.521569,0.901961,0.827451,-0.2692 BackgroundColor = 0.956863,0.729412,0.101961 GradientBackground = 0.41915 CycleColors = true Cycles = 2.72076 EnableFloor = true FloorNormal = 0.0095,-0.06464,1 FloorHeight = 1.3987 FloorColor = 0.960784,0.784314,0.952941 HF_Fallof = 1.4955 HF_Const = 0.17465 HF_Intensity = 0.89145 HF_Dir = 0.16586,-0.34138,0.11112 HF_Offset = -0.8866 HF_Color = 0.733333,0.870588,0.992157,0.39369 HF_Scatter = 6.8883 HF_Anisotropy = 0,0,0 HF_FogIter = 7 HF_CastShadow = true CloudScale = 0.13109 CloudFlatness = 0.65549 CloudTops = -9.9044 CloudBase = -8.67 CloudDensity = 0.02305 CloudRoughness = 0.73122 CloudContrast = 2.552 CloudColor = 0.819608,0.952941,0.952941 SunLightColor = 0.92549,0.776471,0.0980392 Iterations = 71 ColorIterations = 12 MinRad2 = 0.54755 Scale = 1.38312 FoldType = 3 PreTranslation = -1.0336,-1.0168,0.042 FoldValues = 2.5227,0.75555 Julia = true JuliaValues = -2.272,-1.1194,-0.9204 RotVector = -0.519,-1,-0.4562 RotAngle = -177.883 Up = -0.4322,1,1 #endpreset Title: Re: Stem Cell Scaffold Post by: ciric50 on November 05, 2016, 01:11:23 PM Very nice!
When I try to run this script it fails because it can't find DE-kn2.frag. Where can I get that? Title: Re: Stem Cell Scaffold Post by: 3dickulus on November 05, 2016, 04:14:23 PM DE-Kn2.frag ... try a capital "K"
if you installed Fragmentarium using the online installer the file is in Fragmentarium\Examples\Include folder Title: Re: Stem Cell Scaffold Post by: ciric50 on November 05, 2016, 04:55:59 PM Thanks. I'm on Linux so I compiled and installed from source code. That file is not present in the source, and I did check to insure I had the latest from github. I assume you're referring to the Windows installer? I'll have to get to a Windows machine and compare those directories to what I have.
Title: Re: Stem Cell Scaffold Post by: Sabine on November 05, 2016, 08:57:18 PM You can find the examples with the Include-frags here http://www.digilanti.org/fragmentarium/index.php as "Fragmenatrium Examples.zip"
Title: Re: Stem Cell Scaffold Post by: ciric50 on November 05, 2016, 09:19:02 PM There were quite a few differences there from what I had. Thanks!
Title: Re: Stem Cell Scaffold Post by: Sabine on November 05, 2016, 09:23:05 PM Love to share other people's stuff ;}
Welcome!:) Title: Re: Stem Cell Scaffold Post by: Tim Emit on November 09, 2016, 11:09:55 PM thanks everyone else : )_ i have been toiling away.
@ciric50 Is that working for you now? Title: Re: Stem Cell Scaffold Post by: ciric50 on November 14, 2016, 01:20:18 PM I've been on vacation. Yes, it's working for me now. Thanks! |