entitytexture..

BlitzMax Modules Forums/MiniB3D/entitytexture..

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.

Seems like this should work yet it doesnt..

BaseModel = LoadAnimMesh("Base/"+Bs+".b3d")
				EntityFX(BaseModel,1)
				Roofpoint = FindChild(BaseModel,"roof")
				DoorPoint = FindChild(BaseModel,"door")
				X = 0
				Y = 0
				Z = 0
				ScaleX = 1
				ScaleY = 1
				ScaleZ = 1
     			PositionEntity BaseModel,X,Y,Z
				ScaleEntity BaseModel,ScaleX,ScaleY,ScaleZ
				texfile$ = RequestFile("Pick Base Texture","bmp,png,jpg")
				DebugLog texfile$
				BaseTex = LoadTexture(texfile$)
				EntityTexture BaseModel,Basetex,0,0



Could anyone shed some light on what im doing wrong? What happens is after I select the texture the mesh is still untextured.