View unanswered posts  View active topics

Page 1 of 1

[ 16 posts ] 

Author 
Message 
Stefn

Post subject: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Fri Aug 24, 2012 9:04 am 

Joined: Sun Aug 29, 2010 1:56 pm

First of all, I wish to thank Jaap for Jaap's Puzzle Page and the SphereSymmetries Applet. I created a scriptfile for the PovRay program, which can visualize Jaap's Sphere in other shapes. Attachment:
JaapsSphereIntoShapes.PNG [ 65.12 KiB  Viewed 3308 times ]
The script can take any configuration of Jaap's Sphere Applet, and show it in other outer shapes. I decided to use conecuts (with the conecap (apex) at the origin), because they look equal on the SphereApplet and on the other shape's. Attachment:
spherepov.PNG [ 16.45 KiB  Viewed 3308 times ]
Further examples (just to illustrate it a bit): Attachment:
JaapsSphereIntoShapes1.PNG [ 58 KiB  Viewed 3308 times ]
Attachment:
JaapsSphereIntoShapes2.PNG [ 54.62 KiB  Viewed 3308 times ]
Attachment:
JaapsSphereIntoShapes5.PNG [ 66.76 KiB  Viewed 3308 times ]
Attachment:
JaapsSphereIntoShapes4.PNG [ 85.38 KiB  Viewed 3308 times ]
Attachment:
JaapsSphereIntoShapes.zip [5.9 KiB]
Downloaded 46 times
Thanks also to PovRay (especially for the construction and render capabilities wich made it possible) Andreas Nortmann who encouraged me to post this Jaap's Sphere is at http://www.jaapsch.net/puzzles/sphere.htm
Last edited by Stefn on Wed Nov 20, 2013 9:08 am, edited 21 times in total.


Top 


Andreas Nortmann

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Fri Aug 24, 2012 12:08 pm 

Joined: Mon Aug 02, 2004 7:03 am Location: Koblenz, Germany

Stefan Schwalbe wrote: Andreas Nortmann who encouraged me to post this and which took me no more than two minutes. I do not want to ask about the time you invested. Great work.


Top 


jabeck

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Fri Aug 24, 2012 1:17 pm 

Joined: Sat Feb 03, 2007 10:03 pm Location: Mississippi

Long live POVRAY! Nice work....
_________________ Space for rent


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sun Aug 26, 2012 9:11 am 

Joined: Sun Aug 29, 2010 1:56 pm

jabeck wrote: Long live POVRAY! Nice work.... Yeah, I started loving it when I got my splittings well for the first time. The first successful experiment was, when I splited a cube into two parts in subtracting a thin cuboid from it. The two parts can then be assigned to the cube again and when you do your next splitting, you can split 2 parts into 4 parts and so on. The simple statement is something like: #declare Cube=difference {object{Cube} object{ThinCuboid}}And the picture rendering of PovRay is sooo professional And thanks to everybody that is interested in this thread. Stefan


Top 


Brandon Enright

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sun Aug 26, 2012 12:03 pm 

Joined: Thu Dec 31, 2009 8:54 pm Location: Bay Area, California

Hi Stefan, Thanks SOOO much for putting all of the work into this. It's fantastic. I'm very impressed you wrote the URL parameter parser in POVRay itself rather than writing an external program to parse and emit POVRay code. Your way is very simple and doesn't have any dependencies. I barely know any POVRay but I'm learning here and there thanks to your code and some of Carl's. If you haven't seen, I changed a few lines of your code to generate the images in this thread: viewtopic.php?f=9&t=24206I have a few questions. For each of the solids you've made, you instantiate the object with a "scale" factor. Each object has a different scale. What is this doing? Is it just a fudge to make them all look about the same size or is it needed for something beyond just aesthetics? For the main camera, why are you looking very close to but not directly at the origin: <0.0, 0.01, 0.0> ? Is this just to provide a tiny bit of depth instead of looking at the shape straight on? I determined your long decimal expansion of the dwing constant is actually 2 * (sqrt(2)  1) but where does this number come from? I haven't figure out where phi = 0.618034 but I assume it's the angle in some triangle where one of the sides of the triangle is of length dwing. I know dwing came from your cube wings code so is dwing just used for your shCW object? I know it strays a bit away from your purpose of rendering Jaap's spheres but do you plan on extended your code to accept planarcuts in addition to conical cuts? I can't add support yet because I don't fully understand all of your code.
_________________ Prior to using my real name I posted under the account named bmenrigh.


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sun Aug 26, 2012 2:04 pm 

Joined: Sun Aug 29, 2010 1:56 pm

