View previous topic :: View next topic |
Author |
Message |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Tue Sep 20, 2011 5:18 pm Post subject: |
|
|
Hi all, this is just a grainy surface cube
 _________________ My YouTube channel |
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Fri Sep 23, 2011 3:39 pm Post subject: |
|
|
Hi,
Two vases are created as always for me by K3DSurf
Code: | max(abs(max(sqrt(x*x+y*y)-1+sin(z/1.5)/1.8 , -(z+4.75) ) )-0.05, z-4.25 )
[x]: -1.85 , 1.85
[y]: -1.85 , 1.85
[z]: -5.01 , 4.251 |
 _________________ My YouTube channel |
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Sun Sep 25, 2011 9:18 pm Post subject: |
|
|
It seems to me that my previous flowers have withered, we need at least one, as you see all are empty right now
Code: | max(abs(max(sqrt(x*x+y*y)-1.3-(1.5*sin(1.2*z)-z/1.5)/6 , -z-1 ) )-0.07, z-5.5 )
[x]: -1.5 , 1.5
[y]: -1.5 , 1.5
[z]: -1.1 , 5.51 |
 _________________ My YouTube channel |
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Wed Sep 28, 2011 11:07 pm Post subject: |
|
|
Just using one of my preferred functions (dimensions) as a pattern
 _________________ My YouTube channel |
|
Back to top |
|
 |
nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539
|
Posted: Wed Sep 28, 2011 11:33 pm Post subject: |
|
|
Hi all
Very beautiful design Abdelhamid. Your progress in the ray-tracing area is amazing. Keep it up  _________________ Cheers,
Abderrahman |
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Sat Oct 01, 2011 6:27 am Post subject: |
|
|
Hi all,
Merci Taha, Here is the same vase in another scene, a 100% mathematical scene
 _________________ My YouTube channel |
|
Back to top |
|
 |
Whystler
Joined: 12 Apr 2012 Posts: 7
|
Posted: Fri Apr 13, 2012 7:26 pm Post subject: |
|
|
A beautiful vase for certain!
Unfortunately, I cant get it look right in k3dsurf...
Does anyone know why it looks like this on my computer?
[/img] |
|
Back to top |
|
 |
Furan
Joined: 05 Oct 2010 Posts: 64 Location: Prague, Czech Republic
|
Posted: Fri Apr 13, 2012 9:32 pm Post subject: |
|
|
Actually I have never used this program, however the Grid parameters strikes my eyes at first sight. Try something like Grid=100x100x200
Also specify the limits:
x: -1.5 1.5
y: -1.5 1.5
z: -1.6 5.51 |
|
Back to top |
|
 |
Whystler
Joined: 12 Apr 2012 Posts: 7
|
Posted: Fri Apr 13, 2012 11:04 pm Post subject: |
|
|
Ahh thank you! It was the grid size. I figured out how to change it.
-Whystler |
|
Back to top |
|
 |
inode

Joined: 27 Jan 2007 Posts: 127 Location: Austria
|
Posted: Fri Jul 13, 2012 6:02 am Post subject: Hexagonal pattern formula |
|
|
Hello, I am searching for an efficient short formula for defining a hexagonal pattern on a flat plane similar do this one...
but connected with cylinders.
Is it possible to define it without using min and max functions? |
|
Back to top |
|
 |
