Log In  


Cart #32219 | 2016-11-05 | Code ▽ | Embed ▽ | No License
22

Big shout out to jdan for Perspective Toy, on which the guts of the library is based on.

This library takes about ~300 tokens without the demo code. It provides a public line and a point drawing function.

Big thanks to jdan - this library is now under CC0.

Example usage:

function _init()
  camera = cameralib.new()
end

function _draw()
  camera:point( {0.5,0.5,0.5} )
  camera:line( {1,1,1}, {-1,-1,-1} )
end

This demo is obviously a bit more complicated :)

22


Move forward into the object and you will start to warp time and space. Stars will reverse their flow of direction and the figure will warp into hyperspace. :)


Ok, now there's a repo!

https://github.com/josefnpat/picocam


Getting that same weird error message here too. Am I the only one getting this ? It shows up in Google Chrome too - so it's not the browser. I hope it doesn't mean ZEP has run out of HD space for carts or something ...


I also can't copy the cart into PICO-8.


.....My, my. This is quite the PNG file.

Why doesn't the submit page even check for valid PNG cartridges...?


Yeah, you're right, Fayne. Can't load the CLIP either.

Let me try to save the .PNG and load it in PICO.

Nope, this program is toast - and I have no idea why ...


rename as .p8


POW !

That got it. Okay thanks UB. I see what happened. Someone uploaded a cart as a .p8.png when actually it was just a .p8.

ZEP could make a check for this I suppose.

(Actual file is CART.p8.png)

LOAD CART

LOADED
WARNING, THIS CART IS MISLABELED. PLEASE RENAME IT TO
CART.P8

I must've made a similar error when I initially posted my 8k save routine.


oh, damn, that's my bad. website doesn't check for mime type :(


This is very nice.

You should add '3d' and 'library' tags to it though, took me ages to find it again :)


Has anyone been able to fix the warping bug?

Things start going funky once camera z goes over zero (it starts as negative)


Hey @ilkke - haven't tried yet - but if you want to give it a shot, you can check out the git repo!

edit: added the tags!


@josefnpat I'm afraid I am not 3d-savvy enough.
My workaround was to scroll the content rather than moving the camera :)
Only works in specific scenarios though



[Please log in to post a comment]