Ignore:
Timestamp:
04/18/20 20:18:36 (4 years ago)
Author:
Maciej Komosinski
Message:

Added the actual functionality of the app in place of previous draft

File:
1 edited

Legend:

Unmodified
Added
Removed
  • js/human_3d_alignment/src/visualization/transformations.js

    r881 r911  
    4545        cylinderShape: {
    4646            radius: 0.1,
    47             radiusSegments: 10,
    48             isTransparent: false,
    49             opacity: 1
     47            radiusSegments: 10
    5048        },
    5149        linkShape: {
    5250            radius: 0.04,
    53             radiusSegments: 10,
    54             isTransparent: true,
    55             opacity: 0.2
     51            radiusSegments: 10
    5652        }
    5753    }
     
    186182     * @returns {MeshPhongMaterial} new material for Mesh
    187183     */
    188     getNewMaterial(r, g, b) {
    189         let color = new THREE.Color(
    190             this.calcColorComponent(r),
    191             this.calcColorComponent(g),
    192             this.calcColorComponent(b));
    193         return new THREE.MeshPhongMaterial({ color: color });
     184    getNewMaterial(color) {
     185        return new THREE.MeshPhongMaterial({
     186            color: color,
     187            transparent: true,
     188            opacity: 0.6,
     189            reflectivity: 0.2,
     190            shininess: 600
     191        });
    194192    }
    195193
Note: See TracChangeset for help on using the changeset viewer.