Matches in SemOpenAlex for { <https://semopenalex.org/work/W2288897662> ?p ?o ?g. }
Showing items 1 to 60 of
60
with 100 items per page.
- W2288897662 abstract "#include // smallpt, a Path Tracer by Kevin Beason, 2008 #include // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt #include typedef struct Vec { // Usage: time ./explicit 16 && xv image.ppm double x, y, z; // position, also color (r,g,b) Vec(double x_=0, double y_=0, double z_=0){ x=x_; y=y_; z=z_; } Vec operator+(const Vec b } Vec operator-(const Vec b } Vec operator*(double b) const { return Vec(x*b,y*b,z*b); } Vec mult(const Vec b } Vec& norm(){ return *this = *this * (1/sqrt(x*x+y*y+z*z)); } double dot(const Vec b } // cross: Vec operator%(Vecb} } const cVec; struct Ray { Vec o, d; Ray(Vec o_, Vec d_) : o(o_), d(d_) {} }; enum Refl_t { DIFF, SPEC, REFR }; // material types, used in radiance() struct Sphere { double rad; // radius Vec p, e, c; // position, emission, color Refl_t refl; // reflection type (DIFFuse, SPECular, REFRactive) Sphere(double rad_, Vec p_, Vec e_, Vec c_, Refl_t refl_): rad(rad_), p(p_), e(e_), c(c_), refl(refl_) {} double intersect(const Ray r // Solve t^2*d.d + 2*t*(o-p).d + (o-p).(o-p)-R^2 = 0 double t, eps=1e-4, b=op.dot(r.d), det=b*b-op.dot(op)+rad*rad; if (det eps ? t : ((t=b+det)>eps ? t : 0); } }; Sphere spheres[] = {//Scene: radius, position, emission, color, material Sphere(1e5, Vec( 1e5+1,40.8,81.6), Vec(),Vec(.75,.25,.25),DIFF),//Left Sphere(1e5, Vec(-1e5+99,40.8,81.6),Vec(),Vec(.25,.25,.75),DIFF),//Rght Sphere(1e5, Vec(50,40.8, 1e5), Vec(),Vec(.75,.75,.75),DIFF),//Back Sphere(1e5, Vec(50,40.8,-1e5+170), Vec(),Vec(), DIFF),//Frnt Sphere(1e5, Vec(50, 1e5, 81.6), Vec(),Vec(.75,.75,.75),DIFF),//Botm Sphere(1e5, Vec(50,-1e5+81.6,81.6),Vec(),Vec(.75,.75,.75),DIFF),//Top Sphere(16.5,Vec(27,16.5,47), Vec(),Vec(1,1,1)*.999, SPEC),//Mirr Sphere(16.5,Vec(73,16.5,78), Vec(),Vec(1,1,1)*.999, REFR),//Glas" @default.
- W2288897662 created "2016-06-24" @default.
- W2288897662 creator A5014125476 @default.
- W2288897662 creator A5026357260 @default.
- W2288897662 date "2013-01-01" @default.
- W2288897662 modified "2023-09-27" @default.
- W2288897662 title "Supplemental Material: Path Space Regularization for Holistic and Robust Light Transport" @default.
- W2288897662 cites W1524712200 @default.
- W2288897662 cites W1994908596 @default.
- W2288897662 cites W2027979483 @default.
- W2288897662 cites W2056760934 @default.
- W2288897662 cites W2098077797 @default.
- W2288897662 cites W2114202040 @default.
- W2288897662 cites W2142380402 @default.
- W2288897662 cites W2326740504 @default.
- W2288897662 cites W647539267 @default.
- W2288897662 hasPublicationYear "2013" @default.
- W2288897662 type Work @default.
- W2288897662 sameAs 2288897662 @default.
- W2288897662 citedByCount "0" @default.
- W2288897662 crossrefType "journal-article" @default.
- W2288897662 hasAuthorship W2288897662A5014125476 @default.
- W2288897662 hasAuthorship W2288897662A5026357260 @default.
- W2288897662 hasConcept C104317684 @default.
- W2288897662 hasConcept C121332964 @default.
- W2288897662 hasConcept C158448853 @default.
- W2288897662 hasConcept C17020691 @default.
- W2288897662 hasConcept C178635117 @default.
- W2288897662 hasConcept C185592680 @default.
- W2288897662 hasConcept C37914503 @default.
- W2288897662 hasConcept C38652104 @default.
- W2288897662 hasConcept C41008148 @default.
- W2288897662 hasConcept C55493867 @default.
- W2288897662 hasConcept C71240020 @default.
- W2288897662 hasConcept C8010536 @default.
- W2288897662 hasConcept C86339819 @default.
- W2288897662 hasConceptScore W2288897662C104317684 @default.
- W2288897662 hasConceptScore W2288897662C121332964 @default.
- W2288897662 hasConceptScore W2288897662C158448853 @default.
- W2288897662 hasConceptScore W2288897662C17020691 @default.
- W2288897662 hasConceptScore W2288897662C178635117 @default.
- W2288897662 hasConceptScore W2288897662C185592680 @default.
- W2288897662 hasConceptScore W2288897662C37914503 @default.
- W2288897662 hasConceptScore W2288897662C38652104 @default.
- W2288897662 hasConceptScore W2288897662C41008148 @default.
- W2288897662 hasConceptScore W2288897662C55493867 @default.
- W2288897662 hasConceptScore W2288897662C71240020 @default.
- W2288897662 hasConceptScore W2288897662C8010536 @default.
- W2288897662 hasConceptScore W2288897662C86339819 @default.
- W2288897662 hasLocation W22888976621 @default.
- W2288897662 hasOpenAccess W2288897662 @default.
- W2288897662 hasPrimaryLocation W22888976621 @default.
- W2288897662 hasRelatedWork W2173484856 @default.
- W2288897662 hasRelatedWork W2334532620 @default.
- W2288897662 hasRelatedWork W2604981203 @default.
- W2288897662 hasRelatedWork W2742133296 @default.
- W2288897662 isParatext "false" @default.
- W2288897662 isRetracted "false" @default.
- W2288897662 magId "2288897662" @default.
- W2288897662 workType "article" @default.