Re: [Jprogramming] OpenGL

2020-02-28 Thread bill lam
Right, format is rgba, but alpha channel not enabled in shader.ijs it needs to add 2 lines, glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA; GL_ONE_MINUS_SRC_ALPHA otherwise alpha is ignored. Fri, 28 Feb 2020, Raul Miller написал(а): > On Fri, Feb 28, 2020 at 2:09 PM Brian Schott wrote: > > Of course

Re: [Jprogramming] OpenGL

2020-02-28 Thread Thomas McGuire
I added your tetrahedron object data into my test file for shader.ijs. The goal was to get a tetrahedron and a cube up there rotating. What I got was 2 badly formed tetrahedron rotating. I had thought from my reading that the shader should keep these entities distinct. I don’t know why I can’t

Re: [Jprogramming] OpenGL

2020-02-28 Thread bill lam
It is shown up at the bottom, because we have a habit of top posting. Fri, 28 Feb 2020, Raul Miller написал(а): > And... this shows up in the forum archive -- not as an attachment, but > as the tail end of my post. > > http://jsoftware.com/pipermail/programming/2020-February/055196.html > > So,

Re: [Jprogramming] OpenGL

2020-02-28 Thread Brian Schott
Raul, My problems with color may be different from the ones you mention. In the pair of lines below in the shader.ijs program, the first is the original line and the second is the line that gives some, but CRAZY, uniform face color. NB. glVertexAttribPointer colorAttr; 3; GL_FLOAT; 0; 0; 0 glVert

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
On Fri, Feb 28, 2020 at 2:09 PM Brian Schott wrote: > Of course I am still struggling with painting the faces of the tetrahedrons > as solid colors. They are my tentative turtles. I am now wondering if my > problem is related to the use of four-element color vectors instead of > three element. I h

Re: [Jprogramming] OpenGL

2020-02-28 Thread Brian Schott
Thomas, I agree with Bill that this is a great step forward in understanding how to use opengl. My main interest is in doing a turtle graphics app which enables multiple turtles to appear on the screen. In the previous version I had to keep track of the position and heading of each turtle for eac

Re: [Jprogramming] OpenGL

2020-02-28 Thread 'Jim Russell' via Programming
I got the short .txt file as an attachment, which opened when asked. > On Feb 28, 2020, at 1:16 PM, Raul Miller wrote: > > Here's the same file with a .txt extension. -- For information about J forums see http://www.jsoftware.c

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
And... this shows up in the forum archive -- not as an attachment, but as the tail end of my post. http://jsoftware.com/pipermail/programming/2020-February/055196.html So, that's promising. Thanks, -- Raul On Fri, Feb 28, 2020 at 1:15 PM Raul Miller wrote: > > I attached an .ijs > > Here's t

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
I attached an .ijs Here's the same file with a .txt extension. Thanks, -- Raul On Fri, Feb 28, 2020 at 12:31 PM 'robert therriault' via Programming wrote: > > Hey Raul, > > I think that Bill was suggesting that you convert the .ijs file to .txt > before attaching. Did you attach a .txt versi

Re: [Jprogramming] OpenGL

2020-02-28 Thread 'robert therriault' via Programming
Hey Raul, I think that Bill was suggesting that you convert the .ijs file to .txt before attaching. Did you attach a .txt version or the .ijs version of the file. Cheers, bob > On Feb 28, 2020, at 09:23, Raul Miller wrote: > > And... I do not see the attachment at > http://jsoftware.com/pipe

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
And... I do not see the attachment at http://jsoftware.com/pipermail/programming/2020-February/055193.html The other copy seems to indicate that my attachment got the mime type "application/octet-stream", despite it being text content (I was hoping for "text/plain".) That said, ... I should proba

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
Hmm... I am attaching an example .ijs file to this response. I am also bcc'ing a copy of this message to an alternate email address, so that I can see how it gets treated outside the forums. Will the attachment show up at http://jsoftware.com/pipermail/programming/2020-February/date.html? (I wil

Re: [Jprogramming] OpenGL

