model not retaining texture

for some reason the model will not retain its texture when i import it, i used blender 3d 2.62 to create the model and used yabee to convert it to an .egg

this is the code from the hello world tutorial that i modified to create my own render.

from math import pi, sin, cos
from direct.showbase.ShowBase import ShowBase
from direct.task import Task
from import Actor
class MyApp(ShowBase):
    def __init__(self):
        # Load the environment model.
        self.environ = self.loader.loadModel("models/environment")
        # Reparent the model to render.
        # Apply scale and position transforms on the model.
        self.environ.setScale(0.25, 0.25, 0.25)
        self.environ.setPos(-8, 42, 0)
        # Add the spinCameraTask procedure to the task manager.
        self.taskMgr.add(self.spinCameraTask, "SpinCameraTask")
        self.borgcube = loader.loadModel("borgcube.egg")
        # Loop its animation.
    # Define a procedure to move the camera.
    def spinCameraTask(self, task):
        angleDegrees = task.time * 6.0
        angleRadians = angleDegrees * (pi / 180.0) * sin(angleRadians), -20.0 * cos(angleRadians), 3), 0, 0)
        return Task.cont
app = MyApp()

this is the part i added

self.borgcube = loader.loadModel("borgcube.egg")

which didn’t work, i even tried adding a texture to the model manually, the color of the model changed from white to grey

Did you apply your texture using UVs in the material settings?

I thought I had but I searched for a tutorial on UV mapping on blender and followed that and it worked. thanks for your help