Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequently there's a crash when fetching terrain texture - Using Objective - C (There's no log about the issue) #77

Open
jorgeAdfi opened this issue Apr 4, 2019 · 1 comment

Comments

@jorgeAdfi
Copy link

if(_terrainNode != nil){
_terrainNode.scale = terraindNodeScale;
_terrainNode.geometry.materials = [self _defaultMaterials];
[self.scene.rootNode addChildNode:_terrainNode];
NSLog(@"Agrega terreno a 4riders");

    [_terrainNode fetchTerrainAndTextureWithMinWallHeight:50.0 multiplier:2 enableDynamicShadows:YES textureStyle:@"mapbox/satellite-streets-v9" heightProgress:nil heightCompletion:^(NSError * _Nullable fetchError) {
        if (fetchError) {
            NSLog(@"Texture load failed: %@", fetchError.localizedDescription);
        } else {
            NSLog(@"Terrain load complete");
        }
    } textureProgress:nil textureCompletion:^(UIImage * _Nullable image, NSError * _Nullable fetchError) {
        if (fetchError) {

// NSLog(@"Texture load failed: %@", fetchError.localizedDescription);
}
if (image) {
NSLog(@"terrain texture fetch completed");
self->_terrainNode.geometry.materials[4].diffuse.contents = image;
}
}];
}

@jorgeAdfi jorgeAdfi changed the title Frequently there's a crash when fetching terrain texture - Using Objective - C Frequently there's a crash when fetching terrain texture - Using Objective - C (There's no log about the issue) Apr 4, 2019
@camdeardorff
Copy link
Contributor

#79 might resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants