Forum Discussion
xhonzi
11 years agoHonored Guest
Draw 2D GUI Texture onto Quad Mesh?
viewtopic.php?f=41&t=7724 This is perhaps a repeat of my question in this other thread. I'm having trouble building a 2D texture (not material) to place on a plane or quad mesh. This is to draw s...
xhonzi
11 years agoHonored Guest
Alright.
I've got this almost working.
My biggest problem now is GUI.layer. I've got several different scripts making ONGUI calls writing to the same render.texture. since I was calling GL.clear before each one, only the top most layer ends up showing.
If I remove the GL.clear, then I get a "burn-in" effect since the old layers never go away (thought they get drawn on top of). But all of the layers appear!
So I need to call GL.clear once per frame- before all of the ONGUI calls. I thought making a script that makes a single GUIDraw call at GUI.layer 2000 (further out than all of my other GUI layers) and having it draw almost nothing- paired with a single GUI.clear after it would work... but so far no dice.
I've got this almost working.
My biggest problem now is GUI.layer. I've got several different scripts making ONGUI calls writing to the same render.texture. since I was calling GL.clear before each one, only the top most layer ends up showing.
If I remove the GL.clear, then I get a "burn-in" effect since the old layers never go away (thought they get drawn on top of). But all of the layers appear!
So I need to call GL.clear once per frame- before all of the ONGUI calls. I thought making a script that makes a single GUIDraw call at GUI.layer 2000 (further out than all of my other GUI layers) and having it draw almost nothing- paired with a single GUI.clear after it would work... but so far no dice.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 11 months ago
- 11 months ago
- 7 months ago