![]() Preserved Topic: Can someone help me Create a 3D/2D movement Function? (Page 1 of 1)  | 
  |
|---|---|
| 
       Obsessive-Compulsive (I) Inmate From: Preston, Lancashire, England  | 
    
       
  posted 01-27-2002 03:35
      
      I've had no problems moving layers in a circular motion around the Z axis, it's a very simple equation and obviously X and Y isn't a problem because I can just ignore trigonometry entirely and just use .left and .top but what I want to do is make a function that accepts X,Y and Z co-ordinates and a field of view angle then converts the 4 variables into simple X and Y values I can use to move a layer around the screen. I know there's other things to think of like re ordering the z-index stacking of the layers according to the distance from 0 on the Z axis but generally speaking I've been totally stumped with this. If anyone knows how it's done their help would be REALLY appretiated.  | 
  
| 
       Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden  | 
    
       
  posted 01-27-2002 12:21
      
      I know Slime has done a brilliant example of this here -> http://www.slimeland.com/starcube/  <- I've never spent any time de-constructing it, (I try not to ever do that unless I'm *really* stumped! :-) but it would be worth looking into, methinks. I believe Slime is replacing the images with bigger or smaller versions depending on the z-index instead of transforming one existing image, but can't guarantee.  | 
  
| 
       Lunatic (VI) Mad Scientist From: Massachusetts, USA  | 
    
       
  posted 01-27-2002 19:24
      
      The explanation/proof is a bit more complicated and interesting, but what it all comes down to is this:  | 
  
| 
       Paranoid (IV) Inmate From: Lebanon  | 
    
       
  posted 01-27-2002 20:38
      
      slime, I just checked your page and I really like it!! good work!  | 
  
| 
       Obsessive-Compulsive (I) Inmate From: Preston, Lancashire, England  | 
    
       
  posted 01-28-2002 00:41
      
      Thanks for the advice :-)  | 
  
| 
       Maniac (V) Mad Scientist From: 100101010011 <-- right about here  | 
    
       
  posted 01-28-2002 18:36
      
      This would probably take tons of reverse engineering but it absolutely amazing  | 
  
| 
       Paranoid (IV) Mad Scientist From: Somewhere over the rainbow  | 
    
       
  posted 01-29-2002 10:04
      
      The poster has demanded we remove all his contributions, less he takes legal action.  | 
  
| 
       Lunatic (VI) Mad Scientist From: Massachusetts, USA  | 
    
       
  posted 01-30-2002 07:42
      
      InI, I think most browsers either buffer the entire screen before drawing, or, if not, they're not well written enough to use a containing Div as a buffer.  | 
  
| 
       Paranoid (IV) Mad Scientist From: Somewhere over the rainbow  | 
    
       
  posted 01-30-2002 08:38
      
      The poster has demanded we remove all his contributions, less he takes legal action.  | 
  
| 
       Lunatic (VI) Mad Scientist From: Massachusetts, USA  | 
    
       
  posted 01-30-2002 15:48
      
      Oh, I believe that a double buffer is faster. I was merely suspicious that browser makers were smart enough to let a Div behave as one. =) I'll take your word for it though.  | 
  
| 
       Bipolar (III) Inmate From:   | 
    
       
  posted 01-31-2002 07:06
      
      Hey bitdamaged, I have seen that site. That is where I got the idea for this demo.  |