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

files used in the examples missing #8

Open
ghost opened this issue May 6, 2018 · 5 comments
Open

files used in the examples missing #8

ghost opened this issue May 6, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented May 6, 2018

for example the teapot is dependent on the teapot-ply existing.

mesh, err := LoadPLY("examples/ply/teapot.ply")

If they are too big maybe you can add a reference in the readme to where you got it and the others failing example from.

I found one here, but not sure if this is the right one
https://people.sc.fsu.edu/~jburkardt/data/ply/teapot.ply

Hope this is not too much bother.. Its just alot of run playing around with this.

@ghost
Copy link
Author

ghost commented May 6, 2018

I got the teapot working and wrote a make script for it.

dep-examples-ply:
	# some exampples need source files
	mkdir -p ./examples/ply
	# teapot
	cd ./examples/ply && curl -O https://people.sc.fsu.edu/~jburkardt/data/ply/teapot.ply

dep-examples-ply-clean:
	rm -rf ./examples/ply

wondering where you got the dragon from :)
mesh, err := LoadOBJ("examples/dragon.obj")

@ghost
Copy link
Author

ghost commented May 6, 2018

also the voxel source files for magica ?

// load a mesh
done = timed("loading vox file")
voxels, err := LoadVOX(os.Args[1])

@ajeecai
Copy link

ajeecai commented Aug 27, 2018

I download the teapot.ply into correct place, and run
$go run examples/teapot.go
1.206229528s

Only shows this 1.206229528s, without the graphic show up. Why? Try with MacOS and Ubuntu, the same result.

@fogleman
Copy link
Owner

@ajeecai It writes a file to the current working directory called out.png

@ajeecai
Copy link

ajeecai commented Aug 27, 2018

Oh, how stupid I am, I didn't take a look into the code to find it out. Thank fogleman

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