Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - twaletz

Pages: [1]
1
Support / No light after world deserialization
« on: August 26, 2013, 04:43:52 pm »
Hello,

I have problem with the World Light after deserialization.
My world contains about 60 Objects3d camera and one light.

Code: [Select]
Light sun = new Light(world);
sun.setIntensity(100, 100, 100);
SimpleVector sv = new SimpleVector(100f,-100f,50f);
sun.setPosition(sv);

Everything looks good. I see shading on objects in the world.
But, when I serialize whole world and after this deserialize whole world - light disappear. World has all objects but no light.
And now even if I add a new light, objects3d stay matte (no shading).
After deserialization getSpecularLighting()==true for all objects3d.
Where is my mistake?

Pages: [1]