News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

3D Rotation ?

Started by Newbie Basic, November 17, 2005, 05:00:50 PM

Previous topic - Next topic

Newbie Basic

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

(login required)

cheers

kevin

#1
  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.

kevin

#2