[Contest] Cubular 
	 
	
		Author 
		Message 
	 
		 
		Catalyst 
			
				 Posted:  Sun May 25, 2003 12:13 am 
	
				
				 
			 
			 
				 
			
				Ill give +50 bits  to the first person who can make a 3d spinning cube (ill give another +25 bits  to the person that can do it in <50 lines without stacking commands)
  
			
				 
		
 
	 
		
		 
	 
	  
		 
		 
		Sponsor Sponsor 
 
	 
	 
		 
				 
		Asok 
			
				 Posted:  Sun May 25, 2003 12:40 am 
	
				
				 
			 
			 
				 
			
				I'm sure one has allready been posted somewhere on the forum by you.  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Catalyst 
			
				 Posted:  Sun May 25, 2003 12:44 am 
	
				
				 
			 
			 
				 
			
				nope, not in source form  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Tony  
	 
		
		 
	 
	  
		 
				 
		Catalyst 
			
				 Posted:  Sun May 25, 2003 12:59 am 
	
				
				 
			 
			 
				 
			
				it has to have a perspective deformation
  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Homer_simpson 
			
				 Posted:  Sun May 25, 2003 11:43 am 
	
				
				 
			 
			 
				 
			
				i'm almost done and everything works so perfectly but one question... how do i caculate the origin of my cube to be rotated on ?  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Homer_simpson 
			
				 Posted:  Sun May 25, 2003 11:46 am 
	
				
				 
			 
			 
				 
			
				this is what it looks like so far...
 	  code:  		  procedure rotate (OriginX, OriginY : real, var secondpartX, secondpartY : real, Rotaion : real)
 
 
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		bugzpodder 
			
				 Posted:  Sun May 25, 2003 12:00 pm 
	
				
				 
			 
			 
				 
			
				Nice!
 	  code:  		   drawline (round (d1.x / d1.z), round (d1.y / d1.z), round (d2.x / d2.z), round (d2.y / d2.z), c) 
 
 
			
				 
		
 
	 
		
		 
	 
	  
		 
		 
		Sponsor Sponsor 
 
	 
	 
		 
				 
		Catalyst 
			
				 Posted:  Sun May 25, 2003 1:03 pm 
	
				
				 
			 
			 
				 
			
				still need to rotate on 2 more axes if u want the bits  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Homer_simpson 
			
				 Posted:  Sun May 25, 2003 1:12 pm 
	
				
				 
			 
			 
				 
			
				ya i know... 
Quote: 
using the formulas i showed you a while back? 
 
how do i caculate the origin of my cube to be rotated on ?   
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Catalyst 
			
				 Posted:  Sun May 25, 2003 1:21 pm 
	
				
				 
			 
			 
				 
			
				same way ud find the center of a 2d polygon  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Homer_simpson 
			
				 Posted:  Sun May 25, 2003 1:33 pm 
	
				
				 
			 
			 
				 
			
				how da hell do u do that?  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		JSBN 
			
				 Posted:  Sun May 25, 2003 1:42 pm 
	
				
				 
			 
			 
				 
			
				well... I loose at this contest.....  
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		Homer_simpson 
			
				 Posted:  Sun May 25, 2003 10:53 pm 
	
				
				 
			 
			 
				 
			
				whooooooohooooooooo!!!! 	  code:  		  const norm := 1000
 
controls are a,s,d,q,w,e   
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		JSBN 
			
				 Posted:  Sun May 25, 2003 10:56 pm 
	
				
				 
			 
			 
				 
			
				nice, very nice
+15 bits   
			
				 
		
 
	 
		
		 
	 
	  
		 
				 
		 
	Page 1  of 2    [ 28 Posts ]Goto page 1 , 2   Next