POV-Ray : Newsgroups : povray.general : stacked prisms Server Time
15 May 2024 14:49:16 EDT (-0400)
  stacked prisms (Message 1 to 7 of 7)  
From: Leroy
Subject: stacked prisms
Date: 1 May 2024 15:10:00
Message: <web.66329231622060268177b427f712fc00@news.povray.org>
I was going through my old pov files and ran across a file that takes an array
of vectors that defines a prism size and height that's is then stacked onto the
next prism made. It uses the data from a single prism for the shape.And uses
conic_spline so each prism can angle in & out as needed. It can make nice gem
stones.
 I was thinking about putting it on my web page but it needs a lot of cleaning
up and some documentation. Also to really make it easy to use you need my
PolPrm.exe
program to create the data file that it uses.

Is it worth the trouble?


Post a reply to this message

From: yesbird
Subject: Re: stacked prisms
Date: 2 May 2024 02:39:19
Message: <66333517@news.povray.org>
On 01/05/2024 22:04, Leroy wrote:
> Is it worth the trouble?
>

Hi, Leroy !

It's very in time question :).
For a long time I postponed experiments with spectral rendering mostly
for gems: https://www.lilysoft.org/CGI/SR/Spectral%20Render.htm

Few days ago I've started to work with it and results are
'brilliant' for me :), so now I am very serious about 'gems
manufacturing' and planning to include it into:
https://povlab.online/
as separate domain ('gems.povlab.online').

Also I'm exploring this tools for creating proper gems geometry:
https://www.gemcad.com/ (has good set of examples).
https://gemcutstudio.com/ (has much better GUI and export to obj).
(fortunately they have 30 day trying period).

Guess your works can help me on this way.

PS: Thanks to Cousin Ricky for this modification:
https://github.com/CousinRicky/POV-SpectralRender-mods
--
YB


Post a reply to this message


Attachments:
Download 'amethyst.png' (144 KB)

Preview of image 'amethyst.png'
amethyst.png


 

From: yesbird
Subject: Re: stacked prisms
Date: 4 May 2024 10:06:28
Message: <663640e4$1@news.povray.org>
On 02/05/2024 09:39, yesbird wrote:
> Also I'm exploring this tools for creating proper gems geometry:
> https://gemcutstudio.com/ (has much better GUI and export to obj).
> (fortunately they have 30 day trying period).

... and now going to write gcs2pov converter for GemCut studio files,
short description at the very end of this manual:
http://www.gemcutstudio.com/app_download/UserManual_v100.pdf

Here is a great source of ready-to-use designs (unfortunately in old
GemCad *.gem format):
https://www.gemologyproject.com/wiki/index.php?title=Faceting_Designs

Example of modern *.gcs format in attachment.
--
YB


Post a reply to this message


Attachments:
Download 'asahi.gcs.txt' (33 KB)

From: Leroy
Subject: Re: stacked prisms
Date: 4 May 2024 16:40:00
Message: <web.66369cb44f5feb849abbfec4f712fc00@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> On 01/05/2024 22:04, Leroy wrote:
> > Is it worth the trouble?
> >
>
> Hi, Leroy !
> Guess your works can help me on this way.
>
> YB
 Stacked prisms makes really simple gems stones, Facets on each level being the
same angle. After you posted here, I tried to make some good looking gems on my
winXp and gave up after a render for 9 min and wasn't a quarter done. I done a l
lot better with my windows 10 64bit. You already probably have gems that look
better.
 I made stacked prism to make funky shapes, like fancy post caps.
Looking forward to seeing what you come up with.

I attached my lame attemp


Post a reply to this message


Attachments:
Download 'gems.png' (62 KB)

Preview of image 'gems.png'
gems.png


 

From: yesbird
Subject: Re: stacked prisms
Date: 5 May 2024 05:18:36
Message: <66374eec@news.povray.org>
On 04/05/2024 23:38, Leroy wrote:
>   I made stacked prism to make funky shapes, like fancy post caps.
> Looking forward to seeing what you come up with.
> 
> I attached my lame attemp

Hi, Leroy !

I like you prism-based approach and result of attempt is promising.

Also I discovered, that Gemcad is free(!) now:
https://www.gemcad.com/purchase.html
and is able to export DXF, so I am working on simple dxf2pov converter
to get professional gems geometry, will notify when finish.

If you are interesting in 'geming', here are great sources of
ready-to-use designs:
https://www.gemologyproject.com/wiki/index.php?title=Faceting_Designs
http://www.facetdiagrams.org/database/

"Diamonds Are Forever" (c).
--
YB


Post a reply to this message


Attachments:
Download 'diamonds_enhanced.png' (130 KB)

