Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 4-May-2017 19:31:54

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

the problem with the lighting

on PC, there's a light on the model. On Android, the no light on the model.

6c1155fba32197bd582279045b428fa8.png

Offline

#2 4-May-2017 20:11:58

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

Hello,

it must be a material issue.
what material did you used for the model ?

Offline

#3 5-May-2017 07:18:00

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

material "mater1_DefaultMaterial0"
{
	technique mater1_DefaultMaterial0_technique
	{
		pass mater1_DefaultMaterial0_standard
		{
			cull_hardware none
			cull_software none
			ambient 1.00000000 1.00000000 1.00000000 1.00000000
			diffuse 0.80000001 0.80000001 0.80000001 1.00000000
			emissive 0.00000000 0.00000000 0.00000000 1.00000000
		}
	}
}
material "mater1_Material_Texture1"
{
	technique mater1_Material_Texture1_technique
	{
		pass mater1_Material_Texture1_standard
		{
			cull_hardware none
			cull_software none
			ambient 1.00000000 1.00000000 1.00000000 1.00000000
			diffuse 1.00000000 1.00000000 1.00000000 1.00000000
			specular 0.00000000 0.00000000 0.00000000 1.00000000 0.00000000
			emissive 0.00000000 0.00000000 0.00000000 1.00000000

			texture_unit Diffuse_mater1_Material_Texture12
			{
				texture assets/models/converted/mater1/textures/Mama.png
				tex_coord_set 0
				tex_address_mode wrap wrap wrap
				colour_op modulate
			}
		}
	}
}
material "mater1_Material.0013"
{
	technique mater1_Material.0013_technique
	{
		pass mater1_Material.0013_standard
		{
			cull_hardware none
			cull_software none
			ambient 1.00000000 1.00000000 1.00000000 1.00000000
			diffuse 1.00000000 1.00000000 1.00000000 1.00000000
			specular 0.25000000 0.25000000 0.25000000 1.00000000 0.39215687
			emissive 0.00000000 0.00000000 0.00000000 1.00000000

			texture_unit Diffuse_mater1_Material.00134
			{
				texture assets/models/converted/mater1/textures/Mama.png
				tex_coord_set 0
				tex_address_mode wrap wrap wrap
				colour_op modulate
			}
		}
	}
}

Offline

#4 5-May-2017 10:18:54

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

try this for the transparent texture

material "mater1_DefaultMaterial0"
{
	technique mater1_DefaultMaterial0_technique
	{
		pass mater1_DefaultMaterial0_standard
		{
			cull_hardware none
			cull_software none
			ambient 1.00000000 1.00000000 1.00000000 1.00000000
			diffuse 0.80000001 0.80000001 0.80000001 1.00000000
			emissive 0.00000000 0.00000000 0.00000000 1.00000000
		}
	}
}
material "mater1_Material_Texture1"
{
	technique mater1_Material_Texture1_technique
	{
		pass mater1_Material_Texture1_standard
		{
                        lighting off
			ambient 1 1 1 1
			diffuse 1 1 1 1
			specular 0 0 0 1 20
			depth_check off
	                scene_blend alpha_blend

			cull_hardware none
			cull_software none

			texture_unit Diffuse_mater1_Material_Texture12
			{
				texture assets/models/converted/mater1/textures/Mama.png
			}
		}
	}
}
material "mater1_Material.0013"
{
	technique mater1_Material.0013_technique
	{
		pass mater1_Material.0013_standard
		{
                        lighting off
			ambient 1 1 1 1
			diffuse 1 1 1 1
			specular 0 0 0 1 20
			depth_check off
	                scene_blend alpha_blend

			cull_hardware none
			cull_software none

			texture_unit Diffuse_mater1_Material.00134
			{
				texture assets/models/converted/mater1/textures/Mama.png
			}
		}
	}
}

Offline

#5 5-May-2017 13:44:22

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

I for some reason get a bunch of materials on the model. Experimenting with what will be.

Offline

#6 5-May-2017 14:51:43

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

failed. I'll send you the files.

http://kiberin.ru/mater.zip

Offline

#7 5-May-2017 17:19:15

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

there is no material with texture in your zip file
all materials are color only.

clean up your folders, and import the scene again.
maybe you have several materials with the same name that can make the issue happen.
This is why I made a resource prefix on 3dsMax exporter to prevent material names duplication.

Offline

#8 5-May-2017 17:56:51

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

Ok I found the issue, this is not the material but the texture.

open the mama.png file with paint and resize the texture to 1024 * 1024
it should mean this is a graphic memory limit on the galaxy s7.
large mesh + large texture can make this happen.

Offline

#9 5-May-2017 18:29:11

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

http://kiberin.ru/project.rar

I've tried everything. Model Android black. Can't understand why.

Offline

#10 5-May-2017 18:33:45

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

that is, to reduce the size of the texture? 512?

Offline

#11 5-May-2017 21:50:40

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

Yes I did test your model and just resized the texture to half size and it worked on my samsung S7.

1024 x 1024 worked for me. but it's also possible that your png file have a bad header you can try with jpg also.

Offline

#12 6-May-2017 07:33:07

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

thank you everything works.

Offline

#13 6-May-2017 07:37:23

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: the problem with the lighting

I bought your book to support you. Thank you for your work.It is really very significant.

Offline

#14 6-May-2017 13:52:07

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: the problem with the lighting

Thanks smile

Offline

Board footer

Powered by FluxBB