Glass Pane and Rain Drop refraction demo - Source Included
@Cr33: I know exactly how you feel. I once had a Radeon 9600XT and watched too much demos - guess what happened. But, you should use your card. The more, the better. Because that's power testing for your new hardware. If it fails, bring it back and use your warranty.
Generated Documentation for BlindSide's irrNetLite.
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
-
- Posts: 34
- Joined: Thu Feb 05, 2009 11:37 am
- Location: Koblenz, Germany
the glass is wonderful!
how did you give your own mesh the texture? If I include the dwarf and do
my result looks pretty like this:
how did you give your own mesh the texture? If I include the dwarf and do
Code: Select all
node->setMaterialType(E_MATERIAL_TYPE(GlassMat));
Think Tannenzäpfle!
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
-
- Posts: 34
- Joined: Thu Feb 05, 2009 11:37 am
- Location: Koblenz, Germany
* Digs up very old demo code *
and then
You probably forgot to set the normal map texture.
Cheers
Code: Select all
ISceneNode* GlassMesh = smgr->addAnimatedMeshSceneNode(smgr->getMesh("media/dwarf.x"));
GlassMesh->setPosition(core::vector3df(2400*2,1200,2000*2));
GlassMesh->setScale(core::vector3df(10,10,10));
GlassMesh->setMaterialTexture(0, RTTTex);
GlassMesh->setMaterialTexture(1, NormMap);
Code: Select all
GlassMesh->setMaterialType(E_MATERIAL_TYPE(GlassMat));
Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
- Posts: 34
- Joined: Thu Feb 05, 2009 11:37 am
- Location: Koblenz, Germany
oh, I see...
I tried to implement it into another project but got strange effects:
this room: I did the same I did in your project and got this:
so right now you can hardly see but the glass effect works but the texture is straight over the shape of the room ignoring its geometry. With other shaders that I use to give it a material this effect does not take place
I tried to implement it into another project but got strange effects:
this room: I did the same I did in your project and got this:
so right now you can hardly see but the glass effect works but the texture is straight over the shape of the room ignoring its geometry. With other shaders that I use to give it a material this effect does not take place
Think Tannenzäpfle!
Yes I recommend only using this with planes, the mesh thing is not physically correct and so in certain cases it can look strange.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
- Posts: 34
- Joined: Thu Feb 05, 2009 11:37 am
- Location: Koblenz, Germany
Re: Glass Pane and Rain Drop refraction demo - Source Includ
in irrlicht 1.8 and 1.9 this demo is not working as expected the glass pane is divided into 4 and the drops are square. whats going on with my shaders everythings broken and im going crazy (linux 64 bit) it works great in irr 1.7
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: Glass Pane and Rain Drop refraction demo - Source Includ
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%