I hope this is the right forum for this… as it is sort of a ‘test’ and ‘experiment’. It’s also hopefully going to give me an okay grade in college too.
While I’m still having trouble, for a recent project in computer graphics I had to make a texture generator. The fellow was done in c++ and needed to also have one fancy addon. I chose SIRDS (Single Image Random Dot Stereogram) which I guess departs from the strict definition since I use textures and tiling instead of truly random junk.
So far, it pretty much works, and I use blender for generating the disparity maps. I’ve mostly just had trouble getting the nodes system to generate depth maps appropriately. Oh well. I think if I had more help I might be able to get it to work. All I want is a gray-scale representation of distance, where black is the furthest distance and white is closest. Sadly, I haven’t been able to do that, though I think it just is going to take some tweaking of the ‘max’ and ‘min’ math function nodes. We’ll see.
Anyways, I’ve attached results so far (the first is the disparity mapping I used from blender and the second is the disparity). I made a gif animation, but it’s 9 meg. Sheesh.
I can provide the C++ code if anyone wants it. My license is the following:
Don’t be a jerk
That’s it. Do that, and you can do whatever you like with the code. Of course, I’m usually a total jerk, but since I made the license, you can’t point fingers. Hah.
I’m just kidding. Just don’t be too much of a punk. That’s the real license.
Also, I use libPicio for the project, and I hate it. PLEASE! if anyone has any better ideas, let me know. And if enough people like this, I could provide blender with some sort of python plugin or something that renders SIRDS or uses base textures to render them. Either way, the code is very basic.
The source texture comes from boring3d, by the way. For those with the sharp eyes, that guy’s grass is unmistakable. I’m sure maybe one person here will notice that as soon as I mention it.
I wish I could post the blend file so someone could tell me what I’m doing wrong with the nodes.