<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks again for your help!!<br>
<br>
What I did:<br>
- I downloaded and installed Pd-extended for Windows from here:
<a class="moz-txt-link-freetext" href="http://puredata.info/downloads/pd-extended">http://puredata.info/downloads/pd-extended</a> (v0.43.4, Windows
Installer)<br>
- I started pd with "pd-extended.bat" in pd folder<br>
- When I'm running pd all GEM details are displayed (version,...)
-> I guess GEM is loaded properly<br>
- I opened example patch 01.simple_texture.pd in folder
\extra\Gem\examples\10.glsl<br>
- I can load the images but when I want to load the shader these
error messages are displayed:<br>
[glsl_vertex]: error reading file<br>
[glsl_fragment]: error reading file<br>
- after replacing all CRLF by CR I receive different error messages,
as I described below!?<br>
I could load neither .vert nor .frag files! I will send them to you
in a seperate email.<br>
The files are existing and found by pd, otherwise I would receive a
different error message....<br>
<br>
Br, Michael<br>
<br>
<div class="moz-cite-prefix">-------- Original Message --------<br>
Subject: Re: [GEM-dev] Oculus Rift distortion/support<br>
From: Cyrille Henry <a class="moz-txt-link-rfc2396E" href="mailto:ch@chnry.net"><ch@chnry.net></a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:gem-dev@iem.at">gem-dev@iem.at</a><br>
Date: 11.09.2013 12:03<br>
</div>
<blockquote cite="mid:52303FFE.7070406@chnry.net" type="cite">
<br>
<br>
Le 11/09/2013 08:35, Michael Mihocic a écrit :
<br>
<blockquote type="cite">Dear list,
<br>
<br>
I tried to get familiar with shaders in GEM. I started with
"01.simple_texture.pd" in folder 10.glsl.
<br>
<br>
I can start rendering (checking "rendering") but I cannot load
shaders. After checking the rendering checkbox 2 errors occur:
<br>
[glsl_vertex]: need to load a shader
<br>
[glsl_fragment]: need to load a shader
<br>
<br>
When I try to use shaders (click on "load shader") I receive the
error message:
<br>
linking: link 1.5 3.5
<br>
[glsl_program]: Info_log:
<br>
[glsl_program]: Vertex info
<br>
-----------
<br>
(0) : error C5145: must write to gl_Position
<br>
[glsl_program]: Link failed!
<br>
<br>
These errors occur when I either try to open a ".vert" or a
".fraq" file! Do you have any ideas what I could try to use
different shaders??? Below I'm listing my system details:
<br>
<br>
</blockquote>
are you really sure you did not modifies oher things in the shader
code?
<br>
if so, could you send them to me so that i can check.
<br>
c
<br>
<br>
<br>
<blockquote type="cite">- pd: 0.43.4-extended
<br>
- GEM: 0.93.3
<br>
- System: Windows 7-64
<br>
- Folder contains no spaces:
"C:\pd-0.43.4\extra\Gem\examples\10.glsl"
<br>
- I replaced all CRLFs with CRs as I found in
<a class="moz-txt-link-freetext" href="https://sourceforge.net/p/pure-data/bugs/864/?page=2">https://sourceforge.net/p/pure-data/bugs/864/?page=2</a> (otherwise
I get the errors
<br>
[glsl_vertex]: error reading file
<br>
[glsl_fragment]: error reading file
<br>
- I also tried to run pd with Admin permissions
<br>
<br>
Thanks in advance!!
<br>
<br>
Br, Michael
<br>
<br>
<br>
-------- Original Message --------
<br>
Subject: Re: [GEM-dev] Oculus Rift distortion/support
<br>
From: Jack <a class="moz-txt-link-rfc2396E" href="mailto:jack@rybn.org"><jack@rybn.org></a>
<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:gem-dev@iem.at">gem-dev@iem.at</a>
<br>
Date: 25.07.2013 12:22
<br>
<blockquote type="cite">Hello,
<br>
<br>
Yep, and if oculus doesn't provide a shader for barrel
distortion, there
<br>
is plenty of example on the web.
<br>
++
<br>
<br>
Jack
<br>
<br>
<br>
<br>
Le 25/07/2013 12:17, Cyrille Henry a écrit :
<br>
<blockquote type="cite">hello,
<br>
<br>
one have to use shader in order create the image distortion.
<br>
<br>
i think oculus should provide standard shader that you have
to insert
<br>
in your rendering process.
<br>
<br>
the only problem is that you have to do 2 rendering : one
for each eye.
<br>
The best solution is to do a 3 pass rendering :
<br>
1st : left eye view without distortion, rendered in a frame
buffer
<br>
2nd : right eye view (no distortion / framebuffer)
<br>
3rd : using the 2 previous texture and a shader, render the
final image
<br>
<br>
cheers
<br>
c
<br>
<br>
<br>
Le 25/07/2013 12:04, Michael Mihocic a écrit :
<br>
<blockquote type="cite">Dear list,
<br>
<br>
we are using GEM with a head-mounted-display to present a
virtual
<br>
world to subjects performing acoustic localization
experiments.
<br>
<br>
Now we plan to switch from our current HMD to Oculus Rift
(an
<br>
upcoming virtual reality head-mounted display). Therefore
we need to
<br>
modify our image and add (asymetric) barrel distortion to
the
<br>
represented image. (The image distortion is compensated by
the lenses
<br>
in Oculus Rift.)
<br>
<br>
My questions now:
<br>
- Is there an easy solution to implement barrel distortion
to the
<br>
rendered window in GEM?
<br>
- Does anybody of you already have some experience with
GEM together
<br>
with Oculus Rift?
<br>
<br>
Since attachments should be avoided in this list, I do not
send any
<br>
example pictures of the distortion or our current
presented world. If
<br>
you are interested you can either contact me and I can
send you some
<br>
screenshots, or you can google for example images/videos
of Oculus
<br>
Rift distortion.
<br>
<br>
Thanks in advance and best regards, Michael
<br>
<br>
</blockquote>
_______________________________________________
<br>
GEM-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
GEM-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
<br>
</blockquote>
<br>
--
<br>
Michael Mihocic
<br>
Psychoacoustics & Experimental Audiology
<br>
Acoustics Research Institute <a class="moz-txt-link-rfc2396E" href="http://www.kfs.oeaw.ac.at/"><http://www.kfs.oeaw.ac.at/></a>
<br>
Austrian Academy Of Sciences <a class="moz-txt-link-rfc2396E" href="http://www.oeaw.ac.at/"><http://www.oeaw.ac.at/></a>
<br>
Wohllebengasse 12-14 / 1
<br>
A-1040 Vienna, Austria
<br>
Tel: +43 (1) 51581 2515 (Office)
<br>
Tel: +43 (1) 51581 2525 (Lab)
<br>
Fax: +43 (1) 51581 2530
<br>
<a class="moz-txt-link-abbreviated" href="mailto:michael.mihocic@oeaw.ac.at">michael.mihocic@oeaw.ac.at</a>
<a class="moz-txt-link-rfc2396E" href="mailto:michael.mihocic@oeaw.ac.at"><mailto:michael.mihocic@oeaw.ac.at></a>
<br>
<br>
<br>
_______________________________________________
<br>
GEM-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
GEM-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Michael Mihocic<br>
Psychoacoustics & Experimental Audiology<br>
<a href="http://www.kfs.oeaw.ac.at/">Acoustics Research Institute</a><br>
<a href="http://www.oeaw.ac.at/">Austrian Academy Of Sciences</a><br>
Wohllebengasse 12-14 / 1<br>
A-1040 Vienna, Austria<br>
Tel: +43 (1) 51581 2515 (Office)<br>
Tel: +43 (1) 51581 2525 (Lab)<br>
Fax: +43 (1) 51581 2530<br>
<a href="mailto:michael.mihocic@oeaw.ac.at">michael.mihocic@oeaw.ac.at</a><br>
</div>
</body>
</html>