Furan
Joined: 05 Oct 2010 Posts: 64 Location: Prague, Czech Republic
|
Posted: Fri Jul 13, 2012 5:15 pm Post subject: |
|
|
Try this, I made it a year ago, I called it Crysis
Code: | 0.25+2*z^2+(0.25*(cos(4*y)+cos(2*sqrt(3)*x-2*y)+cos(2*sqrt(3)*x+2*y))+0.03*(cos(4*sqrt(3)*x)+cos(6*y-2*sqrt(3)*x)+cos(6*y+2*sqrt(3)*x)))
Box
-5;5
-5;5
-0.5;0.5
Grid
250;250;25
|
|
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Sun Jul 15, 2012 10:45 pm Post subject: |
|
|
Hi,
I didn't understand "connected with cylinders" but in addition to Furan's beautiful work I think this can help
Code: | ( (abs(y-2*floor(y/2+0.5))-1/(1+exp(7*(abs(x-floor(x/3.2+0.5)*3.2)-0.8))))*cos(atan(-7*exp(7*(abs(x-floor(x/3.2+0.5)*3.2)-0.8))/(1+exp(7*(abs(x-floor(x/3.2+0.5)*3.2)-0.8)))^2)) )^2+1.2*z^2-0.04
[x]: -5 , 5
[y]: -5.5 , 5.5
[z]: -0.3 , 0.3 |
here is I've used this basic pattern:
Code: | ( (abs(y)-1/(1+exp(7*(abs(x)-1))))*cos(atan(-7*exp(7*(abs(x)-1))/(1+exp(7*(abs(x)-1)))^2)) )^2+z^2-0.04
[x]: -4 , 4
[y]: -4 , 4
[z]: -0.3 , 0.3 |
also, we have this (maybe you meant this):
Code: | ( (abs(y-floor(y/4+0.5)*4)-(asin(sin(2*abs(x-floor(x/6.5+0.5)*6.5)))-2*abs(x-floor(x/6.5+0.5)*6.5)+2*pi)/pi)*cos(atan( (2*cos(2*abs(x-floor(x/6.5+0.5)*6.5))/sqrt(1-sin(2*abs(x-floor(x/6.5+0.5)*6.5))^2)-2)/pi )) )^2+z^2-0.04
[x]: -8 , 8
[y]: -8.5 , 8.5
[z]: -0.3, 0.3 |
_________________ My YouTube channel |
|
Back to top |
|
 |
inode

Joined: 27 Jan 2007 Posts: 127 Location: Austria
|
Posted: Mon Jul 16, 2012 11:11 am Post subject: Hexagonal Grid with cylinder parts |
|
|
Hi all,
I meant that the hexagonal grid can be constructed by connecting cutted cylinder peaces with identical radius and with identical length arrange with 0, 120 and 240°.
Furan, your solution seems to be symmetrical in all 3 directions e.g. if you turn around the grid by 120° around the z axis.
Belaid, your formulas constructions are also very interresting but they seems to disagree 120° symmetry.
Btw. multiplying Furans formula by 4 will make it a little bit shorter ...
Code: | 1 + 8*z^2
+ cos(4*y) +cos(2*sqrt(3)*x-2*y) +cos(2*sqrt(3)*x+2*y)
+ 0.12*( cos(4*sqrt(3)*x) +cos(6*y -2*sqrt(3)*x) +cos(6*y +2*sqrt(3)*x)) |

Last edited by inode on Thu Jul 19, 2012 5:35 am; edited 1 time in total |
|
Back to top |
|
 |
abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170
|
Posted: Wed Jul 18, 2012 1:26 pm Post subject: |
|
|
Gerd, would I know why you want a formula without min and max functions? _________________ My YouTube channel |
|
Back to top |
|
 |
inode

Joined: 27 Jan 2007 Posts: 127 Location: Austria
|
Posted: Thu Jul 19, 2012 5:49 am Post subject: without min and max functions? |
|
|
Hi,
It was only a principle question I ask to me, if repeating patterns can be handled without using min and max functions.
Do you have an example where you use min and max for a hexagon pattern?
Btw. a modification using abs() gives a nice columned hall!
Code: | Name: ColumnedHall1
F(): 1 - 4*z^9
+ cos( 4*y)
+ cos(2*sqrt(3)*x -2*y)
+ cos(2*sqrt(3)*x +2*y)
+ abs(0.18*( cos( 4*sqrt(3)*x)
+ cos(6*y -2*sqrt(3)*x)
+ cos(6*y +2*sqrt(3)*x)))
[x]: -3 , 3
[y]: -3 , 3
[z]: 0 , 1.1
; |
|
|
Back to top |
|
 |
|