Page 1 of 1

Patch for 3D anaglyph (fixes the block pointer)

PostPosted: Sat Mar 10, 2012 19:18
by lkjoel
I recently tried the 3D anaglyph patch, and it works well, except for the block pointer. Using 3D glasses, it looks really weird as it's not 3D.
This patch, of course, needs the 3D anaglyph patch (http://c55.me/minetest/forum/viewtopic.php?id=1010).
Here is the patch:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2493a2494,2497
>                 video::SMaterial m;
>                 m.Thickness = 3;
>                 m.Lighting = false;
>                 driver->setMaterial(m);
2494a2499,2507
>                 driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
>                 if(show_hud)
>                 {
>                     for(core::list<aabb3f>::Iterator i=hilightboxes.begin();
>                             i != hilightboxes.end(); i++)
>                     {
>                         driver->draw3DBox(*i, video::SColor(255,0,0,0));
>                     }
>                 }
2517a2531,2533
>                 m.Thickness = 3;
>                 m.Lighting = false;
>                 driver->setMaterial(m);
2518a2535,2543
>                 driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
>                 if(show_hud)
>                 {
>                     for(core::list<aabb3f>::Iterator i=hilightboxes.begin();
>                             i != hilightboxes.end(); i++)
>                     {
>                         driver->draw3DBox(*i, video::SColor(255,0,0,0));
>                     }
>                 }
2539d2563
<         
2548c2572
<         if(show_hud)
---
>         if(show_hud && !g_settings->getBool("anaglyph"))

Without this patch:
Image
With this patch:
Image
See the difference between the block pointers?

PostPosted: Sat Mar 10, 2012 20:55
by sdzen
nice

PostPosted: Sat Mar 10, 2012 22:11
by sfan5
Amazing!

PostPosted: Sat Mar 10, 2012 23:03
by lkjoel
thanks!