If your goal is to have an avatar view in the corner, just apply the texture you are rendering to as an ordinary texture to a polygon you attach to aspect2d.
No need to make an external bitmap image in this case. For your purposes, a texture is a bitmap.
Though as far as that goes, if you’re just applying the texture to a square polygon, you don’t even need to use render-to-texture. Instead of going through all this trouble, you can just create a DisplayRegion that corresponds to the little square in the corner for your avatar view, and render directly to that DisplayRegion.
sorry , i want to create avatar view like this. it 's a character status
i read answer by drwr and have some question.
i want create a DisplayRegion and render face of player into avatar frame
now , i try it . i made new scene and showed it by some code
base.bufferViewer.toggleEnable()
please , give me some code about create and render to DisplayRegion and i will apply it
Now c2 is a new camera that renders into the lower-left corner of your screen. You can point c2 wherever you like. Depending on the nature of your avatar-view, you might want to clear the rectangle it is drawing into: