Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Does extempore "graphics pipeline" still work?

36 views
Skip to first unread message

Extempore

unread,
Feb 25, 2024, 3:42:05 PM2/25/24
to Extempore
Hello all
Curiosity only looking at this thread:
In the past I have run "~/extempore/examples/external/xtmrender1.xtm"
and got a nice slowly rotating picture of peppino.

Tried it again after updating to MacOS 13.6.4 Ventura and I get  only a black graphics window and no peppino.
Everything seems to load fine intil the final gl_draw_loop

Then I get this repeated error message:

Error setting uniforms! in xtm_draw_mesh: Invalid Value
Error drawing VAO!: Invalid Operation
Error drawing XTMMesh!: Invalid Value
Error drawing XTMMesh!: Invalid Value
Error drawing XTMMesh!: Invalid Value
error setting tex parameters: Invalid Value
Error binding vertex array: Invalid Value
Error enablling attrib arrays in VAO!: Invalid Operation
Error drawing VAO!: Invalid Operation
Error disabling attrib arrays in VAO!: Invalid Operation
Error setting up envmap!: Invalid Value
Error setting up projection texture: Invalid Value
Error before drawing XTMModel: Invalid Value
Error drawing XTMMesh!: Invalid Value
Error BEFORE drawing XTMMesh!: Invalid Value
error setting tex parameters: Invalid Value
Error setting uniforms! in xtm_draw_mesh: Invalid Value

Does anyone have any suggestions?

Ben says his glfw3.xtm is setup for  GLFW 3.2.1

The latest is  GLFW 3.4

My macbook air has intel chip.


Michele Pasin

unread,
Feb 26, 2024, 1:41:34 PM2/26/24
to extemp...@googlegroups.com
I never used that library, but for me it fails even before that: 

(sys:load "libs/external/glfw3.xtm")
(sys:load "libs/core/scheduler.xtm")


Traceback: 

```
Loading xtmglfw3 library... function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type <- sys:load
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- impc:ti:run-type-check <- impc:ti:get-expression-type
done in 1.534112 seconds
sys:load notification glfw3 already loaded
Loading xtmrational library... done in 1.512630 seconds
sys:load notification rational already loaded
sys:load notification base already loaded
function(cdr): argument 1 must be: pair
argument values: (()) #<PROC cdr>
Trace: better-append <- impc:ti:handle-forced-types <- impc:ti:run <- sys:load
stack-catch: ()
stack-catch: ()
stack-catch: ()
eval: unbound variable: run_main_event_loop
Trace:
```

--
You received this message because you are subscribed to the Google Groups "Extempore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to extemporelan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/extemporelang/469e6a60-3675-474c-9118-f2f91feaeb5bn%40googlegroups.com.

George

unread,
Feb 26, 2024, 3:28:11 PM2/26/24
to Extempore
Hello again Michelle
Nice to hear from you.
I'm running through it now ..........

INFO: server: accepted new connection to primary process
Loading xtmglfw3 library... done in 1.646909 seconds

sys:load notification glfw3 already loaded 
...........................
sys:load notification rational already loaded
sys:load notification base already loaded
Compiled:  thread_native_call >>> [i8*,i8*]*
Compiled:  thread_native_call_with_zone >>> [i8*,i8*]*
GenrFunc:  async >>> [[!a]*,[!a]*]*
GenrFunc:  async >>> [[!a]*,[!a,!b]*,!b]*
etc ...........................
SetAlias:  MAINEVT >>> [void,double]*
Compiled:  clock_scheduler_main_callback >>> [void]*
Compiled:  run_main_event_loop >>> [void]*
XtmMacro:  sched_main >>>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
That all goes well to this point. Do you have the most recent extempore v0.89? 
I'm using Visual Studio Code.
All the rest seems OK
Although there are some complaints about "No bones" in Pepino. Don't know if that means anything.
...........................................
Then line 69:
(gl_draw_loop (now) (/ 1.0 30.0))
..................
But THIS TIME IT WORKS!! It is rotating nicely - a bit jumpyMY-pepino.png
MAYBE I didn't wait long enough last time.

I'll try xtmrender2.xtm and others to see if they work. 
Following Andrew's suggestion I'm looking at Blender which goes nicely so far. I'm not much into graphics
but thought it would be fun to try something.

Michele let me know if you get any better result

Regards
George

Michele Pasin

unread,
Feb 27, 2024, 9:13:59 AM2/27/24
to extemp...@googlegroups.com
Glad to hear it's working for you! 
I'll give it another try over the weekend..

Reply all
Reply to author
Forward
0 new messages