Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / tier 1 - instanced objects and shaders are broken?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 17th Jun 2013 01:01 Edited at: 17th Jun 2013 01:13
You are supposed to be able to have other shaders on instanced objects then there parent object.
But this seams to be brooken on the android player.

If switch shader to a Point light shader on the instanced object so does it vanish until i give it the same shader as its parent.

Everything works on windows but not on android.

Is this how it should be ?

And yes i know that the parent nead to have all the object data neaded for the shader
And its wath it have

Only thing not passed in the other shader is normals?
As it dont use any light source.

ps.
if i give the parent a Point light shader and the instanced one without so does it also vanish.
So it does seam to be something with instanced objects on the android player.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th Jun 2013 02:46
Yeah, shaders across instance objects can be tricky. If I recall correctly the shader parameters must match exactly, so a shader with

and one with

are not compatible as it will try and put the normal data through the UV attribute in the second shader. It may be that some platforms are more tolerant than others about shader attribute locations.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 18th Jun 2013 17:56
Thanks paul as this explains it even more

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-04-28 09:01:01
Your offset time is: 2024-04-28 09:01:01