Given a U and V value, transform that to 3D coordinates

Blitz3D Forums/Blitz3D Programming/Given a U and V value, transform that to 3D coordinates

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

Yeah the Max3Vect was an oldy function which didn't check for = cases or NAN etc, so I decided to check it another way, but that code should ok

Function Max3Vect(a#,b#,c#)
	If a<0 Then a=-a
	If b<0 Then b=-b
	If c<0 Then c=-c
	If a>b And a>c Then Return 1
	If b>a And b>c Then Return 2
	If c>a And c>b Then Return 3
	If a=b Then a=a+0.00001
	If b=c Then b=b+0.00002
	If c=a Then c=c+0.00003
	Return Max3Vect(a,b,c);eww
End Function


If some of the pixels are not getting lit then its probably the dot check on the point in triangle test.