POV-Ray : Newsgroups : povray.binaries.images : Yes-library: Spiral worm Server Time
22 Dec 2024 13:42:25 EST (-0500)
  Yes-library: Spiral worm (Message 1 to 10 of 10)  
From: yesbird
Subject: Yes-library: Spiral worm
Date: 8 Mar 2023 20:41:26
Message: <64093946@news.povray.org>
Hi,
New life form is born this night: spiral worm, implemented as
parameterized macro, code is here:
https://github.com/syanenko/Yes-World/blob/main/spiral_worm.pov
https://github.com/syanenko/Yes-World/blob/main/include/spiral_worm.inc

Now he is waiting for animation, which looks very promising :)
--
YB


Post a reply to this message


Attachments:
Download 'spiral_worm_1920x1080.png' (1749 KB)

Preview of image 'spiral_worm_1920x1080.png'
spiral_worm_1920x1080.png


 

From: yesbird
Subject: Re: Yes-library: Spiral worm
Date: 8 Mar 2023 21:45:40
Message: <64094854@news.povray.org>
On 09/03/2023 04:41, yesbird wrote:
> New life form is born this night: spiral worm, ...

Top view.
--
YB


Post a reply to this message


Attachments:
Download 'spiral_worm_1920x1080_top.png' (1381 KB)

Preview of image 'spiral_worm_1920x1080_top.png'
spiral_worm_1920x1080_top.png


 

From: Mike Miller
Subject: Re: Yes-library: Spiral worm
Date: 8 Mar 2023 23:20:00
Message: <web.64095e2d8e65c93a30d213ddabc9342@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> On 09/03/2023 04:41, yesbird wrote:
> > New life form is born this night: spiral worm, ...
>
> Top view.
> --
> YB

I like the forms ...very nice. Thanks for the macro also.
Mike


Post a reply to this message

From: yesbird
Subject: Re: Yes-library: Spiral worm
Date: 8 Mar 2023 23:37:46
Message: <1258d9bc-67a7-22de-cd49-173b010b7600@gmail.com>
On 09/03/2023 07:18, Mike Miller wrote:
> I like the forms ...very nice. Thanks for the macro also.

Thanks, it needs some polishing, parameters and control are non
intuitive ...
--
YB


Post a reply to this message

From: Kenneth
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 03:30:00
Message: <web.6409984f8e65c939b4924336e066e29@news.povray.org>
They are fascinating shapes and colors. Thanks for posting the code. I am
looking forward to going through it, to learn some new things.


Post a reply to this message

From: yesbird
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 05:17:11
Message: <508e6dc8-c033-eed4-127f-5121472901f3@gmail.com>
On 09/03/2023 11:26, Kenneth wrote:
> They are fascinating shapes and colors. Thanks for posting the code. I am
> looking forward to going through it, to learn some new things.

Thank you, Kenneth, I'm not sure, that you will find something new,
having your POV experience :). Code is raw and needs some refactoring,
please ask me questions, if you have them.

But if you like worms, you may also look at this demo, I'm planing to
combine them:
https://github.com/syanenko/pov-utils/blob/main/c4d/cinema2pov/data/helix_demo.pov
--
YB


Post a reply to this message


Attachments:
Download 'helix_demo.png' (121 KB)

Preview of image 'helix_demo.png'
helix_demo.png


 

From: Kenneth
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 17:05:00
Message: <web.640a56d98e65c939b4924336e066e29@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> They are fascinating shapes and colors. Thanks for posting the code. I am
> looking forward to going through it, to learn some new things.

I discovered something new today...about Github. I am a 'newbie' when it comes
to downloading an in-line scene file there. (Github adds line numbers preceding
each line of code, which would be a problem when simply copying it to run in
POV-ray.) But by hitting the 'raw' button there, the code comes up as a nice
clean text file ready for downloading. Easy!

Looking at your code, I see that your #declared variables are all written with
lower-case letters. I would suggest that you write them with at least the first
letter capitalized, because it is certainly possible that you could pick a
variable name that conflicts with one of POV-ray's many built-in keywords (which
are all(?) written in lower-case.)

Personally, I now write most of my variables with all caps, like TEXTURE or
whatever. Others here have different schemes, like preceding the name with a
line segment--     _texture

(Actually, I would write it as MY_TEXTURE or something similar.)

We each have our own way of preventing the name-collision problem.


Post a reply to this message

From: yesbird
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 19:13:33
Message: <3e9f65f4-66e0-19eb-d10d-29e693be7eec@gmail.com>
On 10/03/2023 00:59, Kenneth wrote:
> I discovered something new today...about Github. I am a 'newbie' when it comes
> to downloading an in-line scene file there.

IMHO, if you don't want to clone repository, but want just to play with
code, the better way is to download zipped version (see attachment) -
this way you will not miss any dependencies, like include files, for
example. But cloning has following advantage - you can always see diff
to original after your experiments and easily can revert to it.

I suggest 'GitHub Desktop' with friendly UI:
https://desktop.github.com/

> 
> Looking at your code, I see that your #declared variables are all written with
> lower-case letters.

It's true. Although I'm working under windows now, because sticking to
to ZBrush and C4D in my graphics projects, natively I'm a unix-man,
prefer unix-style and classical 'C' notation, all with small letters and
'_', writing CONSTANTS in capitals, to avoid conflict with reserved
words, I'm using the leading '_'.

The only alternative, I like, is unicode, like it's possible
in Julia language, for example:
https://docs.julialang.org/en/v1/manual/unicode-input/

Btw, this is very perspective and well-thinked language, opposite to
Python, and even has a package with POV support (!):
https://github.com/hyrodium/JuliRay

> We each have our own way of preventing the name-collision problem.

Sure, but sometimes style-guides can help in team-working, especially in
a big projects.
--
YB


Post a reply to this message


Attachments:
Download 'gh.png' (124 KB)

Preview of image 'gh.png'
gh.png


 

From: Kenneth
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 20:45:00
Message: <web.640a8a648e65c939b4924336e066e29@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
>
> IMHO, if you don't want to clone repository, but want just to play with
> code, the better way is to download zipped version (see attachment) -
> this way you will not miss any dependencies, like include files, for
> example...

Hmm. The two Github pages that you linked to do not have the form or layout as
seen in your attachment. Is your screenshot taken from the 'Github Desktop' app?
>
> I suggest 'GitHub Desktop' with friendly UI:
> https://desktop.github.com/

Yes, I saw that; I might even download it! It would help me to understand Github
better. (As you can tell, I know almost nothing about it or how to post anything
there.)
>
>
> > We each have our own way of preventing the name-collision problem.
>
> Sure, but sometimes style-guides can help in team-working, especially in
> a big projects.
>
Yes, I see the advantages of that. (I have never worked on 'team coding
projects' myself.)


Post a reply to this message

From: yesbird
Subject: Re: Yes-library: Spiral worm
Date: 9 Mar 2023 21:00:46
Message: <a56afc11-22dc-0fee-acdc-be79eecd7195@gmail.com>
On 10/03/2023 04:40, Kenneth wrote:
> Hmm. The two Github pages that you linked to do not have the form or layout as
> seen in your attachment. Is your screenshot taken from the 'Github Desktop' app?
No, this is an original GitHub web UI - just select repository name at
the upper left corner ('Yes-World'), and you will see this form.

> Yes, I saw that; I might even download it! It would help me to understand Github
> better. (As you can tell, I know almost nothing about it or how to post anything
> there.)

With 'GitHub Desktop' it is as easy as browsing with Chrome :), please
fill free to ask me questions, if you will choose 'github way'.
--
YB


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.