tynet-lichat/stevenchan - IRC Chatlog
Search
Thursday, 26th of January 2023, 4:03:05 UTC
7:23:34
gingerale
Good morning to you as well
7:23:39
gingerale
I hope you slept well
7:25:36
gingerale
I actually managed to fall back asleep after waking up sometime before seven.
9:53:54
shinmera
tired and no motivatino
12:44:31
Colleen
Your fortune for today is: silence
12:44:31
Colleen
Your fortune for today is: silence
14:40:47
Colleen
gamemake itself is amazingly symmetrical.
14:40:47
Colleen
gamemake itself is amazingly symmetrical.
15:38:16
gingerale
I'm trying to figure out how to visualise the contents of an array into a grid on Trial.
15:38:24
gingerale
I just need coloured pixels for it.
15:40:27
gingerale
Ah heck, I can't even define a pool from slime anyways.
15:40:46
gingerale
I suppose I won't bother with this then.
15:41:14
shinmera
what kind of array? like what are you actually trying to do?
15:42:25
gingerale
It's just a 2D array with numbers that I change around. And I wanted to be able to visualise its contents as they change, each number getting its own colour. So I could watch the progress.
15:42:57
gingerale
But I don't want to start a whole new project for this thing I'm hacking together in the repl.
15:43:25
gingerale
Won't I need to define an asset pool to draw anything though?
15:43:39
gingerale
Then I have no idea how to go about it.
15:49:39
shinmera
Eg: (make-instance 'player :texture (make-instance 'texture :width 8 :height 8 :pixel-format :rgb :pixel-type :unsigned-byte :pixel-data (make-array (* 8 8 3) :element-type '(unsigned-byte 8) :initial-element 255)))
15:51:00
gingerale
I'll try that, thank you. Though I'm having some weirdness because the clear colour is always black.
15:53:08
gingerale
Assuming player is a shader-entity, won't it need vertex-entity to it as well? That'd need a vertex-array defined, no?
15:53:19
shinmera
it's what's in the workbench, my friend.
15:53:34
gingerale
On the workbench it uses a mesh asset
15:53:40
gingerale
Which requires a pool.
15:53:54
gingerale
Then you have updated it at some point and I have an old version of trial.
15:54:05
shinmera
no, you can create a vao without an asset.
15:54:31
shinmera
why are you trying to do this without a file, anyhow? The workbench file is there to be messed about with.
15:55:02
shinmera
make-cube returns a geometry, you can change-class that into a vertex-array.
15:55:10
gingerale
Because originally I wasn't going to visualise it and just did whatever I felt like in repl
16:01:54
gingerale
Hmm.. Nothing's getting drawn still.
Thursday, 26th of January 2023, 16:03:05 UTC