Thank you Brandon Your animated ETO is cool. bmenrigh wrote: I have a few questions.
For each of the solids you've made, you instantiate the object with a "scale" factor. Each object has a different scale. What is this doing? Is it just a fudge to make them all look about the same size or is it needed for something beyond just aesthetics? I wanted to equalize the sizes of the different objects. bmenrigh wrote: For the main camera, why are you looking very close to but not directly at the origin: <0.0, 0.01, 0.0> ? Is this just to provide a tiny bit of depth instead of looking at the shape straight on? The upmost line of pixels on the background of the rendered image was darker and I wanted to avoid this. bmenrigh wrote: I determined your long decimal expansion of the dwing constant is actually 2 * (sqrt(2)  1) but where does this number come from? I haven't figure out where phi = 0.618034 but I assume it's the angle in some triangle where one of the sides of the triangle is of length dwing. I know dwing came from your cube wings code so is dwing just used for your shCW object? The directionvectorsets I have all from Jaap's elegant Sphere sourcecode. Except the cubewingset with equal distances, which is the only set that uses dwing, but not phi. phi was to ease the construction of dodecahedronfaces/corners/edges. dwing is to equalize the distances in the cubewingset. Here is the way it came from Attachment:
regularOctagon.PNG [ 1.66 KiB  Viewed 3089 times ]
because c²=2*t² c=sqrt(2)*t c and d must be equal c=d=sqrt(2)*t so t=d/sqrt(2) e=2*t + d e=2*d/sqrt(2) + d e=(1+2/sqrt(2))*d because 2/sqrt(2)=sqrt(2), e=(1+sqrt(2))*d d=e/(1+sqrt(2)) e was defined 4 by me dwing had to be the half of d the number is 0.828427. More precision is not needed. Your "2 * (sqrt(2)  1)" is correct (congratulation on finding it). It's used for constructing the cubewing directionvectorset, but this is not included in Jaap's Sphere. It was added by me for trying out the cubewing set, as you know. And I don't know, wether it gives serious puzzles. Here is again the picture of it, that I posted in the gelatinbrainthread. Attachment:
dirset.cubewings.PNG [ 73.2 KiB  Viewed 3089 times ]
Last edited by Stefn on Wed Nov 20, 2013 10:51 am, edited 11 times in total.


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sat Sep 08, 2012 10:09 am 

Joined: Sun Aug 29, 2010 1:56 pm

I tried sketching gelatinbraindodecahedra, because I like them and for checking out, how much configuration I need. Here are some examples: Attachment:
1.01_1zu1.png [ 1.14 MiB  Viewed 2887 times ]
"Thanks very much!" to gelatinbrain.
Last edited by Stefn on Wed Nov 20, 2013 10:21 am, edited 2 times in total.


Top 


Darren Grewe

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sat Sep 08, 2012 8:41 pm 

Joined: Sat Apr 22, 2000 2:51 am Location: New Ulm, Minnesota, USA

Could you please tell how they all turn Stefan Schwalbe? The reason why I ask is that I don't go on there at all like I use to and that was after my best friend help me put a program on my computer so I could and play with the puzzles. I'm sorry I accidentally deleted it. So if anyone wants to help me with this please send me a PM through twisty puzzles and I'll give you the info. Did I mention I love that website?
_________________ Darren & Traiphum's Dual Helicoptrahedron
XTownCuber wrote: Are my eyes deceiving me, or is this the coolest puzzle ever?


Top 


Leslie Le

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sat Sep 08, 2012 9:03 pm 

Joined: Sun Aug 09, 2009 1:46 pm Location: P.R.China

bmenrigh wrote: I determined your long decimal expansion of the dwing constant is actually 2 * (sqrt(2)  1) but where does this number come from? I haven't figure out where phi = 0.618034 but I assume it's the angle in some triangle where one of the sides of the triangle is of length dwing. I know dwing came from your cube wings code so is dwing just used for your shCW object? The directionvectorsets I have all from Jaap's Sphere sourcecode. Except the cubewingset with equal distances, which is the only set that uses dwing, but not phi. phi was to easyfy the construction of dodecahedronfaces/corners/edges. dwing is to equalize the distances in the cubewingset. Here is the way it came from Attachment: The attachment regularOctagon.PNG is no longer available c and d must be equal d=c=sqrt(2)*t so t=d/sqrt(2) e=2*t + d e=2*d/sqrt(2) + d e=(1+2/sqrt(2))*d d=e/(1+2/sqrt(2)) e was defined 4 by me dwing had to be the half of d the number is 0.828427. More precision is not needed. Your "2 * (sqrt(2)  1)" is correct (congratulation on finding it). It's used for constructing the shCW object, and for the cubewing directionvectorset, but this is not included in Jaap's Sphere. It was added by me for trying out the cubewing set, as you know. And I don't know, wether it gives serious puzzles. Here is again the picture of it, that I posted in the gelatinbrainthread. Attachment: The attachment dirset.cubewings.PNG is no longer available bmenrigh wrote: I know it strays a bit away from your purpose of rendering Jaap's spheres but do you plan on extended your code to accept planarcuts in addition to conical cuts? I can't add support yet because I don't fully understand all of your code. Yes, maybe you can help me, the size relations have to be defined. If you have an idea, maybe we can do a 'jointventure' Thanks Brandon[/quote] Great...and WOW, it happens! Attachment:
cc.jpg [ 48.75 KiB  Viewed 2834 times ]
Don't mean anything but you are great to add this equalized distance feature into the program. It will actually bring a series of jumbling puzzles. Thank you Stefan Schwalbe for sharing.


