Open ghost opened 6 years ago
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")
also the voxel source files for magica ?
// load a mesh
done = timed("loading vox file")
voxels, err := LoadVOX(os.Args[1])
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.
@ajeecai It writes a file to the current working directory called out.png
Oh, how stupid I am, I didn't take a look into the code to find it out. Thank fogleman
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.