Preview of image 'diamonds_enhanced.png'
diamonds_enhanced.png


 

From: yesbird
Subject: Re: stacked prisms
Date: 5 May 2024 05:21:32
Message: <66374f9c@news.povray.org>
On 04/05/2024 23:38, Leroy wrote:
>   I made stacked prism to make funky shapes, like fancy post caps.
> Looking forward to seeing what you come up with.
> 
> I attached my lame attemp

Hi, Leroy !

I like your prism-based approach and result of attempt is promising.

Also I discovered, that Gemcad is free(!) now:
https://www.gemcad.com/purchase.html
and is able to export DXF, so I am working on simple dxf2pov converter
to get professional gems geometry, will notify when finish.

If you are interesting in 'geming', here are great sources of
ready-to-use designs:
https://www.gemologyproject.com/wiki/index.php?title=Faceting_Designs
http://www.facetdiagrams.org/database/

"Diamonds Are Forever" (c).
--
YB


Post a reply to this message


Attachments:
Download 'diamonds_enhanced.png' (130 KB)

Preview of image 'diamonds_enhanced.png'
diamonds_enhanced.png


 

From: ingo
Subject: Re: stacked prisms
Date: 5 May 2024 06:30:00
Message: <web.66375ea04f5feb8417bac71e8ffb8ce3@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:

Don't know whether it fits your use, several years ago I made a test scene for
creating a single voronoi cell. These are rather random, but with regular data
you can create all kind of diamond like shapes. There are several versions and I
like the intersection of planes the most.


---%<------%<-----%<---
# Single Voronoi Cell
# various methods

#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
#include "math.inc"
#include "rand.inc"
#include "functions.inc"
#include "transforms.inc"

camera {
  perspective angle 11
  location  <0,0,-25>
  look_at   <0,0,  0>
}
light_source{< -300, 3000,   0> rgb <0.3,0.3,0.2>}
light_source{< 3000,  300,-500> rgb .5}
light_source{<  300,-3000,   0> rgb <0.2,0.2,0.4>}

#declare Point = <0,0,0>;
#declare Stream = seed(7);
#declare N=22;
#declare arrNeighbours = array[N];
#for(I,0,N-1)
  #declare arrNeighbours[I] = VRand_On_Sphere(Stream)/2;
#end

//intersection of planes
intersection{
  #for(I,0,N-1)
    #declare Neighbour=arrNeighbours[I];
    #declare Distance = vlength(Neighbour);
    #declare Normal = vnormalize(Neighbour);
    plane{Normal, Distance pigment{rgb 1}}
  #end
  translate <-1,1,0>
}

// intersection of planes as isosurface
#declare fnNeighbours = array[N];
#for(I,0,N-1)
  #declare Neighbour = arrNeighbours[I];
  #declare Distance = vlength(Neighbour);
  #declare Normal = vnormalize(Neighbour);
  #declare nX = Normal.x;
  #declare nY = Normal.y;
  #declare nZ = Normal.z;
  #declare fnNeighbours[I]=function{(nX*x+nY*y+nZ*z)-Distance};
#end

#declare fnIntersection = function{
  max(
    #for(I,0,N-1,1)
      #if(I>0)
        , fnNeighbours[I](x,y,z)
      #else
        fnNeighbours[I](x,y,z)
      #end
    #end
  )
}

isosurface {
  function{
    fnIntersection(x,y,z)
  }
  contained_by {sphere{0,1.5}}
  max_gradient 2
  pigment{rgb 1}
  translate <1,1,0>
}

// as iso surface planes with "displacement"
isosurface {
  function{
    fnIntersection(x,y,z)-(f_noise3d(x*10, y*10, z*10)*0.1)
  }
  contained_by {sphere{0,1.5}}
  max_gradient 2
  pigment{rgb 1}
  translate <-1,-1,0>
}

// as blobs
blob{
  threshold .40
  sphere{Point,1,1}
  #for(I,0,N-1)
    #declare Neighbour = arrNeighbours[I];
    #declare Distance = vlength(Neighbour);
    #declare Normal = vnormalize(Neighbour);
    sphere{0,1,-0.8 scale <1,0.2,1> Point_At_Trans(Normal) translate
Normal*Distance*1.2}
  #end
  pigment{rgb 1}
  translate<1,-1,0>
}


#for(I,0,N-1,1)
  sphere{arrNeighbours[I],0.01 pigment{rgb x} translate<-1, 1,0>}
  sphere{arrNeighbours[I],0.01 pigment{rgb x} translate< 1,-1,0>}
  sphere{arrNeighbours[I],0.01 pigment{rgb x} translate< 1, 1,0>}
#end
---%<------%<-----%<---

ingo


Post a reply to this message

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