STATE_engine_set_stereoscopic_mode

 

 



#define STEREOSCOPIC_OFF 0
#define STEREOSCOPIC_CYAN_RED 1		  The left lens\eye is cyan. The right lens\eye is red.
#define STEREOSCOPIC_RED_CYAN 2		  The right lens\eye is cyan. The left lens\eye is red.
#define STEREOSCOPIC_BLUE_RED 3		  The right lens\eye is red. The left lens\eye is blue
#define STEREOSCOPIC_RED_BLUE 4		  The left lens\eye is red. The right lens\eye is blue
#define STEREOSCOPIC_GREEN_RED 5	  The right lens\eye is red. The left lens\eye is green
#define STEREOSCOPIC_RED_GREEN 6	  The left lens\eye is red. The right lens\eye is green


#define STEREOSCOPIC_NUMBER_OF_MODES 7

   If you have a pair of 3D paper glasses (Anaglyphic glasses) 
   then this function can do amazing things for you.
   Once this function is called, the engine will render
   your scene in a way that will match your 3D glasses.
   The result is a real 3D rendering with a real sense of depth.
   If you don't have  3D paper glasses then you should quickly get a pair.  
   3D paper glasses should not cost more than 1 dollar.
   There are some Web Sites which even give them for free.
   Note that Cyan is the color that one gets 
   when adding green to blue (CYAN RGB= 0,255,255).
   www.rainbowsymphonystore.com is a good place to buy 3D Glasses.
   3D glasses are very cheap ( $0.4 for a pair)
   Check out http:  www.rainbowsymphonystore.com/3dglasses.html
   www.d3.com is another option.
   Any other place is probably just as good.

   We recommend the glasses sold by www.d3.com though
   any other suitable product from other companies can do the work.
  
   If your company is using a type of 3D glasses or any type of 3D virtual reality head set that
   is not supported by the engine then you can write to us and we will
   try to add support for this equipment.
   
   Parameters:
  		stereoscopic_mode:
  			set the mode of work
  
  		distance_between_eyes:
  			Any number starting from 0.
  			A bigger number will increase the 3D effect
  			0 will result in no 3D effect.
  			The 3D effect is created using a combination of two images
  			taken from adjacent locations. This mimics the way it is done
  			in nature. In nature our brain receives two images, one from each eye.
  			
   Note that getting an anaglyphic image is not without a price.
   In this mode the rendering operation will be about 40 percent slower.
  
  	Examples:
  	1)
  	  Initializing anaglyphic mode. You can call this function anytime
  	  after the world is loaded.
  	  Try different numbers for distance_between_eyes till you get the best effect
  	STATE_engine_set_stereoscopic_mode(STEREOSCOPIC_RED_CYAN, 100);			
  
    2)
  	  Canceling the anaglyphic mode. 
    STATE_engine_set_stereoscopic_mode(STEREOSCOPIC_OFF, 100);	

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com