3d model on a button

I want to load a 3d model as an icon for a button

import direct.directbase.DirectStart
from direct.gui.DirectGui import *

button = DirectButton(text = "click me", text_scale = 0.1)

model = loader.loadModel('smiley')
model.reparentTo(button)
model.setScale(0.1)
model.setPos(-0.3,0,0)

run()

What is happening?

model.setDepthWrite(1)
model.setDepthTest(1)

Solved, thanks.

Hm, but the lens will be orthogonal for the models? Maybe I should add a task to reposition the model according to the button each frame in that case.