UnderwareDESIGN

PlayBASIC => 3D Development => Topic started by: Newbie Basic on November 17, 2005, 05:00:50 PM

Title: 3D Rotation ?
Post by: Newbie Basic on November 17, 2005, 05:00:50 PM
hi all,

I want to know how small code doing 2D Image spin around in 3D Ratation ?

this is perfect example on what I mean

click blow

[plink]http://www.flashtro.com/page.php?id=338 (http://www.flashtro.com/page.php?id=338)[/plink]

cheers
Title: 3D Rotation ?
Post by: kevin on November 18, 2005, 08:04:52 AM
  It'd  help if you posted an example on a site where users didn't have to join up in order to see it.

 PlayBASIC is primarily 2D language.   While it does support texture mapping, it only supports 'linear' texture mapping.  This means that if your project some points perspectively and render them with PB texture triangle command, you'll get the classic sliding image distortion.  

  While you could minimize the effect of perspective  by subdividing the faces,  that's a fair amount of work considering it's still not going to give you a 'solid' perspective mapped image.

 Although, If your just after the basic math, there's cube rotation example in your PlayBASIC Projects/Demos folder.
Title: 3D Rotation ?
Post by: kevin on November 18, 2005, 10:53:09 PM

See-> 3D Development Board (http://www.underwaredesign.com/forums/index.php?board=33.0)

See -> Linear Texture Mapping  (http://www.underwaredesign.com/forums/index.php?topic=893.0)