kaveh808 / kons-9

Common Lisp 3D Graphics Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stable kons-9 commit

awolven opened this issue · comments

What is the most recent stable kons-9 commit, where everything was testing fine?

The current main branch.

The demos work on my machine, and I pushed to main on Friday.

We're using point-origin.lisp so it's p:+ now. But I just checked and p+ also works.

To run the demos:
(in-package :kons-9)
(run)
Then eval the demos.

I'll run some tests in the morning.

That's a good candidate for the next thing to add to the test suite. :-) I can pick up but maybe you are interested in that topic @awolven ?

@awolven The snippet you posted works fine for me on Linux with commit 308b121 i.e. current tip of the main branch. I wonder what is different on your machine? (Is it a platform-related issue?)

Result:

Screenshot from 2022-11-07 14-37-00

Tagging @JMC-design who did the point-origin port, in case he has any ideas of what may be going on.

I'm on a new machine. I just cloned the repo and ran it. Everything seems to be fine. origin is in depends, the nickname is there and the demos work.
This seems to be an old file @awolven is looking at.

Yes, I'm interested in expanding the test suite, if that is what you're asking.

Yes, there is and introductory discussion in #112, you can skim towards the end to find the interesting bits. I'm also happy to answer questions and provide any help. We could also pair some time over zoom if you're interested, I believe it's a great way to quickly get started!

p+ is defined in point-origin:

(defmacro def-point-func-1 (op)
  `(defun ,(concat-syms 'p op) (p val)
     (ctypecase val
       (p:vec (,(find-symbol (symbol-name op) 'p) p val))
       (number (p! (,op (p:x p) val)
                   (,op (p:y p) val)
                   (,op (p:z p) val))))))

(def-point-func-1 +)
(def-point-func-1 -)
(def-point-func-1 *)
(def-point-func-1 /)

@mikelevins Are you having any trouble running on Windows?

Thanks for catching this Andrew.

I can make this change in my next merge with main, unless you prefer making an issue and a pull request?

Go ahead and make issues for the double-float issue and Z-up as an option.

Did this macro fix your problem on Windows?