Problem with XEffects

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.

Problem with XEffects

Postby Tihtinen » Sun May 09, 2010 1:04 am

When I use XEffects (the newest version) all the text I draw on screen with IGUIFont::draw() looks really weird :shock: Everything else is fine. Does anyone come up with a way of fixing this?

Image

Thank you in advance : )

EDIT: And just to mention, it doesn't matter if I actually use any of the effects or not. It's the EffectHandler::update() that causes this, because if I draw with smgr->drawAll(), the text looks fine.
Tihtinen
 
Posts: 76
Joined: Fri Jan 08, 2010 3:12 pm
Location: Finland

Postby Sudi » Sun May 09, 2010 1:53 am

thats a irrlicht bug...when using rendertargets alot this happens. probably a logic error in texture switching or something like that.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
User avatar
Sudi
 
Posts: 1600
Joined: Fri Aug 26, 2005 8:38 pm

Postby Nadro » Sun May 09, 2010 2:03 am

Is this only in OpenGL mode?

You can try call:
Code: Select all
VideoDriver->setMaterial(VideoDriver->getMaterial2D());

Before draw 2D elements eg. fonts.
NBK Game Studio - Official Site:
http://www.nbkgamestudio.pl/
Nadro
 
Posts: 1000
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Postby Tihtinen » Sun May 09, 2010 7:20 am

Nadro wrote:Is this only in OpenGL mode?

I don't know, I don't have D3D available in my current dll.

Nadro wrote:You can try call:
Code: Select all
VideoDriver->setMaterial(VideoDriver->getMaterial2D());

Before draw 2D elements eg. fonts.

BUT, this was awesome help. I only needed to call this once after the EfectHandler::update(), before drawing 2d overlay-related stuff :) Thank you very much!
Tihtinen
 
Posts: 76
Joined: Fri Jan 08, 2010 3:12 pm
Location: Finland

Re: Problem with XEffects

Postby vivekSivamRP » Mon Oct 01, 2012 10:44 am

While compiling Xeffects i got error:
"
GLSL failed to Compile:
Error:04: Use of undeclared identifier 'insert'
"
or else

getting only red color screen.

Can any one reason it ? How can i fix this ?
vivekSivamRP
 
Posts: 19
Joined: Sat Sep 29, 2012 11:58 am

Re: Problem with XEffects

Postby mongoose7 » Mon Oct 01, 2012 11:50 am

You can't have been compiling if you got a GLSL runtime error. Maybe you'd like to say which example you are running? Anyway, try looking for 'insert' in the shaders in the 'bin' directory and in the shaders in EffectShaders.h.
mongoose7
 
Posts: 514
Joined: Wed Apr 06, 2011 12:13 pm


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest