first release of hexabenz
This commit is contained in:
		
							parent
							
								
									124c3bfd5c
								
							
						
					
					
						commit
						5b7ad96a29
					
				
							
								
								
									
										20
									
								
								contexte.inc
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								contexte.inc
									
									
									
									
									
								
							| @ -2,6 +2,7 @@ | ||||
|  *   nouveau projet Thu Dec  5 11:37:05 AM UTC 2024 | ||||
|  */ | ||||
| 
 | ||||
| /*   voir aussi le fichier 'globals.inc'   */ | ||||
| 
 | ||||
| /* ------------------------------------------------------------ */ | ||||
| 
 | ||||
| @ -33,14 +34,14 @@ union	{ | ||||
| 
 | ||||
| 	object	{ HexaBalls | ||||
| 		texture { Lightning2 scale 0.56 } | ||||
| 		// rotate <-clock, clock*0.62, clock>
 | ||||
| 		// rotate <-clock, clock*0.33333, clock>
 | ||||
| 		translate <5, -1+0.42*Cos_010(NormClock), -4> | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| /* ------------------------------------------------------------ */ | ||||
| #declare RHBlo  = 0.24;
 | ||||
| #declare RHBlo2 = RHBlo * 0.56;
 | ||||
| #declare RHBlo2 = RHBlo * 0.666;
 | ||||
| 
 | ||||
| #declare HexaBlob = object
 | ||||
| { | ||||
| @ -129,14 +130,17 @@ sky_sphere { | ||||
| 		gradient y | ||||
| 		color_map { | ||||
| 			[ 0.2  color Gray10	] | ||||
| 			[ 0.5  color Orange*0.7 ] | ||||
| 			[ 1.0  color Yellow*0.5 ] | ||||
| 			[ 0.4  color Gray60	] | ||||
| 			[ 0.7  color Black	] | ||||
| 			[ 0.8  color White	] | ||||
| 			[ 1.0  color Gray10	] | ||||
| 			} | ||||
| 		turbulence 2.87 + Cos_010(NormClock) | ||||
| 		scale 0.207 | ||||
| 		translate -1 | ||||
| 		turbulence 3.14159 + 0.91 * Cos_010(NormClock) | ||||
| 		scale 1.804 | ||||
| 		// translate -1
 | ||||
| 		} | ||||
| 	emission rgb <0.1, 0.1, 0.1> | ||||
| 	#local Kem = 0.15;
 | ||||
| 	emission rgb <Kem, Kem, Kem> | ||||
| 	} | ||||
| // }
 | ||||
| 
 | ||||
|  | ||||
| @ -1,10 +1,12 @@ | ||||
| 
 | ||||
| global_settings	{ | ||||
| 	assumed_gamma  1.0 | ||||
| 	ambient_light rgb <0.18, 0.14, 0.17> | ||||
| 	ambient_light rgb <0.17, 0.14, 0.17> | ||||
| 	max_trace_level 15 | ||||
| 	} | ||||
| 
 | ||||
| #declare Rng1 = seed(1337);
 | ||||
| #declare foo = rand(Rng1);
 | ||||
| #declare Rng2 = seed(now*24*60*60);
 | ||||
| #declare foo = rand(Rng2);
 | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										60
									
								
								hexabenz.inc
									
									
									
									
									
								
							
							
						
						
									
										60
									
								
								hexabenz.inc
									
									
									
									
									
								
							| @ -5,19 +5,19 @@ | ||||
| 
 | ||||
| #declare Benz_Cone_Base = object
 | ||||
| { | ||||
| #local RA = 0.125;
 | ||||
| #local RA = 0.123;
 | ||||
| #local RB = 0.001;
 | ||||
| union	{ | ||||
| 	cone { 0, RA, y, RB } | ||||
| 	// cylinder { 0, -0.08*y, RA*1.25 scale <1, 1, 4> }
 | ||||
| 	sphere { 0, RA*1.033 scale <1, 0.7, 6> translate -0.02*y } | ||||
| 	sphere { 0, RA*1.092 scale <1, 0.64, 6> translate -0.02*y } | ||||
| 	} | ||||
| } | ||||
| #declare Benz_Cones = object
 | ||||
| { | ||||
| union	{ | ||||
| 	#for (foo, 0, 360, 60)
 | ||||
| 	#local E = 0.47;
 | ||||
| 	#local E = 0.40;
 | ||||
| 	#local Tx = E * sin(radians(foo));
 | ||||
| 	#local Ty = E * cos(radians(foo));
 | ||||
| 	object { Benz_Cone_Base | ||||
| @ -31,21 +31,51 @@ union	{ | ||||
| 
 | ||||
| // ------------------------------------------------------
 | ||||
| 
 | ||||
| #local RT = 0.24;
 | ||||
| #local LT = 0.67;
 | ||||
| 
 | ||||
| #declare Benz_Tubules = object
 | ||||
| { | ||||
| union	{ | ||||
| 	#local E = 0.17;
 | ||||
| 	#local R = 0.010;
 | ||||
| 	#for (foo, 0, 360, 20)
 | ||||
| 	  #local Tx = E * sin(radians(foo));
 | ||||
| 	  #local Ty = E * cos(radians(foo));
 | ||||
| 	  #local Dz = z * 2.02;
 | ||||
| 	  cylinder { -Dz, Dz, R translate <Tx, Ty, 0> } | ||||
| 	  sphere { -Dz, R       translate <Tx, Ty, 0> } | ||||
| 	  sphere {  Dz, R       translate <Tx, Ty, 0> } | ||||
| 	#end
 | ||||
| 	} | ||||
| texture { Yellow_Glass } | ||||
| } | ||||
| 
 | ||||
| #declare Benz_Fuseau = object
 | ||||
| { | ||||
| sphere { 0, RT*0.39 scale <1, 1, 9> } | ||||
| texture { Gold_Nugget scale 0.56 } | ||||
| } | ||||
| 
 | ||||
| #declare Benz_Cylindre = object
 | ||||
| { | ||||
| difference	{ | ||||
| 	union { | ||||
| 		cylinder { z*LT*2.08, -z*LT,  RT } | ||||
| 		sphere { z*LT*1.7, RT*0.72 translate y*RT*0.87} | ||||
| 		} | ||||
| 	cylinder { z*4,      -z*4,   RT*0.95 } | ||||
| 	} | ||||
| texture { Soft_Silver scale 6.0 } | ||||
| } | ||||
| 
 | ||||
| #declare Benz_Tube = object
 | ||||
| { | ||||
| union	{ | ||||
| 	difference { | ||||
| 		#local RT = 0.30;
 | ||||
| 		#local LT = 0.67;
 | ||||
| 		cylinder { -z*LT, z*LT, RT } | ||||
| 		cylinder { -z*2, z*2, RT*0.96 } | ||||
| 		} | ||||
| 	sphere { 0, RT*0.39 scale <1, 1, 9> } | ||||
| 	#for (foo, 0, 360, 20)
 | ||||
| 	  cylinder { -z, z, 0.06 } | ||||
| 	#end
 | ||||
| 	object { Benz_Tubules } | ||||
| 	object { Benz_Fuseau } | ||||
| 	object { Benz_Cylindre } | ||||
| 	} | ||||
| texture { Gold_Nugget scale 0.56 } | ||||
| } | ||||
| 
 | ||||
| // ------------------------------------------------------
 | ||||
| @ -53,7 +83,7 @@ texture { Gold_Nugget scale 0.56 } | ||||
| #declare HexaBenz = object
 | ||||
| { | ||||
| union	{ | ||||
| 	object { Benz_Cones } | ||||
| 	object { Benz_Cones rotate z*NormClock*99.999} | ||||
| 	object { Benz_Tube } | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @ -15,14 +15,14 @@ | ||||
| #include  "elements.inc" | ||||
| #include  "hexabenz.inc" | ||||
| 
 | ||||
| object { HexaBenz rotate (clock*0.46)*z } | ||||
| object { HexaBenz } | ||||
| 
 | ||||
| // ======================================================= | ||||
| 
 | ||||
| light_source { <19, 7,   14>, rgb <0.77, 0.79, 0.80> } | ||||
| light_source { <19, 7,  -14>, rgb <0.77, 0.79, 0.80> } | ||||
| 
 | ||||
| // object { Repere } | ||||
| // object { Repere scale 2 } | ||||
| 
 | ||||
| camera	{ | ||||
| 	location	<-1.9+(5*NormClock), 0.50, 6.59> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tonton Th
						Tonton Th