Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If you are afraid of loneliness, don't marry." -- Chekhov


devel / comp.lang.tcl / Re: Tcl3d orthographic projection

SubjectAuthor
* Tcl3d orthographic projectionShaun Kulesa
`* Re: Tcl3d orthographic projectionPaul Obermeier
 `* Re: Tcl3d orthographic projectionShaun Kulesa
  `* Re: Tcl3d orthographic projectionPaul Obermeier
   `* Re: Tcl3d orthographic projectionShaun Kulesa
    `* Re: Tcl3d orthographic projectionPaul Obermeier
     `- Re: Tcl3d orthographic projectionShaun Kulesa

1
Tcl3d orthographic projection

<7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21469&group=comp.lang.tcl#21469

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:4e9:b0:73b:7f8c:5571 with SMTP id b9-20020a05620a04e900b0073b7f8c5571mr1638105qkh.6.1678573979968;
Sat, 11 Mar 2023 14:32:59 -0800 (PST)
X-Received: by 2002:a81:4317:0:b0:52e:dddf:82b9 with SMTP id
q23-20020a814317000000b0052edddf82b9mr19846965ywa.10.1678573979696; Sat, 11
Mar 2023 14:32:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sat, 11 Mar 2023 14:32:59 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=147.147.124.7; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 147.147.124.7
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
Subject: Tcl3d orthographic projection
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Sat, 11 Mar 2023 22:32:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1163
 by: Shaun Kulesa - Sat, 11 Mar 2023 22:32 UTC

Hello,

I would like to use orthographic projection in my geometry shader. I am using the latest version of Tcl3d.

How can I generate a orthographic projection in Tcl?

Thanks.

Re: Tcl3d orthographic projection

<tukstn$34jq4$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21472&group=comp.lang.tcl#21472

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: Tcl3d orthographic projection
Date: Sun, 12 Mar 2023 17:00:00 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <tukstn$34jq4$1@dont-email.me>
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 12 Mar 2023 15:59:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d965dc8de6b37e8b3f1fa0e7edcc414";
logging-data="3297092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WfNIPCIYUEvGmcXJPbExv6xe1BTfIvu8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:ysZ0ZkkWN7+AH+ZBEgb4U9wRJZU=
In-Reply-To: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
 by: Paul Obermeier - Sun, 12 Mar 2023 16:00 UTC

Am 11.03.2023 um 23:32 schrieb Shaun Kulesa:
> Hello,
>
> I would like to use orthographic projection in my geometry shader. I am using the latest version of Tcl3d.
>
> How can I generate a orthographic projection in Tcl?
>
> Thanks.

Hi Shaun,

See OpenGL functions glFrustum (perspective projection) vs. glOrtho (orthographic projection).
There are also corresponding GLU functions gluPerspective vs gluOrto2D.

For pure shader implementations there are tcl3dPerspective and tcl3dOrtho, which you can use to set
the perspective matrix via glUniformMatrix4fv.
See the Nopper demos for examples.

Paul

Re: Tcl3d orthographic projection

<0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21474&group=comp.lang.tcl#21474

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:1419:b0:71f:b89c:4f31 with SMTP id d25-20020a05620a141900b0071fb89c4f31mr2473420qkj.11.1678646998722;
Sun, 12 Mar 2023 11:49:58 -0700 (PDT)
X-Received: by 2002:a05:6902:208:b0:acd:7374:f154 with SMTP id
j8-20020a056902020800b00acd7374f154mr19719758ybs.7.1678646998442; Sun, 12 Mar
2023 11:49:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 12 Mar 2023 11:49:58 -0700 (PDT)
In-Reply-To: <tukstn$34jq4$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=87.115.149.231; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 87.115.149.231
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com> <tukstn$34jq4$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
Subject: Re: Tcl3d orthographic projection
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Sun, 12 Mar 2023 18:49:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1724
 by: Shaun Kulesa - Sun, 12 Mar 2023 18:49 UTC

Hello, thank you for giving me the names of the commands, I couldn't find these on the docs pdf I was looking at before.

Now I have found a document which matches to your tcl3dOrtho function. https://www.tcl3d.org/download/tcl3d-0.5.0.distrib/Tcl3D-Manual-0.5.0.pdf

For most of the functions on this document, the arguments are not provided. I have to give no arguments in my code so it tells me which order they go in as an error.
Is there better documentation or is this the best there is?

Thanks for your hard work to make the higher versions of OpenGL possible to use in Tcl.

Re: Tcl3d orthographic projection

<tuleef$37kk6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21481&group=comp.lang.tcl#21481

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: Tcl3d orthographic projection
Date: Sun, 12 Mar 2023 21:59:03 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <tuleef$37kk6$1@dont-email.me>
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
<tukstn$34jq4$1@dont-email.me>
<0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 12 Mar 2023 20:58:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d965dc8de6b37e8b3f1fa0e7edcc414";
logging-data="3396230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p6jZEDS0uw1hVd3UONHOzaNdPbQ0QCFk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:uLCmFmnjIP5Q9uT4+IQ/C5OETGM=
In-Reply-To: <0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
 by: Paul Obermeier - Sun, 12 Mar 2023 20:59 UTC

Am 12.03.2023 um 19:49 schrieb Shaun Kulesa:
> Hello, thank you for giving me the names of the commands, I couldn't find these on the docs pdf I was looking at before.
>
> Now I have found a document which matches to your tcl3dOrtho function. https://www.tcl3d.org/download/tcl3d-0.5.0.distrib/Tcl3D-Manual-0.5.0.pdf
>
> For most of the functions on this document, the arguments are not provided. I have to give no arguments in my code so it tells me which order they go in as an error.
> Is there better documentation or is this the best there is?
>
> Thanks for your hard work to make the higher versions of OpenGL possible to use in Tcl.

