entitytexture..

BlitzMax Modules Forums/MiniB3D/entitytexture..

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.

Sounds like your b3d model doesn't have UVW mapping coordinates. Did you try with another model? Does minib3d examples work? (the birds demo for example). And removing EntityFX doesn't help?

it has UVW coords and yes I tried another model and yes examples work.

could i get another person to test this out maybe im just doing something wrong.

If it actually loading the texture, have you looked at that? I have had BlitzMax sometimes not load textures so I just converted them to png and they seemed to work most of the time.

yeah it loads the texture and it seems to work on a little test project I made. It is something in my source thats stopping it I will have to hunt it down today I suppose.