fauxgl icon indicating copy to clipboard operation
fauxgl copied to clipboard

files used in the examples missing

Open ghost opened this issue 7 years ago • 5 comments
trafficstars

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 avatar May 06 '18 12:05 ghost

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 avatar May 06 '18 12:05 ghost

also the voxel source files for magica ?

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

ghost avatar May 06 '18 12:05 ghost

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 avatar Aug 27 '18 06:08 ajeecai

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

fogleman avatar Aug 27 '18 14:08 fogleman

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

ajeecai avatar Aug 27 '18 15:08 ajeecai