Log In  

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

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()

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

This demo is obviously a bit more complicated :)

P#27703 2016-08-30 02:42 ( Edited 2017-01-17 22:49)

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. :)

P#27714 2016-08-30 11:46 ( Edited 2016-08-30 15:46)

Ok, now there's a repo!


P#27731 2016-08-30 18:25 ( Edited 2016-08-30 23:50)

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 ...

P#29239 2016-09-24 01:15 ( Edited 2016-09-24 05:15)

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

P#29241 2016-09-24 02:37 ( Edited 2016-09-24 06:37)

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

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

P#29242 2016-09-24 02:41 ( Edited 2016-09-24 06:43)

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 ...

P#29277 2016-09-24 11:49 ( Edited 2016-09-24 15:49)

rename as .p8

P#29278 2016-09-24 11:51 ( Edited 2016-09-24 15:51)


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)



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

P#29280 2016-09-24 11:55 ( Edited 2016-09-24 15:56)

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

P#29432 2016-09-26 12:34 ( Edited 2016-09-26 16:34)

This is very nice.

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

P#35887 2017-01-16 20:28 ( Edited 2017-01-17 01:28)

Has anyone been able to fix the warping bug?

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

P#35897 2017-01-16 23:26 ( Edited 2017-01-17 04:26)

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!

P#35899 2017-01-16 23:38 ( Edited 2017-01-17 04:39)

@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

P#35951 2017-01-17 17:49 ( Edited 2017-01-17 22:49)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-26 23:09:11 | 0.019s | Q:29