LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2014, 10:57 PM   #1
greengiant83
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
Question Oculus Rift VR Desktop Environment: Hello, World


I am contemplating building a desktop environment that works with head mounted displays like the Oculus Rift. I want to create something that can display existing programs as 2d planes in 3d space. I also want future programs to be able to provide true 3d content.

That being said, I am not sure exactly which layer of linux to try and replace, or even what all the layers are. It seems like the relevant terms include: Window Manager, X Window Server, Xlib.

What is the name of the component that I should replace?

This might be a gross oversimplification but lets say I started with Debian as the core (not its desktop environment, just the command line) what would I need to do to get a standard gui program like gedit to display and work with mouse and keyboard input? A "Hello, World" desktop if you will?

I reason that if I can get something like that going, that I should be able to move the resulting data to textures in OpenGL and render them where I want.

I am floundering trying to find the right questions to ask, so any clarity you can provide would be appreciated.
 
Old 08-27-2014, 01:08 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
this is a very ambitious project

I would suggest you start with learning something about 3d space and openGL
if you have done this already, than start writing your desktop

startx takes an application as parameter which will be executed, this can be your desktop, or just a xterm

so start in runlevel 3, and then startx mydesktop

you can test this with some other app, eg xterm

that's it, so no need to replace anything
 
Old 08-27-2014, 09:58 AM   #3
greengiant83
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
If I write a c++ app and start it using startx how do I start another app like gedit and display its graphic output on the screen?
 
Old 09-07-2016, 01:08 PM   #4
one_with_linux
LQ Newbie
 
Registered: Jul 2012
Location: Utah
Distribution: gentoo, ubuntu, mint, whatever is new
Posts: 8

Rep: Reputation: Disabled
You need to create a compositor.
You can find a simple version I created:
https://bitbucket.org/ruapotato/vrsuse.git

(all this does is display half the screen side by side)

This issue that needs solved is barrel distortion. Without applying barrel distortion to both sides the screen will have "pincushion distortion" on the screen.

This might be fixable with hardware (a convex mirror creates barrel distortion)

Anyway I would love to help with your project. I think VR + Linux is the next big step.
 
Old 09-07-2016, 02:35 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
heh.
reminds me of eaglemode:
http://eaglemode.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tesseract Open-Source Engine Handles GL3, Oculus Rift LXer Syndicated Linux News 0 12-26-2013 11:52 PM
LXer: Oculus Rift First Impressions and Official Linux Support LXer Syndicated Linux News 0 07-06-2013 06:31 PM
LXer: The MATE desktop brings back the power of a real desktop environment. LXer Syndicated Linux News 0 03-27-2012 07:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration