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

MaplyStarsModel Documentation #1614

Open
mattguthmiller opened this issue Jun 15, 2024 · 3 comments
Open

MaplyStarsModel Documentation #1614

mattguthmiller opened this issue Jun 15, 2024 · 3 comments

Comments

@mattguthmiller
Copy link

Is the MaplyStarsModel file format documented anywhere, or where could we find the starcatalog_orig.txt file from the AutoTester?

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Jun 17, 2024

The file is in the resources repo or in the AutoTester app package.

@mattguthmiller
Copy link
Author

So is the MaplyStarsModel broken? Nothing seems to happen when I do:

// Test stars
    NSString *fileName = [[NSBundle mainBundle] pathForResource:@"starcatalog_orig" ofType:@"txt"];
    if (fileName) {
        MaplyStarsModel *stars = [[MaplyStarsModel alloc] initWithFileName:fileName];
        if (stars) {
            UIImage *starImage = [UIImage imageNamed:@"star_background"];
            if (starImage) {
                [stars setImage:starImage];
                
                NSDictionary *desc = @{
                    kMaplyEnable: @(YES),
                    kMaplyPointSize: @(10)
                };
                
                [stars addToViewC:baseVC
                            date:[NSDate now]
                            desc:desc
                            mode:MaplyThreadCurrent];
            }
        }
    }

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Nov 4, 2024

At this point I don't remember if it made it into the Metal version. Easiest way to check is to run the AutoTester app.

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