Sunshine
Previous Image | Next Image
Description: Lately I know all about Chaos, since it has moved in with us here...   I hope it's temporary and I will once again enjoy the bliss of not having a clue about it

Basic code:
Code: [Select]
#info Notice: set Render mode to Continous#info Theli-at's Pseudo Kleinian (Scale 1 JuliaBox + Something) by Knighty#info plus some log and sin-stuff added by Sabine62, but based on transforms by dark-beam who deserves all credit for it#define providesColor     #define USE_INF_NORM#define KN_VOLUMETRIC#define USE_IQ_CLOUDS#define USE_EIFFIE_SHADOW#define MULTI_SAMPLE_AO#include "MathUtils.frag"#include "DE-Kn2cr11.frag"#group Coloringuniform vec3 LVI; slider[(-1,-1,-1),(0,0,0),(1,1,1)]uniform int LightIter; slider[0,1,100]uniform bool RevertDiv; checkbox[false]uniform bool AddOrbitStrength; checkbox[false]vec3 lightold;vec3 lightnew;vec3 baseColor(vec3 p, vec3 q){  if (RevertDiv) {q=abs(lightold/lightnew);} else {q=abs(lightnew/lightold);}; q*=(LVI); if (AddOrbitStrength) q+=OrbitStrength;   return q;}#group PseudoKleinian// Made by Knighty, see this thread:// http://www.fractalforums.com/3d-fractal-generation/fragmentarium-an-ide-for-exploring-3d-fractals-and-other-systems-on-the-gpu/msg32270/#msg32270// Maximum iterationsuniform int MI; slider[0,5,60]// Bailout//uniform float Bailout; slider[0,20,1000]uniform int ColorIterations;  slider[0,9,100]// Sizeuniform float Size; slider[0,1,2]// Cubic fold Sizeuniform vec3 CSize; slider[(0,0,0),(1,1,1),(2,2,2)]// Julia constantuniform vec3 C; slider[(-2,-2,-2),(0,0,0),(2,2,2)]// Thingy thicknessuniform float TThickness; slider[0,0.01,2]// Thingy DE Offsetuniform float DEoffset; slider[0,0,0.01]// Thingy Translationuniform vec3 Offset; slider[(-1,-1,-1),(0,0,0),(1,1,1)]//foldTgladuniform bool IsFold; checkbox[false]uniform vec3 Fold3; slider[(-5,-5,-5),(0,0,0),(5,5,5)]#group LogSinuniform bool LogX; checkbox[false]uniform bool LogY; checkbox[false]uniform bool LogZ; checkbox[false]uniform float scalelogx; slider[-5,1,5]uniform float scalelogy; slider[-5,1,5]uniform float scalelogz; slider[-5,1,5]uniform bool SinX; checkbox[false]uniform float scalesinx; slider[-5,1,5]uniform float offsetsinx; slider[-5,0,5]uniform float slopesinx; slider[-5,0,5]uniform bool SinY; checkbox[false]uniform float scalesiny; slider[-5,1,5]uniform float offsetsiny; slider[-5,0,5]uniform float slopesiny; slider[-5,0,5]uniform bool SinZ; checkbox[false]uniform float scalesinz; slider[-5,1,5]uniform float offsetsinz; slider[-5,0,5]uniform float slopesinz; slider[-5,0,5]float RoundBox(vec3 p, vec3 csize, float offset){ vec3 di = abs(p) - csize; float k=max(di.x,max(di.y,di.z)); return abs(k*float(k<0.)+ length(max(di,0.0))-offset);}float Thingy(vec3 p, float e){ p-=Offset; return (abs(length(p.xy)*p.z)-e) / sqrt(dot(p,p)+abs(e));}float Thing2(vec3 p){//Just scale=1 Julia box float DEfactor=1.;    vec3 ap=p+1.; lightold=p; lightnew=p; for(int i=0;i<MI && ap!=p;i++){ if (i<LightIter) {lightold=p;} else {lightold=lightold;}; ap=p; p=2.*clamp(p, -CSize, CSize)-p;      float r2=dot(p,p); //orbitTrap = min(orbitTrap, abs(vec4(p,r2))); float k=max(Size/r2,1.); p*=k;DEfactor*=k;      p+=C; if (LogX)(p.x = scalelogx*log(p.x + sqrt(p.x*p.x + 1))); if(LogY)(p.y = scalelogy*log(p.y + sqrt(p.y*p.y + 1))); if (LogZ)(p.z = scalelogz*log(p.z + sqrt(p.z*p.z + 1))); if (SinX)(p.x = scalesinx*sin(p.x + offsetsinx)+(p.x*slopesinx)); if (SinY)(p.y = scalesiny*sin(p.y + offsetsiny)+(p.x*slopesiny)); if (SinZ)(p.x = scalesinz*sin(p.z + offsetsinz)+(p.z*slopesinz)); if (i<LightIter) {lightnew=p;} else {lightnew=lightnew;}; float r=length(p.xyz); if (i<ColorIterations) orbitTrap = min(orbitTrap, abs(vec4(p.x,p.y,p.z,r*r))); } //Call basic shape and scale its DE //return abs(0.5*Thingy(p,TThickness)/DEfactor-DEoffset); //Alternative shape //return abs(0.5*RoundBox(p, vec3(1.,1.,1.), 1.0)/DEfactor-DEoffset); //Just a plane return abs(0.5*abs(p.z-Offset.z)/DEfactor-DEoffset);}float DE(vec3 p){ if (IsFold) (p.xyz = abs(p.xyz+Fold3) - abs(p.xyz-Fold3) - p.xyz); return  Thing2(p);//RoundBox(p, CSize, Offset);}#preset DefaultFOV = 0.462719299Eye = -3.1820097,-1.26175833,-2.67226076Target = -0.021615602,7.95439959,-3.73475337Up = 0,0,-0.88784194EquiRectangular = falseAutoFocus = falseFocalPlane = 2.44439409Aperture = 0.025083612InFocusAWidth = 1DofCorrect = trueApertureNbrSides = 7ApertureRot = 0ApStarShaped = trueGamma = 1ToneMapping = 3Exposure = 1Brightness = 1.18539326Contrast = 1.63697105Saturation = 1.1741573Hue = 0GaussianWeight = 1AntiAliasScale = 1.2LensFlare = falseFlareIntensity = 0.25FlareSamples = 8FlareDispersal = 0.25FlareHaloWidth = 0.5FlareDistortion = 1Bloom = falseBloomIntensity = 1.090659BloomPow = 2.192804BloomTaps = 24BloomStrong = 3.255082DepthToAlpha = falseShowDepth = falseDepthMagnitude = 1Detail = -3.5RefineSteps = 4FudgeFactor = 0.283276451MaxRaySteps = 689MaxDistance = 19.7444828Dither = 0NormalBackStep = 4DetailAO = -0.2200128coneApertureAO = 0.5833333maxIterAO = 23FudgeAO = 1AO_ambient = 1.012937AO_camlight = 1.416181AO_pointlight = 0.9928656AoCorrect = 0.0106007Specular = 0.8466667SpecularExp = 16CamLight = 1,0.847058773,0.631372511,1.28773585AmbiantLight = 0.709803879,0.886274517,1,1.52048193Reflection = 0.192156866,0.196078435,0.184313729ReflectionsNumber = 1SpotGlow = trueSpotLight = 1,0.909803927,0.792156875,49.9390987LightPos = -7.91855212,2.26244349,-3.291741LightSize = 0.0923176LightFallOff = 0.345762711LightGlowRad = 0.0957592LightGlowExp = 1.57553HardShadow = 0.8130969ShadowSoft = 0ShadowBlur = 0perf = falseSSS = falsesss1 = 0.0210191sss2 = 0.5350318BaseColor = 1,1,1OrbitStrength = 0.719594595X = 0.5,0.600000024,0.600000024,-0.247165533Y = 1,0.600000024,0,-0.002267573Z = 0.800000012,0.779999971,1,0.1292517R = 0.400000006,0.699999988,1,0.343927355BackgroundColor = 0,0.211764708,0.247058824GradientBackground = 0CycleColors = falseCycles = 0.490949214EnableFloor = falseFloorNormal = 0.0001,1,0FloorHeight = -2.648104FloorColor = 0.737254918,0.945097983,1HF_Fallof = 1.2545HF_Const = 0HF_Intensity = 0.18161435HF_Dir = 0,-0.028634362,1HF_Offset = -1.87919464HF_Color = 0.0470588244,0.0588235296,0.13333334,2.264937HF_Scatter = 0HF_Anisotropy = 0.0627451017,0.968627453,0HF_FogIter = 1HF_CastShadow = falseEnCloudsDir = trueCloudDir = 1,1,0CloudScale = 1.37959184CloudFlatness = 0.6868132CloudTops = -0.454545449CloudBase = -2.38636363CloudDensity = 0.755986317CloudRoughness = 1CloudContrast = 3.60693642CloudColor = 0.649999976,0.680000007,0.699999988CloudColor2 = 0.0700000003,0.170000002,0.239999995SunLightColor = 0.699999988,0.5,0.300000012Cloudvar1 = 0Cloudvar2 = 3CloudIter = 5CloudBgMix = 1WindDir = 0,0,1WindSpeed = 1LVI = 0.207048459,-0.017621145,-0.022026431LightIter = 8RevertDiv = falseAddOrbitStrength = falseMI = 29ColorIterations = 8Size = 1.423571CSize = 1.222027,1.299681,1.205112C = 0.3716609,0.0023229,-0.0069686TThickness = 0.01DEoffset = 0Offset = 0,0,0IsFold = trueFold3 = 0,0,0LogX = falseLogY = falseLogZ = falsescalelogx = 1scalelogy = 0.9228487scalelogz = 0.9964413SinX = falsescalesinx = 0.9074733offsetsinx = -0.5324212slopesinx = 0.4599407SinY = truescalesiny = 2.200474offsetsiny = 0.4193932slopesiny = 0.1097923SinZ = falsescalesinz = 0.3526971offsetsinz = 3.376932slopesinz = 1.714116#endpreset
Stats:
Views: 54
Total Favorities: 0 View Who Favorited
Filesize: 2.9MB
Height: 1080 Width: 1920
Posted by: Sabine62 September 30, 2019, 07:54:24 PM

Rating: by 1 members.
Total Likes: 1