Jump to content


Photo

3d Anaglyph Engine


  • Please log in to reply
10 replies to this topic

#1 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 06 January 2010 - 09:10 AM

3D Anaglyph Engine

Here is a very simple to use gex extension that allows your to add an anaglyphic option to your 3D games.
I will be making a gex for 2D games, but for now you should use the mergable gmk version of this engine which can be found here.

Features:
-Works with any camera orientation.
-Can be customised for different coloured glasses, eye seperation, ect...
-Simple to implement into existing projects.

How do I use it?
Download the .zip file, extract it, then follow the instructions in the "How to use.txt" file. The whole process should take only 5-10 minutes.

Functions?
These are the functions:
Init_anaglyph() - Initialises the engine.
d3d_set_projection_ana() - sets the projection
anaglyph_options() - changes the options (must be used right after init_anaglyph())
set_anaglyph_enabled() - enables/disables anaglyph mode.

Coming in next version?
A 2D version to easily create 2D anaglyphic games aswell.

Bugs:
None found yet.

Please post any of your suggestions/bugs.

Download: anaglyphEngineGex.zip

-Alex


Edited by Rafferty97, 06 January 2010 - 11:51 AM.

  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#2 brac37

brac37

    GMC Member

  • GMC Member
  • 808 posts
  • Version:GM7

Posted 10 January 2010 - 12:45 AM

An error occurs when installing the second extension package surface_fix.gex. Possibly incompatible with gm7.
  • 0

#3 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 10 January 2010 - 01:04 AM

thats strange. It works fine for me, and I think it was made for gm7. You should inform the creater of the gex, amd42.
  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#4 brac37

brac37

    GMC Member

  • GMC Member
  • 808 posts
  • Version:GM7

Posted 10 January 2010 - 02:53 PM

I got it installed with administrator rights. Vista runs applications without administrator rights for safety (User Access Control). However, I cannot see 3D in the example. It seems that the red and cyan image match at infinity, but they should be 7 centimeters apart, since that is the mean distance between the left and the right eye. The images should match where they tough the screen. Look at my examples http://host-a.net/br...ps6anaglyph.gm6 and http://host-a.net/brac37/maze.gm6.

Edited by brac37, 10 January 2010 - 04:16 PM.

  • 0

#5 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 10 January 2010 - 03:58 PM

The depth doesnt seem enough, I think you should emphasize the depth illusion but preading the two views apart more, also, I think the colours are the wrong way round for my glasses (I have plastic ones)
  • 0

#6 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 16 January 2010 - 05:48 PM

The zip is corrupt
  • 0

#7 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 27 February 2010 - 07:05 AM

Wow! My engine has almost 400 downloads. I'm glad people are finding it useful. Please comment and I might update it! :D
  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#8 Ciberman

Ciberman

    GMC Member

  • New Member
  • 8 posts

Posted 26 April 2011 - 12:18 AM

Hello
first, I speak spanish
ok, I have a problem with 3D Anaglyph Engine
I want know the arguments and details of the anaglyph_options() function
This is for a school's homework
Thank you
  • 0

#9 jobro

jobro

    GMC Member

  • GMC Member
  • 1300 posts
  • Version:GM:Studio

Posted 18 May 2011 - 08:33 AM

What the heck is an Anaglyph? Just wondering.
  • 0

Marketplace.png


#10 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 396 posts
  • Version:GM8

Posted 22 July 2011 - 02:22 PM

http://lmgtfy.com/?q=Anaglyph
  • 0

#11 BenSeawalker

BenSeawalker

    GMC Member

  • GMC Member
  • 16 posts
  • Version:GM8

Posted 28 November 2012 - 09:17 PM

It worked fine on the demo, but when I tried to use it in my game I get "Trying to use nonexistant surface! for new_object67" and am forced to abort...

also, to install surface_fix, GM needs to be run as admin. *shrug* only .gex I've ever had trouble with.
  • 0