Forum Discussion
romo
12 years agoHonored Guest
Canvas stereo / convergence
Hi all -
I'm playing around with canvas and trying to get some HUD elements to look right in the Rift. As a first cut, I'm just trying to get some text to appear and be legible in the middle of the screen. I must be missing something obvious in the Oculus UDK integration.
Using canvas.drawtext in my drawhud() function of myhud class, the text draws on both the left and right sides of the stereo image, but is not properly placed so that the sides can converge. Clearly the images need to be offset to create convergence, but since the OC/UDK is placing the stereo images automatically, I can't find a way to make the offset happen.
Has anyone gotten canvas.drawtext to be properly stereo-rendered? Any tips?
I also noticed that the Oculus debug HUD is also not converged - is it like that for everyone? Or maybe I tweaked a global setting somewhere else and mucked this up?
Thanks!
I'm playing around with canvas and trying to get some HUD elements to look right in the Rift. As a first cut, I'm just trying to get some text to appear and be legible in the middle of the screen. I must be missing something obvious in the Oculus UDK integration.
Using canvas.drawtext in my drawhud() function of myhud class, the text draws on both the left and right sides of the stereo image, but is not properly placed so that the sides can converge. Clearly the images need to be offset to create convergence, but since the OC/UDK is placing the stereo images automatically, I can't find a way to make the offset happen.
Has anyone gotten canvas.drawtext to be properly stereo-rendered? Any tips?
I also noticed that the Oculus debug HUD is also not converged - is it like that for everyone? Or maybe I tweaked a global setting somewhere else and mucked this up?
Thanks!
3 Replies
Replies have been turned off for this discussion
- romoHonored GuestIn case it is helpful here, I also noticed that changing the HUDoffset value in the defaultengineUDK config file has no effect on the position of the left and right sides of the HUD text. So it seems that either this value is getting reset somewhere, or it is not being applied to the drawtext call.
- romoHonored GuestUpdate here for anyone interested...I seem to be able to get the text to converge by setting the canvas depth (PosZ from canvas.setpos) to between 50 and 100 Unreal Units. The most comfortable distance might be somewhere outside this range, but I've got more testing to do.
- cyberealityGrand ChampionInteresting.
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
- 11 months ago
- 2 years ago
- 6 months ago