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.

Re: Simple cloud layer SceneNode

Postby Nadro » Mon Sep 29, 2014 8:42 pm

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.
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Postby AreaScout » Wed Oct 01, 2014 5:26 pm

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
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby CuteAlien » Wed Oct 01, 2014 6:10 pm

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8363
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Simple cloud layer SceneNode

Postby AreaScout » Wed Oct 01, 2014 7:00 pm

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
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby Nadro » Thu Oct 02, 2014 7:41 am

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.
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Postby AreaScout » Thu Oct 02, 2014 11:04 am

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
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby Nadro » Thu Oct 02, 2014 11:38 am

Do you use built-in materials?
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Postby AreaScout » Thu Oct 02, 2014 3:19 pm

Yes, but it's the same for the examples
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby Nadro » Thu Oct 02, 2014 3:24 pm

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.
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Postby CuteAlien » Thu Oct 02, 2014 3:49 pm

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8363
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Simple cloud layer SceneNode

Postby AreaScout » Thu Oct 02, 2014 4:29 pm

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
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby CuteAlien » Thu Oct 02, 2014 4:51 pm

I've not tested that yet.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8363
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Simple cloud layer SceneNode

Postby Nadro » Thu Oct 02, 2014 6:28 pm

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?
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Simple cloud layer SceneNode

Postby AreaScout » Fri Oct 03, 2014 6:31 am

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
AreaScout
 
Posts: 16
Joined: Wed Sep 24, 2014 7:30 pm

Re: Simple cloud layer SceneNode

Postby Nadro » Fri Oct 03, 2014 7:47 am

OK, so as I said before with the latest ogl-es revision cloud layer scene node should works fine :)
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

PreviousNext

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest