这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

I solved it. If I add

                object.geometry?.addGroup(0,object.geometry!.attributes['position'].length, 0);
                object.geometry?.addGroup(0,object.geometry!.attributes['position'].length, 1);

like in the code below it works and get secondary textures:

      mesh?.traverse((object) {
        if (object is THREE.Mesh && object.material is THREE.Material ) {
            var  mat=object.material?.clone();
            if (object.name == "surfaceaerial") {
                object.geometry?.addGroup(0,object.geometry!.attributes['position'].length, 0);
                object.geometry?.addGroup(0,object.geometry!.attributes['position'].length, 1);
               object.mater…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Knightro63
Comment options

@forthtemple
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by forthtemple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants