Partially transparent materials are available in the git repo on bitbucket (see the screenshot a few posts up about soft particles) but I want to improve a couple more things before an official binary release. What you're seeing right now is the transparent reference material, see the API documentationchristianclavet wrote:Hi, Been checking the shaders, and it was really instructive! There is a lot to learn there! I think it the first solid reference on GLSL shaders (on Irrlicht) I've seen since a very long time.
Will have to check how to update your normal shader to provide a spec map to it and it will be almost perfect for me.
Can the transparent_alpha shader can support partially transparent textures (like glass)?
I saw this in the code:So it would discard pixel after they reach half transparency?Code: Select all
if(color.a < 0.5) discard; //a transparent pixel
irrRenderer 1.0
Re: irrRenderer 1.0
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Re: irrRenderer 1.0
let me call out bullshit, we have soft particles too! (but we leave the depth buffer unattached!)
Not while using it. That is against the standard, even if depth writes have been turned off, and only happens to work on nvidia.
So for things like soft particles you do need it separately.
so you never need to do a separate Zpass/write to another channel in a GBuffer
Re: irrRenderer 1.0
So your soft particles are slower, because you have to do a manual discard instead of using the fast Z-buffer hardware. Sure it's possible, but not necessarily smart.
Re: irrRenderer 1.0
Since I'm compiling it with current SVN Irrlicht, it didn't compile and gave those errors of deprecated functions. (wonder how would shaders work when passing parameters as index?). Anyway, good project. I'll wait for 1.9 support.
IRC: #irrlicht on irc.freenode.net
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Re: irrRenderer 1.0
IIRC those are just warnings. Compiles fine here with trunk (the linux binaries in the zip archive were compiled with it btw)
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Re: irrRenderer 1.0
I grab the depth buffer directly.. convert it to linear depth
then bind it with the color buffer
render particles (have both linear depth in a texture and depth buffer for early Z)
then bind it with the color buffer
render particles (have both linear depth in a texture and depth buffer for early Z)
Re: irrRenderer 1.0
Ahoy there,
I really like what I'm seeing right there, marvellous job (that I could never accomplish
)
Anybody already got experiences on implementing in in a rather large irrlicht project?
May try this in the next couple of days (after making a backup^^), but I wanted to ask whether someony already did so?
Have a great day!
I really like what I'm seeing right there, marvellous job (that I could never accomplish

Anybody already got experiences on implementing in in a rather large irrlicht project?
May try this in the next couple of days (after making a backup^^), but I wanted to ask whether someony already did so?
Have a great day!
Re: irrRenderer 1.0
Oh right, I had SDL checks enabled in Visual Studio project configuration which treats such warnings as errors. It compiles fine now. Just asking, what are the differences in your implementation of normal/Parallax mapping and irrlicht's implementation?ent1ty wrote:IIRC those are just warnings. Compiles fine here with trunk (the linux binaries in the zip archive were compiled with it btw)
IRC: #irrlicht on irc.freenode.net
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Re: irrRenderer 1.0
Oh, I misunderstood you before. So actually we're just arguing whether to use MRT or to blit it.devsh wrote:I grab the depth buffer directly.. convert it to linear depth
then bind it with the color buffer
render particles (have both linear depth in a texture and depth buffer for early Z)
With MRT you have some overdraw and more efficient write, with a blit no overdraw but it's an additional drawcall.
Re: irrRenderer 1.0
Well, you get infinite light sources (irrlicht normal/parallax has 2), an improved lighting algorithm ("logarithmic attenuation" edit: the axis labels appear to be on the other way around) and in the possibly foreseeable future dynamic shadows.superpws wrote:[...] what are the differences in your implementation of normal/Parallax mapping and irrlicht's implementation?
All you need to do is call MaterialSwapper->swapMaterials() once your whole scene has been set up and you should be good to go.user-r3 wrote:Anybody already got experiences on implementing in in a rather large irrlicht project?
May try this in the next couple of days (after making a backup^^), but I wanted to ask whether someony already did so?
Guys, any chance you could stop hijacking this thread

irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Re: irrRenderer 1.0
Wow, thanks for the reply, that really is easy 
After trying it, my first impression:
-looking good in general
-darker than vanilla rendering?
-easy per pixel lighting
-still no normal mapping for animated meshes? Well at least ppl
I may play around with it a bit more tomorrow/in the next couple of days.
Thanks again.

After trying it, my first impression:
-looking good in general
-darker than vanilla rendering?
-easy per pixel lighting

-still no normal mapping for animated meshes? Well at least ppl

I may play around with it a bit more tomorrow/in the next couple of days.
Thanks again.
Re: irrRenderer 1.0
There is a normal map material for animated meshes, see http://www.fi.muni.cz/~xkrupick/irr/doc ... e22b4d2444user-r3 wrote:still no normal mapping for animated meshes? Well at least ppl
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Re: irrRenderer 1.0
Well... thanks, but in this case I have no idea how to use it...ent1ty wrote:There is a normal map material for animated meshes, see http://www.fi.muni.cz/~xkrupick/irr/doc ... e22b4d2444

I load the normalmap in the texturelayer 1 like this:
Code: Select all
node->setMaterialTexture(1, driver->getTexture("gfx/Normal.png"));
node->setMaterialType(Renderer->getMaterials()->NormalAnimated);
If I use the same normalmap for my level scenenodes (which usually use a different one^^) it works like a charm (without setting normalanimated as the material, this breaks the effect)
Also I've noticed some ...zbuffer-problems? Where I could see parts of meshes glitching through other parts covering them... I hope this is understandable.
Sincerely
Re: irrRenderer 1.0
I'll check on this, but the fact that the tangent is approximated (probably not in a completely mathematically correct fashion) in code should be kept in mind.
Any screens? irrRenderer lets Irrlicht do the z-ordering and drawing from front to back. Could it be your mesh is messed up?user-r3 wrote:Also I've noticed some ...zbuffer-problems? Where I could see parts of meshes glitching through other parts covering them... I hope this is understandable.
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Re: irrRenderer 1.0
Thanks, if you could build a very simple example of irrRenderer, only with a cube or something, as an animated mesh, with a normal texture, maybe this could help eitherent1ty wrote:I'll check on this, but the fact that the tangent is approximated (probably not in a completely mathematically correct fashion) in code should be kept in mind.
show that it isn't working
or show how it is done correctly

In order to not give away to much information about my project (Mr. Paranoid here) I've cropped some screens, so they only show the problem:ent1ty wrote:Any screens? irrRenderer lets Irrlicht do the z-ordering and drawing from front to back. Could it be your mesh is messed up?
-Irrlicht vanilla shows it as it should be rendered (but with some strange normalmapping effects)
-I like your renderer more

-Yes, problems in my scene could be, I also wanted to switch to using a scene file instead of one huge mesh, when finally creating a nice level, or redoing my debug levels.

Thanks alot
