We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

v4.0 fromBufferGeometry not working

Home Forums Bug Reports and Feature Requests v4.0 fromBufferGeometry not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #53212
    ppjskk
    Participant

    Hi,

    const particlesGeometry = app.scene.getObjectByName('Box');
    var ConvertBufferGeo = new THREE.Geometry().fromBufferGeometry(particlesGeometry.geometry);
    const particle = new v3d.TextureLoader().load('assets/model/texture/particle.png');
    // Material
    const particlesMaterial = new v3d.PointsMaterial({ 
                map: particle,
                size: 0.1, 
                sizeAttenuation: true, 
                alphaTest: 0.5,
                transparent: true, 
                color:0xff0000,
              });
    
    // Points
    const particles = new v3d.Points(ConvertBufferGeo, particlesMaterial);
    
    v3d.apps[0].scene.add(particles);
    //v3d.apps[0].scene.remove(particlesGeometry);

    same code not working v4.0

    Attachments:
    You must be logged in to view attached files.
    #53215

    Hi,
    Geometry class is no longer available in Verge3D (same with Three.js). Use BufferGeometry instead. See an example here.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #53218
    ppjskk
    Participant

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.