I finally got the image to work, but now I’m in trouble with the text!
self.frame = OnscreenImage(image="data/models/etc/speechbubble.png",scale=2)
self.frame.reparentTo(np)
self.frame.setBillboardAxis()
p = speaker.getPos(np)
p.setZ(p.getZ()+3.2)
self.frame.setPos(p)
self.frame.setSz(1.5)
self.frame.setSx(2)
self.frame.setTexture(loader.loadTexture("data/models/etc/speechbubble.png"),1)
self.text = OnscreenText(text=speech,scale=.25,fg=Vec4(0, 0, 0, 1),align=TextNode.ALeft,pos=Vec3(-.9,.7,7),decal=True,parent=self.frame,wordwrap=4*1.75)
self.text.setTextureOff()
But the text seems to “fight” the image!! Look the effect:
Very similar to what happened here: Nametag wierd effect
But this time I AM passing decal=True to the constructor.