Simple cloud layer SceneNode

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

It's a problem with Texture Matrix uniform in ES2 (we use built-in shaders for emulate fixed pipeline materials, but not all options are implemented and/or tested). You shouldn't use built-in shaders in ES2, but your own shaders optimized for your product.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

It's not only that this animation is not working, OGLES2 has constantly less speed then OGLES1 it's 5fps, i don't know if this has something to do with the animation problem, but my bet is also the shader for the slowness

RG
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Simple cloud layer SceneNode

Post by CuteAlien »

That might also depend a lot on the device you use for testing. I have 2 devices here where the speed is way different. One device is running some code 6 times faster in OGLES2 than OGLES1 while the other device can for the same code be slightly faster with OGLES1.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

Well that could be the painful truth, so i have to dig in more into Irrlicht shaders or stay on OGLES1, thx anyway for your efforts :)

RG
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

OGLES2 should works faster than OGLES1 on each device with GPU better than Adreno 205. For the best performance in OGLES2 it's also important to use custom - optimized shaders instead of built-in materials.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

Double checked but it's not the case on my device, like i say'd OGLES1 is 5 fps faster then OGLES2, so what else could that be ? Did try this also with examples i.e 08.SpecialFX

RG
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

Do you use built-in materials?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

Yes, but it's the same for the examples
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

But in OGL ES1 you can't prepare custom - optimized materials, thats why you should use OGL ES2 driver if you don't have to support old devices. In real games, where you will use custom shaders ES2 will be much faster.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Simple cloud layer SceneNode

Post by CuteAlien »

Yeah, ES2 generally faster ... unless the drivers of your device are bad - which unfortunately still happens once in a while. In my case I think the problem was that my device (moto g) ignored the static mesh flag in ES2 and uploaded geometry constantly (I wouldn't swear 100% that's the problem, but it looked like that when I debugged & profiled it a few months ago). Thought it already got faster in last tests - not sure if that latest improvement was because of Nadro's improvements in Irrlicht or if my MotoG updated it's driver - didn't profile again yet :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

Humm i know that ES2 is normaly the better choose, i mean now that i am using ES1, 2D drawing on hw scaled Images, filters are not working and i did some small projects with shaders in the past too, so it's not entirly new ^^

To be honest, with Irrlicht it's the first time that i directly compare ES1 and ES2, so of corse it could be that the drivers lags in speed, so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side ?

RG
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Simple cloud layer SceneNode

Post by CuteAlien »

I've not tested that yet.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

This node should works properly on ES2 driver with the latest ogl-es branch revision.
so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side
Do you mean cloud layer scene node animation or general ES2 driver performance?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
AreaScout
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Post by AreaScout »

Nadro wrote:This node should works properly on ES2 driver with the latest ogl-es branch revision.
so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side
Do you mean cloud layer scene node animation or general ES2 driver performance?
cloud layer scene, CuteAlien already pointed out that his devices's are faster on ES2
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Post by Nadro »

OK, so as I said before with the latest ogl-es revision cloud layer scene node should works fine :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply