entitytexture..

BlitzMax Forums/MiniB3D Module/entitytexture..

ckob(Posted 2007) [#1]
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.


LAB[au](Posted 2007) [#2]
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?


ckob(Posted 2007) [#3]
it has UVW coords and yes I tried another model and yes examples work.


ckob(Posted 2007) [#4]
could i get another person to test this out maybe im just doing something wrong.


*(Posted 2007) [#5]
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.


ckob(Posted 2007) [#6]
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.