Main Menu
Menu

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.

Show posts Menu

Messages - lesinhorini

#1
Support / Reflection issue
July 07, 2017, 11:06:19 PM
I'm having a unspected reflection over my objects (mall.jpg). I would like a light more flat over all objects, keeping a same pattern.

The mall was drawed from a .OBJ file.

Follow below the code where I configure ambient light and a Light.


        world = new World();
        world.setAmbientLight(170, 170, 170);

        light = new Light(world);
        light.setIntensity(252, 252, 252);

        // Positioning the light
        SimpleVector sv = new SimpleVector();
        sv.set(model3D.getTransformedCenter());
        sv.y -= 90;
        sv.z -= 90;
        light.setPosition(sv);