About Stencil buffer

giacomo986
New member
 
Posts: 6
Joined: Thu Oct 30, 2014 09:05

About Stencil buffer

by giacomo986 » Mon Nov 10, 2014 11:11

Hello everyone,

I see that minetest use Irrlicht as engine for the game and I checked the Irrlicht website but I can't find any topic on Stencil Buffer.
I think Irrlicht doesn't support stencil buffer and the portal mod that I want to do needs stencil buffer.

I this moment there are 2 options:
1) stop trying to do portal mod
2) add stencil buffer support to the engine

maybe i can try to implement stencil buffer in the game myself but I have to study irrlicht and i don't know how much it will takes.

I link to you where i learned about portal with stencil buffers
http://en.wikibooks.org/wiki/OpenGL_Programming/Mini-Portal

any suggestion is appreciated
 

User avatar
addi
Member
 
Posts: 659
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: About Stencil buffer

by addi » Mon Nov 10, 2014 13:52

irrlicht supports stencil buffer
i know this from my own experiments

Code: Select all
irr::SIrrlichtCreationParameters params;
   params.DriverType=driverType;
   params.WindowSize=resolution;
   params.Bits=32;
   params.Fullscreen=fullscreen;
   params.Stencilbuffer=true;//<--used for calculating shaddows
   params.Vsync=vsync;
   params.AntiAlias=aa;
   params.EventReceiver=this;

device = createDeviceEx(params);
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 3 guests