Patch for 3D anaglyph (fixes the block pointer)

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

Patch for 3D anaglyph (fixes the block pointer)

by lkjoel » Sat Mar 10, 2012 19:18

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?
Last edited by lkjoel on Sat Mar 10, 2012 23:05, edited 1 time in total.
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Sat Mar 10, 2012 20:55

nice
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat Mar 10, 2012 22:11

Amazing!
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sat Mar 10, 2012 23:03

thanks!
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 7 guests

cron