Posted: 11th Oct 2002 22:01
Heres a quick program that demonstrates the different modes of blend mapping

+ Code Snippet
sync rate 90

make object cube 1,50
make object cube 2,50

load image "borg_lights.bmp",1
load image "borg_cube.bmp",2

texture object 1,2
texture object 2,2

make light 1
position light 1, 0,30,-100
color light 1,rgb(100,100,100)

position camera 0,30,-100
i=0

sx=screen width()-128

position object 1,45,0,0
position object 2,-45,0,0

do
   paste image 2,0,50
   paste image 1,sx,50

   set cursor 0,0
   print "(1) Set Blend Mapping On 1, 1, ";i

   turn object right 1,.01
   turn object right 2,.01

   if scancode()0
      if up=0
         inc i
         SET BLEND MAPPING ON 1, 1, i
         up=1
      endif
   else
      up=0
   endif
loop


heres a pic of it running



heres the source

http://www.deadly.clara.net/CubeSource.zip

and the .exe for thouse who can't compile DBPro projects yet

http://www.deadly.clara.net/CubeExe.zip

This little prog comes in usefull for selecting which Blend mode to use, hope It's as usefull to you as it is to me

NB. the image on the top left is the unmodified texture, the top right the unmodified blend

the Object bottom left is unmodified while on the bottom right the blend is applied
Posted: 13th Oct 2002 3:09
Hmm, the code snipet seems to have eaten some symbols

if scancode()0

should read

if scancode()=0
Posted: 15th Aug 2003 16:53
how many are there and what do they do?
Posted: 15th Aug 2003 18:57
Yay! Another Star Trek fan here I'll have a look.