Although the Tcl3D manual is a little bit out-dated in some respects, the description of the Tcl wrapping in chapter 3 is still valid.
So you have to look at the C definition of the OpenGL function you want to use and transform the functions parameters into the
corresponding Tcl types. In most cases (having simple parameter types like ints or floats) this is quite straight-forward.

There are also lots of Tcl3D scripts available as examples: https://www.tcl3d.org/demos.html

Paul

Re: Tcl3d orthographic projection

<107f80e8-b698-4219-91b0-00afe57cd713n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21519&group=comp.lang.tcl#21519

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a5d:54ce:0:b0:2ce:817b:846d with SMTP id x14-20020a5d54ce000000b002ce817b846dmr67094wrv.4.1678824175530;
Tue, 14 Mar 2023 13:02:55 -0700 (PDT)
X-Received: by 2002:a25:9b48:0:b0:a8a:a652:2a69 with SMTP id
u8-20020a259b48000000b00a8aa6522a69mr19201663ybo.10.1678824174821; Tue, 14
Mar 2023 13:02:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 14 Mar 2023 13:02:54 -0700 (PDT)
In-Reply-To: <tuleef$37kk6$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=87.115.149.231; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 87.115.149.231
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
<tukstn$34jq4$1@dont-email.me> <0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
<tuleef$37kk6$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <107f80e8-b698-4219-91b0-00afe57cd713n@googlegroups.com>
Subject: Re: Tcl3d orthographic projection
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Tue, 14 Mar 2023 20:02:55 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Shaun Kulesa - Tue, 14 Mar 2023 20:02 UTC

Hello Paul,

I have made a full quad renderer using the geometry shader but the quad does not want to display.
I have looked through my code for the past hour to spot mistakes but I have not located any that I am aware of.

I made the program a zip file, but I can't paste it in here so I will provide a google drive link.

If you could look over it when you have some spare time I would appreciate it, it is only 97 lines and all the shaders should be 100% correct as I used them in a python project which works.

https://drive.google.com/file/d/1kY1ILfce_BVsV1o1fhoYlffqlDzJlrsu/view?usp=sharing

Thanks.

Re: Tcl3d orthographic projection

<tussdl$v6gg$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21534&group=comp.lang.tcl#21534

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: Tcl3d orthographic projection
Date: Wed, 15 Mar 2023 17:40:30 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <tussdl$v6gg$1@dont-email.me>
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
<tukstn$34jq4$1@dont-email.me>
<0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
<tuleef$37kk6$1@dont-email.me>
<107f80e8-b698-4219-91b0-00afe57cd713n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 15 Mar 2023 16:40:21 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="7671ed0bc50270b553ca3d5594baf9bd";
logging-data="1022480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hbll4x8Dfh1HFH2D3DSqhxPu74DJqNs4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:xxyofxZIzoE8/R7mDNtaoIRkmdo=
In-Reply-To: <107f80e8-b698-4219-91b0-00afe57cd713n@googlegroups.com>
 by: Paul Obermeier - Wed, 15 Mar 2023 16:40 UTC

Am 14.03.2023 um 21:02 schrieb Shaun Kulesa:
> Hello Paul,
>
> I have made a full quad renderer using the geometry shader but the quad does not want to display.
> I have looked through my code for the past hour to spot mistakes but I have not located any that I am aware of.
>
> I made the program a zip file, but I can't paste it in here so I will provide a google drive link.
>
> If you could look over it when you have some spare time I would appreciate it, it is only 97 lines and all the shaders should be 100% correct as I used them in a python project which works.
>
> https://drive.google.com/file/d/1kY1ILfce_BVsV1o1fhoYlffqlDzJlrsu/view?usp=sharing
>
> Thanks.

Hi Shaun,

you detected a wrapping error in glVertexAttribPointer.
I work on a fix and will send it to you by private mail.

Paul

Re: Tcl3d orthographic projection

<62b36dad-59e7-4585-93bd-68c34910837cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21535&group=comp.lang.tcl#21535

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:9b:0:b0:3d1:b3d3:207d with SMTP id c27-20020ac8009b000000b003d1b3d3207dmr223336qtg.5.1678903714412;
Wed, 15 Mar 2023 11:08:34 -0700 (PDT)
X-Received: by 2002:a25:8f8c:0:b0:b21:a3b8:45cd with SMTP id
u12-20020a258f8c000000b00b21a3b845cdmr16191494ybl.0.1678903714034; Wed, 15
Mar 2023 11:08:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 15 Mar 2023 11:08:33 -0700 (PDT)
In-Reply-To: <tussdl$v6gg$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=87.115.149.231; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 87.115.149.231
References: <7f37c008-b223-4107-b87a-c1ca0809a30bn@googlegroups.com>
<tukstn$34jq4$1@dont-email.me> <0beefbe6-65a3-4d35-a50b-1f50319d58dbn@googlegroups.com>
<tuleef$37kk6$1@dont-email.me> <107f80e8-b698-4219-91b0-00afe57cd713n@googlegroups.com>
<tussdl$v6gg$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <62b36dad-59e7-4585-93bd-68c34910837cn@googlegroups.com>
Subject: Re: Tcl3d orthographic projection
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Wed, 15 Mar 2023 18:08:34 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1365
 by: Shaun Kulesa - Wed, 15 Mar 2023 18:08 UTC

Thank you, I really appreciate all your responses and help.


devel / comp.lang.tcl / Re: Tcl3d orthographic projection

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor