Posted: 11th May 2021 13:34
@tboy i still get very green screens on pi i havent tried with wine yet
but i did manage to create the PiPlayer and replaced it with the agkpi
PiPlayer but not sure if i did something wrong with it still going green
with the models. I did run the raspberry pi version compiled and then
even tried replacing the byte code in media folder and PiPlayer again
but its still green.

Any suggestions ?

Thanks

EDIT your script helped me get the colours fixed and i found
the reason why the trees and buildboards were black was because the setobjectimage applied it to texture slot one
which is fine aslong as there is a texture slot 0 aswell

I use code like this for illumination and passing to it
setupilluminationshader(object,image,1) works a treat
+ Code Snippet
function setupIlluminationShader(objectId as integer,imageId as integer, bones as integer)
	SetObjectImage(objectId,imageId,0)  //mixamorig:LeftHand
	setobjectimage(objectId,illuminationImageID,1)
	SetObjectNormalMap(objectId,NormalmapID)
	SetObjectColorEmissive(objectId,20,20,20)

child as integer
for child = 1 to GetObjectNumChildren(objectId)
	SetObjectImage(GetObjectChildID(objectID,Child),imageID,0)
	SetObjectImage(GetObjectChildID(objectID,Child),illuminationImageID,1)
	SetObjectNormalMap(GetObjectChildID(objectID,Child),NormalMapID)
	SetObjectColorEmissive(GetObjectChildID(objectID,Child),20,20,20)
next child
/*
if bones =0	
	SetObjectShader(objectId,Illumination_ShaderID)
else
	SetObjectShader(objectId,IlluminationBones_ShaderID)	
endif	
	//setobjectcoloremissive(objectId,150,150,150)
*/
endfunction