The Daily Click ::. Forums ::. Klik Coding Help ::. I need help making 3D anaglyph/stereoscopic sprites
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
10th September, 2008 at 17:21:31 -

Anyone know the process that I have to take in order to make convincing anaglyphs/stereoscopic sprites that I can use in MMF and edit at run time? I'm not entirely sure how to do it. I have experimented a few times but I still don't get it. Unfortunately there is not a lot of information on how to do this on the net.

In case you don't know what anaglyphs are here is a wiki to it http://en.wikipedia.org/wiki/Anaglyph_image

And to summarize it basically the 3D images that you can see with the red/cyan glasses.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
10th September, 2008 at 20:37:43 -

it tells you how in the wiki you posted lol

phoootooooshoooop.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
10th September, 2008 at 20:58:48 -

I tried this a long time ago. There are a number of programs that try to do this, but none of them ever worked for me. I think unless someone makes an extension that renders the playfield in red/blue stereoscopic real-time, (Like that'll ever happen.) you're going to have a difficulty. Having split sprites messes up collision detection, and there isn't quite an ink effect designed specifically for red/blue sprite overlapping.

 

  		
  		

JetpackLover



Registered
  01/03/2007
Points
  212
11th September, 2008 at 01:38:40 -


Originally Posted by cecil64
it tells you how in the wiki you posted lol

phoootooooshoooop.



It doesn't tell you how to do it in something that is real time, something that will/has to be moving.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
11th September, 2008 at 02:22:13 -

What exactly is the issue here? How much do you know? And what program are you using?

In MMF2, you can start out with a black background and have two versions of an object, one red and one blue, set to additive color mode (subtractive of a white background seems to work as well). Align these objects next to each other to create the red-blue 3D effect; the further apart they are with the blue on the left, the further out of the screen it will appear to protrude, whereas the further apart with the red on the left, the further into the screen it will appear to recede.

Then you just adjust the distance between these objects appropriately during runtime to give the illusion of active depth.

The big problem with this method, though, is that every object will be visible through every other object. To fix this you'd need to be able to render the two views independently of one another, and superimpose the entire view with an additive blending effect. And that's not something that MMF is really capable of.

The other problem is that you need two objects for every object, which can get difficult to control.

 
Go Moon!

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
11th September, 2008 at 02:29:16 -

no three. two for visuals and one that is invisible for collisions and movement.

and if you want every aspect to be editable at runtime, i doubt mmf is the best way to do it.
this is for the gamma 3d competition if im not mistaken right?

http://www.kokoromi.org/gamma3d

 
n/a

JetpackLover



Registered
  01/03/2007
Points
  212
11th September, 2008 at 02:46:58 -


Originally Posted by cecil64
no three. two for visuals and one that is invisible for collisions and movement.

and if you want every aspect to be editable at runtime, i doubt mmf is the best way to do it.
this is for the gamma 3d competition if im not mistaken right?

http://www.kokoromi.org/gamma3d

Yes yes it is

I'm starting to think it may not be appealing enough to do this using MMF and 2D art, the effect seems to be real low key. I even tried using pixel shaders from the HWA version of MMF and it's still like...a bit lame.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


JetpackLover



Registered
  01/03/2007
Points
  212
15th September, 2008 at 06:12:03 -

Its been many days since I last posted so I figured I would bump this because I am on a tight deadline.

Does anyone with vast knowledge of the HWA MMF version know if there is a proper way of messing with the red, blue, and green channels? I can make these 3D effects work perfectly in photoshop, but I can't do it in MMF. I just need to find the equivalent controls. Anyone know?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover

   

Post Reply



 



Advertisement

Worth A Click