2020-02-28 Thread bill lam
I think J forum actually accept text file attachments. Attach .ijs file as .txt file probably work if email client set mime type correctly. Fri, 28 Feb 2020, Raul Miller написал(а): > This is getting to be long enough that it might help to use a resource > like github (either a repository or a gis

Re: [Jprogramming] OpenGL

2020-02-28 Thread Raul Miller
This is getting to be long enough that it might help to use a resource like github (either a repository or a gist) or even pastebin (rather than email) to distribute it. (I'm still getting going for today, and haven't actually tried this, yet. But I'm anticipating some difficulties separating text

Re: [Jprogramming] modifiers

2020-02-28 Thread Raul Miller
Here's a better illustration of the problem: example=: ((3 ar)`) (`(5 ar))(`:6) 0!:0 'example2=:',5!:5<'example' + example 8 + example2 |domain error: example2 Thanks, -- Raul On Thu, Feb 27, 2020 at 10:15 PM 'Pascal Jasmin' via Programming wrote: > > the bug is the display of > >

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread chris burke
This works for me. Lets move this to general and discuss there. On Fri, Feb 28, 2020 at 7:49 AM 'Michael Day' via Programming wrote: > > But - in jconsole, as instructed at > > https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install/2 Slim vs Full > Builds : > >install'full' > Updating ser

Re: [Jprogramming] modifiers

2020-02-28 Thread Hauke Rehr
that’s the way I had done it in the first place, only in one line 2 : '1 : (… '' (u A)~ '' … )' What I forgot was to keep in mind what parts of speech I’m dealing with so I forgot to parenthesize the noun to the right; in a simple test case I said i.3 to the right and the modifier grabbed the i. r

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread 'Michael Day' via Programming
But - in jconsole, as instructed at    https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install/2 Slim vs Full Builds :   install'full' Updating server catalog... Installing 1 package Downloading base library... Installing base library... Done. Installing JQt binaries... Finished install of JQt b

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread 'Michael Day' via Programming
Oh, I'd forgotten that possibility. Thanks to you & BIll, MIke On 28/02/2020 15:10, chris burke wrote: This entry in your J version Qt IDE: 1.8.5s/5.12.6 indicates that you have the slim qtide, and need the full version for webview. See https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install.

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread bill lam
You had installed the slim version which doesn't have webview/browser. You need to installed the full jqt if you want webview. On Fri, Feb 28, 2020, 10:40 PM 'Michael Day' via Programming < programm...@jsoftware.com> wrote: > Wishing to visualise a set of pairs of integers as a graph, I > discov

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread chris burke
This entry in your J version Qt IDE: 1.8.5s/5.12.6 indicates that you have the slim qtide, and need the full version for webview. See https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install. On Fri, Feb 28, 2020 at 6:40 AM 'Michael Day' via Programming wrote: > > Wishing to visualise a set of pa

Re: [Jprogramming] Performance monitor missing "viewtotal_jpm_"?

2020-02-28 Thread Henry Rich
Just this week I found a problem with the 'here' accounting in showdetail.  The new base library isn't available yet, but the change was small: replace the line her=. 2 >: bgn usage end with her =. 1 = +/\ bgn - end If that doesn't help, see if you can create a reproducible testcase, perhap

Re: [Jprogramming] OpenGL

2020-02-28 Thread bill lam
1&fc convert j double number to single precision bit pattern because single precision is used in kernels. Double precision is not well supported in low-end GPU. If 1&fc is omitted, GPU will interpret the buffer of double precision as single precision bit patterns. On Fri, Feb 28, 2020, 9:52 PM Bri

[Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread 'Michael Day' via Programming
Wishing to visualise a set of pairs of integers as a graph,  I discovered graphviz hiding among the addons. I think I've installed it - ie update the addon,  and then:    load 'c:/d/j901/addons/graphics/graphviz/graphviz.ijs'    getbin_pgraphview_'' Graphviz binaries installed. But then:    gr

Re: [Jprogramming] OpenGL

2020-02-28 Thread Brian Schott
All, With my tetrahedron example I have the following completely different color scheme. colorData=: 1&fc ,1,"1~_3]\3#"2] 0&". ;._2 [ 0 : 0 1 0 0 0 1 0 1 1 1 0 1 1 ) This color scheme uses length 4 vectors instead of length 3 vectors: glVertexAttribPointer colorAttr; 4; GL_FLOAT; 0; 0; 0 The go

Re: [Jprogramming] OpenGL

2020-02-28 Thread Brian Schott
Bill, especially (Thomas, Raul, and others), Your comment regarding trying a simpler figure and simplifying the color has led me to consider several alternatives. Below I show a revised script which uses a tetrahedron (4 faces) and some color changes. I think the tetrahedron is mostly working for

Re: [Jprogramming] Performance monitor missing "viewtotal_jpm_"?

2020-02-28 Thread 'Mike Day' via Programming
FWIW, I usually use start_jpm_ 1e8. If its tables overflow, jpm returns a message * to that effect when I try showdetail_jpm_ ‘foo’ I would then try start_jpm_ 1e9 ... But I don’t recall using 6!:10, at least, not explicitly. Mike * Eg, starting with an obviously too low value, start_jpm

Re: [Jprogramming] OpenGL

2020-02-28 Thread bill lam
Thomas, thank you very much for the detail explanation. Fri, 28 Feb 2020, Thomas McGuire написал(а): > At first I thought I would have to. But after doing some searching on shaders > and OpenGL it turns out that if you don’t mind using the same shader, you can > just send multiple objects in and

Re: [Jprogramming] OpenGL

2020-02-28 Thread Thomas McGuire
At first I thought I would have to. But after doing some searching on shaders and OpenGL it turns out that if you don’t mind using the same shader, you can just send multiple objects in and different model-views into the original kernel (the GLSL code you are referring to). It gets a little cra

Re: [Jprogramming] Performance monitor missing "viewtotal_jpm_"?

2020-02-28 Thread Devon McCormick
I tried start_jpm_ 1e8 and the results, at least the top-level ones, passed a basic sanity test by showing 46 or so seconds which matches what I see with 6!:2. At least the relative timings seem consistent and make sense. On Fri, Feb 28, 2020 at 1:45 AM bill lam wrote: > When starting PM, it