Search found 13 matches

by floriang
Wed Jul 29, 2015 8:40 am
Forum: Bug reports
Topic: [fixed]references to NULL
Replies: 2
Views: 1000

[fixed]references to NULL

Hello, I found that there were references to null pointers in the irrlicht code (using 1.9.0 on openGL ES branch). This is undefined behaviour and it may causes bugs if the cases occur. I think it's pretty minor but just so you know: You can find the offending code snippets bellow:    core::plane3df...
by floriang
Fri Jun 12, 2015 5:23 am
Forum: Advanced Help
Topic: Crash using setTextureCreationFlag(irr::video::ETCF_ALWAYS_)
Replies: 6
Views: 1678

Re: Crash using setTextureCreationFlag(irr::video::ETCF_ALWA

thanhle wrote:I'm not sure, but could be 2^n texture?
Also, Width = Height?

Regards
I already tried to force power of 2 textures but no luck.
And my small textures are not power of 2 anyway, and they don't have issues getting loaded even in 16BIT.
by floriang
Fri Jun 12, 2015 5:15 am
Forum: Advanced Help
Topic: Crash using setTextureCreationFlag(irr::video::ETCF_ALWAYS_)
Replies: 6
Views: 1678

Re: Crash using setTextureCreationFlag(irr::video::ETCF_ALWA

So now I found that for opengl ES 2.0 driver, the crash is occuring in COGLES2Texture::uploadTexture when calling glTexImage2D with the following arguments This is in 16BIT mode (crash) glTexImage2D(3553,0,6408,2301,2308,0,6408,32820,7AE88008) Actually meaning   glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA,...
by floriang
Fri Jun 12, 2015 2:36 am
Forum: Advanced Help
Topic: Crash using setTextureCreationFlag(irr::video::ETCF_ALWAYS_)
Replies: 6
Views: 1678

Re: Crash using setTextureCreationFlag(irr::video::ETCF_ALWA

Actually I got this stack trace on android (didn't retry on windows yet): 01-01 12:55:02.370: I/DEBUG(2159):     #04  pc 00574008  /data/app-lib/com.mylib.mysampleappli-2/libMyLib.so (irr::video::COGLES2Texture::uploadTexture(bool, unsigned int, bool, void*, unsigned int)+1604) 01-01 12:55:02.370: I...
by floriang
Fri Jun 12, 2015 1:25 am
Forum: Advanced Help
Topic: Crash using setTextureCreationFlag(irr::video::ETCF_ALWAYS_)
Replies: 6
Views: 1678

Crash using setTextureCreationFlag(irr::video::ETCF_ALWAYS_)

Hello, I got an access violation exception when using irr::video::ETCF_ALWAYS_16_BIT for texture loading from PNG file. Actually it works fine for most of texture, but it crashes when trying to load a big (2301x2308) texture atlas. Below is my helper code for loading a texture. When loading icons i ...
by floriang
Tue Sep 30, 2014 8:11 am
Forum: Beginners Help
Topic: ztest failing when rendering to two winform panels - bug?
Replies: 6
Views: 739

Re: ztest failing when rendering to two winform panels - bug

Hello again, I'm keeping on doing more complex rendering on 2 panels, but it feels very buggy. For example, I get issues when adding guienv static text items to display the FPS: The code below won't display the static text on any panel:                 IGUIStaticText* statictext2 = guienv->addStatic...
by floriang
Tue Sep 30, 2014 2:25 am
Forum: Beginners Help
Topic: ztest failing when rendering to two winform panels - bug?
Replies: 6
Views: 739

Re: ztest failing when rendering to two winform panels - bug

Finally, there is no explicit API to do it, but we can use a trick of displaying a 2dline to force irrlicht enabling the depth test when it switches back to 3d rendering. Here is the final code in case someone else needs it:                   device->run();                 driver->beginScene(true, t...
by floriang
Tue Sep 30, 2014 1:52 am
Forum: Beginners Help
Topic: ztest failing when rendering to two winform panels - bug?
Replies: 6
Views: 739

Re: ztest failing when rendering to two winform panels - bug

Update: I was able to fix the issue by enabling depth test after changing the context:                   device->run();                 driver->beginScene(true, true, video::SColor(0,0,180,255), nativeVideoInfo2);                 glEnable (GL_DEPTH_TEST);                 smgr->setActiveCamera(cam); ...
by floriang
Tue Sep 30, 2014 1:44 am
Forum: Beginners Help
Topic: ztest failing when rendering to two winform panels - bug?
Replies: 6
Views: 739

Re: ztest failing when rendering to two winform panels - bug

Thanks for the tip.
Here is what it looks like when PANEL2 displays correctly (as in the code as posted).
PANEL1 and PANEL2 should display the same thing, but they don't!

Image

When looking at the picture, it looks like a Zbuffer issue to me. But it may be something else
by floriang
Mon Sep 29, 2014 12:21 pm
Forum: Beginners Help
Topic: ztest failing when rendering to two winform panels - bug?
Replies: 6
Views: 739

ztest failing when rendering to two winform panels - bug?

Hi all, I am trying to render to two windows panel (using irrlicht 1.8 ), and I don't understand why but it looks like the Z test is failing on the second panel. I am using openGL driver (opengl is required because i want to use irrlicht inside an application that otherwise uses opengl), and I get w...
by floriang
Wed Jul 16, 2014 2:03 am
Forum: Beginners Help
Topic: Sharing opengl context with Irrlicht
Replies: 5
Views: 1728

Re: Sharing opengl context with Irrlicht

Hello again, Edit: Nevermind I found it: irdriver->setTransform(irr::video::ETS_WORLD, irr::core::matrix4()); irdriver->setTransform(irr::video::ETS_VIEW, irr::core::matrix4()); irdriver->setTransform(irr::video::ETS_PROJECTION, irr::core::matrix4()); irdriver->setTransform(irr::video::ETS_TEXTURE_0...
by floriang
Tue Jul 15, 2014 2:04 am
Forum: Beginners Help
Topic: Sharing opengl context with Irrlicht
Replies: 5
Views: 1728

Re: Sharing opengl context with Irrlicht

Hello Nadro, Edit I was saying that I it worked, and it looked like it at first, but the result is buggy. So I will go with your proposal (using same context for opengl rendering). Thanks. Florian =========== Disregard below comment =============== Thank you for your reply. Actually I was able to ma...
by floriang
Mon Jul 14, 2014 12:34 pm
Forum: Beginners Help
Topic: Sharing opengl context with Irrlicht
Replies: 5
Views: 1728

Sharing opengl context with Irrlicht

Hello, I am developping a library that needs basically to be able to render something to a few Textures using data from a database, so that the user of the library can then use the textures in OpenGL to draw his application (using the Open GL texture names). I am using Irrlicht because it was easy t...