Hello, I'm trying to use Cloggy's D3D plugin to create 3d text. However whenever I try to texture them, I end up with an untextured object.
I've tried converting the FVF format but that didn't change anything either.
Here's the code I'm using, does anyone have any ideas?? I just want to show a texture on the 3d text! lol
D3D_Font 1, "Arial", 15, 0, 0, 0
Obj = Make3DText( "3D Text", 1200.0, 1, 1)
Img = LoadImage( ".\Resources\Images\PavementDiffuse.png", 0 )
Texture Object Obj, Img
Do
Position Camera 30.0 * Sin( Timer() * 0.05 ), 1.0, 30.0 * Cos( Timer() * 0.05 ) : Point Camera 0.0, 0.0, 0.0
Sync
Loop
End
Function Make3DText( Text$, Scale#, Quality, Alignment )
Obj = GetBlankObjNo()
D3D_Make_3DText Obj, 1, Text$, 0.5, Quality, Alignment
MyFVF As Dword : MyFVF = 338
Convert Object FVF Obj, MyFVF
Set Object Light Obj, 1
Scale Object Obj, Scale#, Scale#, Scale#
Set Object Normals Obj
Fade Object Obj, CapValue#( Scale#, 0.0, 600.0 )
EndFunction Obj
My signature is NOT a moderator plaything! Stop changing it!