Top 


Brandon Enright

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sat Sep 08, 2012 10:02 pm 

Joined: Thu Dec 31, 2009 8:54 pm Location: Bay Area, California

Leslie Le wrote: Great...and WOW, it happens! Attachment: cc.jpg Don't mean anything but you are great to add this equalized distance feature into the program. It will actually bring a series of jumbling puzzles. Thank you Stefan Schwalbe for sharing. Hi Leslie, I think you should add one level of unbandaging to that. See: viewtopic.php?p=285908#p285908
_________________ Prior to using my real name I posted under the account named bmenrigh.


Top 


Leslie Le

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sat Sep 08, 2012 10:26 pm 

Joined: Sun Aug 09, 2009 1:46 pm Location: P.R.China

bmenrigh wrote: Leslie Le wrote: Great...and WOW, it happens! Attachment: cc.jpg Don't mean anything but you are great to add this equalized distance feature into the program. It will actually bring a series of jumbling puzzles. Thank you Stefan Schwalbe for sharing. Hi Leslie, I think you should add one level of unbandaging to that. See: viewtopic.php?p=285908#p285908WOW again. I think I missed a lot here. Unbandaging is OK however just the plain cuts are already quite challenging. I agree that there can be many variations when unbandaged and difficulty is unpredictable(like Bermuda series). All platonic solids are applicable with this idea but manufacturing will be challenging with many axis basis. In my head, I call this procedure 'axis splitting'.


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sun Sep 09, 2012 1:16 pm 

Joined: Sun Aug 29, 2010 1:56 pm

Darren Grewe wrote: Could you please tell how they all turn Stefan Schwalbe? The reason why I ask is that I don't go on there at all like I use to and that was after my best friend help me put a program on my computer so I could and play with the puzzles. I'm sorry I accidentally deleted it. So if anyone wants to help me with this please send me a PM through twisty puzzles and I'll give you the info. Did I mention I love that website? Hi Darren Grewe the 1.1.* puzzles are faceturning dodecahedra the 1.2.* puzzles are vertexturning dodecahedra the 1.4.* puzzles are edge turn the 1.3.* are mixed face turn and vertex turn the 1.5.* are mixed face turn and edge turn the 1.6.1 is mixed vertex and edge turn the 1.7.1 is mixed face turn, vertex turn and edge turn If you need help running gelatinbrain on your computer please pm me. I will try to help.
Last edited by Stefn on Wed Nov 20, 2013 10:27 am, edited 1 time in total.


Top 


gelatinbrain

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Sun Sep 09, 2012 3:02 pm 

Joined: Thu May 31, 2007 7:13 pm Location: Bruxelles, Belgium


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Tue Sep 11, 2012 5:00 am 

Joined: Sun Aug 29, 2010 1:56 pm

Thank you for the replies, guys! I was specially pleased about your reply, Leslie Le @Leslie Le I'm very interested in your project. Can you pm me your progress bmenrigh wrote: Hi Leslie, I think you should add one level of unbandaging to that.
I would like to see, how it scrambles, someone has to make a proof. I will try it myself asap @gelatinbrain gelatinbrain wrote: Stefan Schwalbe wrote: Here are dodecahedra from gelatinbrain, I could sketch. Thank you, Stefan. You must have spent enormous amount of time and labor for this. configuring for a puzzle cost about 4 minutes. Thanks to you again, your Virtual Magic Polyhedra are great.
Last edited by Stefn on Wed Nov 20, 2013 10:29 am, edited 1 time in total.


Top 


Stefn

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Fri Sep 14, 2012 5:03 am 

Joined: Sun Aug 29, 2010 1:56 pm

I changed the script. Now planar and conical cuts can be mixed, and conical cuts can be defined more general, in freely moving the cone apex on the axle:There are 5 cases for the cone apex: 1. under the origin (negative) 2. on the origin (0) 3. between the origin and the divider (between 0 and 1) 4. on the divider (1), planar cut 5. above the divider (higher than 1)
Last edited by Stefn on Wed Nov 20, 2013 10:33 am, edited 1 time in total.


Top 


Brandon Enright

Post subject: Re: Using Pov Ray to bring Jaap's Sphere into other shapes Posted: Fri Sep 14, 2012 7:04 pm 

Joined: Thu Dec 31, 2009 8:54 pm Location: Bay Area, California

Hey Stefan, very elegant way to handle planar cuts as cones. I love how the curvature can now be varied by changing the cone's vertex. I'm having a good time playing with the code: Attachment:
master_fti_fun.png [ 121.88 KiB  Viewed 2478 times ]
I couldn't figure out how to make the Dreidel Skewb (my avatar) though. I thought the cone vertex would have to be > 1 but that doesn't seem to create the backwards curvature I'm looking for.
_________________ Prior to using my real name I posted under the account named bmenrigh.


Top 



Page 1 of 1

[ 16 posts ] 

Who is online 
Users browsing this forum: NXTgen and 10 guests 

You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum


