- Home /
colorcode3d stereoscopic
Hi,
we're investigating the possibility of using http://colorcode3d.com with unity. I'm in contact with their tech support, but things are over my head so I'm hoping someone can help me with a few points:
The colorcode dll requires that I assign left/right images to specific texture slots. Is this possible from within unity?
Rendering output is to whatever rendering target is active on the current device. Would this be the active rendertexture?
Witepaper with code example of implementation - maybe someone understands this :-) http://www.colorcode3d.com/Vault/PDF/SDK%20Whitepaper.pdf
Thanks, Patrik
Answer by spinaljack · Jun 09, 2010 at 02:09 PM
This question has come up before and I think the consensus is that it's possible you might be able to do it with render to texture with some kind of overlay processing i.e. not possible in free unity.
I'm assuming you mean anaglyph 3D (or similar system), there is another solution which can be done in free unity with just 2 cameras rendering to 2 sides of the screen and then using special lens glasses to combine the 2 pictures, this also means it can be in full colour but it doesn't allow much in the way of viewing angle.
Elements on iPad uses such a technique:
http://boingboing.net/2010/04/03/3d-glasses-for-the-e.html
They sell the glasses for $4.95
Shader program docs:
http://unity3d.com/support/documentation/Components/SL-ShaderPrograms.html
Using plugins (stand alone only):
http://unity3d.com/support/documentation/Manual/Plugins.html
Link to a thread about importing a DLL:
http://forum.unity3d.com/viewtopic.php?p=125698&sid=636b478a59b34f2517629bd50916ee78
Thanks. Standard Anaglyph stuff is possible, I have that working. Colorcode3d is a proprietary solution where you need to speak to their sdk (dll). So the question is not if it can be done in general but specifically with colorcode3d - which requires some low-level access to texture slots.
You can write your own custom shaders and call external files and dlls in Unity which I think is a pro feature. There's certainly nothing built in for 3D effects
Talking to the dll is not a problem. Issue is that the dll gets the right and left textures for the 3d effect from predeter$$anonymous$$ed texture slots 0 and 1. To my knowledge i cannot assign textures to specific texture slots, so I guess that is what i need confirmation on. The whitepaper has a c++ example of how to talk to the dll, but I'm not proficient enough in c++ / gpu stuff to know how that translates to unity. Any further info is greatly appreciated - Thanks.
Your answer
Follow this Question
Related Questions
OpenGL Context from Plugin 1 Answer
Native Rendering Plugin with Oculus Rift 0 Answers
Native rendering plugin OpenGL device type not being set. 2 Answers
Web browser component 0 Answers