Search found 5 matches

by AlainSE
Thu Jul 25, 2013 3:00 pm
Forum: Bug reports
Topic: texture not displayed on 3D object when using 2D drawing
Replies: 3
Views: 1431

Re: texture not displayed on 3D object when using 2D drawing

After some investigation, it seems the problem comes from the material himself:       virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,         bool resetAllRenderstates, IMaterialRendererServices* services)     {         Driver->disableTextures(1); ...   I...
by AlainSE
Thu Jul 25, 2013 1:42 pm
Forum: Bug reports
Topic: texture not displayed on 3D object when using 2D drawing
Replies: 3
Views: 1431

Re: texture not displayed on 3D object when using 2D drawing

Thanks for the answer. You are right, my label may be wrong. I just did the exact same test with other materials type... and for a lot of types the quad changes if the 2d square is displayed or not. Seems there is something changed when doing 2D operations and not set back to correct value when retu...
by AlainSE
Thu Jul 25, 2013 9:50 am
Forum: Bug reports
Topic: texture not displayed on 3D object when using 2D drawing
Replies: 3
Views: 1431

texture not displayed on 3D object when using 2D drawing

Hi, I found a rather strange bug this morning and I wrote a small test code to reproduce it: I am creating a quad with two alpha enabled textures on it. In normal use, the quad is displayed and the textures are blended correctly. But if I use a totally unrelated 2D command (in my case draw2DRectangl...
by AlainSE
Thu Jun 13, 2013 5:36 am
Forum: Beginners Help
Topic: Get available video memory?
Replies: 8
Views: 1111

Re: Get available video memory?

Ok thanks for the answer...

but it is really annoying - I was using DirectX (on a different engine) and I was able to know exactly the amount of available ram. I am switching to OpenGL because I want to create a cross platform product and this limitation is .. well.. a real limitation.
by AlainSE
Wed Jun 12, 2013 8:32 am
Forum: Beginners Help
Topic: Get available video memory?
Replies: 8
Views: 1111

Get available video memory?

Hi, I am looking for a function to retrieve the available video memory (it is useful to know if I can load all textures at the beginning of the application or if I have to wait until I really need them). I noticed Irrlicht display this information on the debug log when starting the application (I am...