Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / SIRDs - Single Image Random Dot Stereogram DLL

Author
Message
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 15th Oct 2006 21:58 Edited at: 16th Oct 2006 04:50
G'day,

I've just been working on this in my spare-time and thought it might be a fun little DLL for people to use an extra feature in their games.


What is a SIRD?

A SIRD (Single Image Random Dot Stereogram) is a variation of one of those 'Magic Eye' things you've no-doubt seen a million times. (Here's an example)

As the name suggests, instead of (like the Magic Eye) having a regular pattern to its image, it uses Random Dots, which allows for the animation of the Stereogram.


What good is that?

Just for fun - I always like to look at things in a different way, and this is about as different as you can get!


Show me what you mean!

Ok...


And a bigger version...



Let me download it!

Click here (DLL + Source + Example)


Um...

Yep, there's a few issues with it.
The first, and most noticable one is the framerate. Unfortunatly, I can't do much about that, since I've optimized it to the best of my ability.

The second is that weird tearing effect as the cube turns to a 45degree angle. That one I also can't do much about since it's a flaw in the algorithm that I am using.
Nothing major, just when you're using it in your game, try to make sure nothing is at 45degree angles!


Thanks...

First and fore-most, the White-Paper I got all the information about SIRDs from The AbSIRD Project.

Next up, I'd like to thank Cloggy for releasing his D3DFunc DLL's source. Without it, I would have been stumped for some of the functionality.

Finally, I'd like to thank the guys at TGC and some of the moderators here on the forum for helping me out over the last month and a bit; Cheers!


That's all...

Enjoy, and have fun!

Jess.

Nintendo DS & Dominos :: DS Dominos
http://jt0.org

Attachments

Login to view attachments
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Oct 2006 22:17
I haven't tried it yet, but looking at your examples you should add support for using some simple image, as it took me a few attempts to fucus on it, and looking at a noise map is rather annoying , cool idea for a plugin though, not sure how well it will work in realtime.

Hallowed are the ori.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Oct 2006 03:42 Edited at: 16th Oct 2006 03:43
You can't, though.

If you try to use an image and to make the pattern, as it changes, your eyes drop out of focus almost instantly.

The only way to force your eyes to stay fixed onto the moving steriogram is to use a Random Dot one.

As an additional:
The example uses a 128x128 random dot image - As the help file explains:
Quote: "The Random Dot Image can have a size ranging from 1x1 to 256x256. Any size bigger than this will cause errors.
The size of this image determines the smoothness and quality of the resulting SIRD - A higher resolution means more 'layers' within the SIRD. However, this also means that they eyes have to be bent further out of focus to see the image. A good medium is 128x128, although some people may still have trouble focusing on this aswell.

The Maximum depth (specified in world units) also helps control quality.
By specifying a depth that is a long way into the screen, more has to be rendered into the SIRD, which means to be able to see the difference between objects that are very far and objects very near, you have to re-focus your eyes too much and the illusion is lost.
Generally, this should be kept relatively low, meaning that objects which would be about 5 meters away should be just visible"


It's very customizable

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 16th Oct 2006 13:18 Edited at: 16th Oct 2006 13:23
What I meant by image was like the image your example http://www.whooya.net/images/me_saturn.jpg if you could feed a small image into your plugin and use that for the output then it would look better imo.

[edit] and I tested your example code and its fairly strange, especially in realtime, and its hard to actually recognise it's a cube.

Hallowed are the ori.
Barnski
18
Years of Service
User Offline
Joined: 26th Jan 2006
Location: Switzerland, Zurich
Posted: 16th Oct 2006 13:22
This is very nice! indeed, just some weeks ago I looked for something like that.

In the picture you posted I think there is something wrong. If you focus on the left edge of the cube, you can see repeated edges on the left side of the picture..!

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Oct 2006 15:47
Dark Coder,

So you mean, instead of the img.png image I use in the example, use a different one, or, instead of rendering the 3D world into a SIRD, you pass it a height-map (grey-scale image) which is then rendered into the SIRD?

If you mean the second, then there's not much point, since there's a million and one applications out there already that can do it for you, which would provide better speed in your application because it is pre-rendered.


Barnski,
Cheers!
I hadn't noticed the repeated patterns myself... Now that you mention it, though, I can definatly see them. How very odd.
I'll have to look over the algorithm and make sure everything's correct.

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 17th Oct 2006 14:05
Cube ?

I see dots no matter how I look (or don't look) at it...
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 17th Oct 2006 14:59
No I meant the first one, and yeah I'm too stupid and didn't see the image , looks pretty cool, other than the trailing edge barnski mentioned.

Hallowed are the ori.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 18th Oct 2006 06:48
Ian,

Download the example, and before you run it, resize the random dot image to be about 64x64 (or something smaller than what it is currently).

It's very hard for a large number of people to see the images, so it'll take a bit of trial and error before you can see it

Dark,
No worries

Jess.

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 30th Dec 2006 14:17
I have set up a project page for this DLL if anyone is interested:

SIRDs

Enjoy!

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 30th Dec 2006 18:03
ah, nice


Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 30th Dec 2006 21:49
I would really like this--- if my eyes were capable of seeing them

SirFire
19
Years of Service
User Offline
Joined: 4th Apr 2005
Location: North America
Posted: 23rd Jan 2007 13:08
I must say I was very impressed with this plugin, even though the framerate is low, it is stunning to see moving 3D models in actual 3D!

It takes a little while for your mind to adjust to viewing things in this manner, initially it's difficult to stay focused on the scene when you move your eyes, but after a couple minutes, you adjust to this new way of seeing the screen and can look all around without losing focus.

I did have one minor problem at first, d3dx9_30.dll could not be found, but after a brief web search and dropping the file into the project directory, everything was fine. This is one of those DirectX9.0c files that keeps getting renamed with every new 9.0c update. (how many 9.0c's is that now?)

Very cool

Login to post a reply

Server time is: 2024-11-23 09:39:31
Your offset time is: 2024-11-23 09:39:31