63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			POVRay
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			POVRay
		
	
	
	
	
	
| /*
 | |
|  *	H E X A C O N E   -   C U T O F F
 | |
|  *   nouveau projet du Thu Dec  5 11:37:05 AM UTC 2024
 | |
|  */
 | |
| 
 | |
| #version 3.7;
 | |
| 
 | |
| #include  "globals.inc"
 | |
| 
 | |
| #include  "contexte.inc"
 | |
| #include  "hexacone.inc"
 | |
| #include  "hexabenz.inc"
 | |
| #include  "hexawood.inc"
 | |
| #include  "trident.inc"
 | |
| 
 | |
| #include  "dynamic.inc"
 | |
| 
 | |
| // =======================================================
 | |
| 
 | |
| #declare POS_Cutoff = <-24, 0, -7>;
 | |
| 
 | |
| #local TY = 1.55;
 | |
| 
 | |
| #declare Position = <0.50, -0.70, 0.75>;
 | |
| #declare Rayon = 0.70 + 1.50 * NormClock;	// rayon de la sphere
 | |
| 						// de découpe
 | |
| #debug concat("Rayon decoupe = ", str(Rayon, 8, 3), "\n\n")
 | |
| 
 | |
| difference {
 | |
| 	object { HexaBenz () }
 | |
| 	sphere { Position, Rayon }
 | |
| 	translate y*TY + POS_Cutoff
 | |
| 	} 
 | |
| 
 | |
| sphere { Position, 0.020 translate y*TY + POS_Cutoff
 | |
| 			texture { T_WIP_alert } }
 | |
| 
 | |
| /* this one is for debugging */
 | |
| object { OpenBox translate y*TY + POS_Cutoff  }
 | |
| // object { Repere  translate y*2.8 + POS_Cutoff }
 | |
| 
 | |
| // =======================================================
 | |
| light_source {
 | |
| 	<-24, 0.4, -1>
 | |
| 	colour Orange
 | |
| 	parallel
 | |
| 	point_at	y*TY + POS_Cutoff
 | |
| 	}
 | |
| 
 | |
| object { Le_Decor }
 | |
| 
 | |
| // =======================================================
 | |
| 
 | |
| #local CamX = -27.4  + (3.29*Cos_01(NormClock));
 | |
| #local CamY =   2.7  - (0.24*sqrt(NormClock));
 | |
| #local CamZ =  -0.85 + (2.02*NormClock);
 | |
| 
 | |
| camera	{
 | |
| 	location	<CamX, CamY, CamZ>
 | |
| 	look_at		<0, 1.5, 0> + POS_Cutoff
 | |
| 	angle		35 - 5*Cos_01(NormClock)
 | |
| 	}
 | 
