3d Stereoscopy anaglyph-izer Unity 3 and Unity 2.6

Hi Guys

following the “hype” around the “old-new” 3D anaglyph technology, we started working on that way…

We took the script posted by aNTeNNa trEE of the Unity Demo Team.
We added the modification posted by Monark implementing the projection matrix method, to simplify vision for the eyes.
Monark also posted a modified shader from the original one, which we included by default.
Then, we cooked all our modifications:

  • created 3 external shaders for the three anaglyph modes (Red/Cyan, Red/Blue, Red/Green) (latest 2 still need tweaks)
  • automatic linking of the shader to the camera
  • added automatic support for GUITexture and GUIText
  • converted the original JS script into C#
  • shader written in two different ways to be compatible with Unity 3 and Unity 2.x shaders.

And we finally decided to release it under GPL for everyone to enjoy. Simply to import as a package, and simply to attach to camera through Components > Anaglyphizer menu

We are sure this could be useful for all the “non-coders” around :slight_smile:

You can find the full post in our blog:

http://blog.esimplestudios.com/2010/09/unity3d-anaglyph-construction-kit/

And if you don’t care about all this bla bla bla?

FINE, HERE YOU GO:

GitHub - EsimpleStudios/Unity3D-Anaglyph-izer: Make your Unity3D project compatible with anaglyph red/blue 3D glasses! <<– GET IT HEREE!!!

is the red/blue working in this new script or not?

[/code]

This is really great and easy to use. I think this kind of thing is really starting to catch on.

While this looks good for 3D scenes, it doesn’t really work for 2D based games. I don’t really understand much about this type of technology, but would it be possible to accomplish something like this?

i works on my editor but not when i build the game, it all becomes yellow when i run on it on my macboo and also on bootcamp … any reason why?

i ran it now on 5 computers and it works in the editor but when is compiled we get a yellow screen, nothing visuable…

From who does this work when it build to a windows or mac project?
it works in the editor. (but if you set the editor to free aspect doesn’t work)

Now, i went back to download it: GitHub - EsimpleStudios/Unity3D-Anaglyph-izer: Make your Unity3D project compatible with anaglyph red/blue 3D glasses!
And now the package give the errors: couldn’t decompress package.

i don’t have much faith in this.

bug fixed in the 1.1 version

Strange behavior try to redownload the pack or download the source code if you continue to have this problems.

Thanks

Francesco

when you download the new file and import the package in unity the error comes up the package can’t be uncompressed.

c

At the moment we working at 1.2 version with fully customizable shader with the parameter suggest by Jacob Williams

Bye

Ring

does the 1.1 work when the project is build?

Is 1.1 now available for download?

392142--13465--$screen_shot_2010_09_23_at_103839_am_222.png

Yes actually the version is 1.1

http://github.com/EsimpleStudios/Unity3D-Anaglyph-izer

Ring

see my post here above.

we try to download it on several computers and tried to import in unity on several computer, it simple doesn’t import asset in unity.

could you maybe zip up the file and pm me the file?

Just downloaded the new version, and it seems to work fine for me.

@lesfundi - Give this package a try and see if it imports correctly. (Right-Click Link, Save As).

this downloads, however in the unity is now a red screen instead of yellow and code errors are popping up.
And → ONLY FOR 2.6.1: replace the shaders in the package with the ones included in the source/Shaders/2.6.1 folder
→ thad folder is not the package included.

Does somebody has this working on 2.6.1?

392286--13473--$screen_shot_2010_09_23_at_15540_pm_174.png

now i used unity version 3 but same problem :frowning:
When i import the package it give the error: decompression problem :frowning:
see attachment

UPDATE

Released the 1.2 version of the package, same URL you can find up there.

WHAT’S NEW (1.2)

  • there’s no need anymore to link the various shaders
  • included a single parametric shader
  • it’s now possible to create an infinite number of materials adjustable with parameters (see below) included configurations for Magenta/Green and Red/Blue modes
  • added a “Use Projection Matrix” flag to optimize the focal distance based on the camera’s Field of View

Huge change in 1.2!

So what’s this big change we talked about?
Practically, we introduced one parametric shaders which allows you to create any kind of material optimized for any kind of anaglyph matrix, like you can see here.

Here are the matrixes for the main anaglyph modes.

True Anaglyphs

Dark image
No color reproduction
Little ghosting

Gray Anaglyphs

No color reproduction
More ghosting than true anaglyphs

Half Color Anaglyphs

Partial color reproduction (but not as good as color anaglyphs)
Less retinal rivalry than color anaglyphs

Optimized Anaglyphs

Partial color reproduction (but not of red shades)
Almost no retinal rivalry

Matrix settings

Balance Left Red = (r, g, b, not_used)
Balance Left Green = (r, g, b, not_used)
Balance Left Blue = (r, g, b, not_used)

Balance Right Red = (r, g, b, not_used)
Balance Right Green = (r, g, b, not_used)
Balance Right Blue = (r, g, b, not_used)

For example, if we want to obtain the Optimized Anaglyph material we have to setup the matrix like this:

Balance Left Red (0.0, 0.7, 0.3, any)
Balance Left Green (0.0, 0.0, 0.0, any)
Balance Left Blue (0.0, 0.0, 0.0, any)

Balance Right Red (0.0, 0.0, 0.0, any)
Balance Right Green (0.0, 1.0, 0.0, any)
Balance Right Blue (0.0, 0.0, 1.0, any)

According to the diagram shown up there.

You find more Information at

http://blog.esimplestudios.com/unity3d-anaglyph-construction-kit/

Or the direct repository links

http://github.com/EsimpleStudios/Unity3D-Anaglyph-izer

i downloaded the new unitypackage but again, it does not import in unity :frowning:
Same errors pop up :frowning:

Than i loaded each file by itself and when i bring them in unity all errors come on screen of the .js and c# file.

So, again a dissapointment

hi try to import the package in a new empty project, if this doesn’t work give me your email and i send you directly a package.

Bye

Ring

i tried it again in a empty project: it does not work.
It is also better to zip the package.

i will pm you with my email

i installed the latest update and it also not working to import in unity 3.03 :frowning:

  1. why would this not work? you should put up a zipped version on the website, download yourself and test if it work to import in unity. Not one computer I have can import it :frowning:

can somebody pm me the downloaded package and confirm they have it working on unity 3?

Why would it not work in my unity? I am o OS Mac.