MathMod-3.1
Goto page 1, 2  Next
 
Post new topic   Reply to topic    K3DSurf forum Forum Index -> MathMod for Windows
View previous topic :: View next topic  
Author Message
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Thu Mar 12, 2015 4:12 am    Post subject: MathMod-3.1 Reply with quote

Hi all,
MathMod-3.1(Win64/WIN32) is available for download from:
https://sourceforge.net/projects/mathmod/

Changelog for MathMod-3.1 (11/03/2015)
1) Add Perlin/Worley Noise (NoiseP and NoiseW) functions support for parametric surfaces:
(see "FresnelNoise", "BreatherNoise" and "TorusNoise" examples)
2) Bug fixes
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Sun Apr 05, 2015 5:36 pm    Post subject: Reply with quote

hello

a message error to iso

noise duplin


error at position 0

( very nice prog a little time is well to shut down the runtime with k3D)

ps

Have you need of my iso formula of icosaedron because i post and nothing else read !,

may i post a new tread for that ?

cheers

denisc
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Sun Apr 05, 2015 9:44 pm    Post subject: Reply with quote

Hi,
Code:
a message error to iso
noise duplin

You`re right, to correct this message error, just cut from the script:
Code:
"Noise": "true",

Or replate it with :
Code:
"Noise": "",

You can also start playing with the Noise functions and replace it with something like:
Code:
"Noise": "2*NoiseW(2*x,2*y,2*z,1,2,0)",


Code:
( very nice prog a little time is well to shut down the runtime with k3D)

Did you mean MathMod makes your system crash? it happens occasionnaly for me when playing at very height resolution. This is most probably du to my old graphics card that can't handle big amount of graphics data.

Code:
Have you need of my iso formula of icosaedron because i post and nothing else read !,
may i post a new tread for that ?

Of course you can create a new thread and all users experience sharing is appreciated Smile
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Mon Apr 06, 2015 6:31 pm    Post subject: Reply with quote

hello nextstep

i was a little tired , i would just say that,

it takes some time to get rid of habits with K3D and appreciate more mathmod .

and also the new fonctions .

In the future , a save to anim in avi format will be possible?


cheers

denisc
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Wed Apr 08, 2015 3:57 pm    Post subject: Reply with quote

Hi,
Quote:
i was a little tired , i would just say that,

it takes some time to get rid of habits with K3D and appreciate more mathmod .

and also the new fonctions .

If K3DSurf suits your needs, it's good to continue using it... In my case, I switched to MathMod because I needed a more powerul tool that can support new advanced features.

Quote:
In the future , a save to anim in avi format will be possible?

I did it for K3DSurf but it was too buggy...how about using a third party program to catch screenshots and animations directly from the display screen?
I used CamStudio to make this demo
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Wed Jul 22, 2015 9:58 pm    Post subject: convert K3Dsurf script Reply with quote

hello nexsteps

your convert K3Dsurf don't work for me.

For all of my tryout i am a x.js empty

just that in x.js/ { "MathModels": [ ]}

and when i try to copy the content of x.k3ds on [ ]} = [formulax ]}


i am a meesage error?




THe scrit of schwarz
{
"Iso3D": {
"Cnd": [
"(x^2 + y^2) > cos(t*pi)*5.0"
],
"Component": [
"Schwarz"
],
"Description": [
"This example shows the minimum required fields "
],
"Fxyz": [
" cos(x) + cos(y) + cos(z)"
],
"Name": [
"Schwarz"
],
"Xmax": [
" 4"
],
"Xmin": [
"-4"
],
"Ymax": [
" 4"
],
"Ymin": [
"-4"
],
"Zmax": [
" 4"
],
"Zmin": [
"-4"
]
}
}
in iso is more complex



and for parametric

coinus

{
"Param3D": {
"Component": [
"Cosinus"
],
"Description": [
"Descriptionofthemodel"
],
"Fx": [
"u"
],
"Fy": [
"v"
],
"Fz": [
"-sin(pi*((u)^2+(v)^2))/3"
],
"Name": [
"Cosinus"
],
"Umax": [
"1"
],
"Umin": [
"-1"
],
"Vmax": [
"1"
],
"Vmin": [
"-1"
]
}
}



for k

cosinus

X():u
Y():sin(pi*((u)^2+(v)^2))/2
Z():v
[u]:-1, 1
[v]:-1, 1


and sw

Name: Schwartz
/*
Author: Schwartz ...
*/
F(): cos(x) + cos(y) + cos(z)
[x]: -4 , 4
[y]: -4 , 4
[z]: -4 , 4
;


YOur converter should be perhaps more perfect?

ps (you don"t know the menber of try out for one figure i am saved on my disk and i thintk the other users, if i have to convert all , i m going to spend the same time of the creation of all my old saved!! It is not possible !!)



cheers

sorry formy english


denisc
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Sun Aug 02, 2015 8:39 am    Post subject: Reply with quote

Hi denisc,
From what you said, it looks like you have problems when converting your old .k3ds files to the new MathMod's file format .js , right?
I took your two examples and saved them in a test.k3ds file :
Code:

Name: Schwartz
/*
Author: Schwartz ...
*/
F(): cos(x) + cos(y) + cos(z)
[x]: -4 , 4
[y]: -4 , 4
[z]: -4 , 4
;
X():u
Y():sin(pi*((u)^2+(v)^2))/2
Z():v
[u]:-1, 1
[v]:-1, 1
;


After conversion with MathMod, I got a test.js file in the same directory as the original test.k3ds:

Code:

{
   "MathModels": [{
      "Iso3D": {
         "Description ": ["Author: Schwartz ..."],
         "Name": ["Schwartz"],
         "Component": ["Schwartz"],
         "Fxyz": ["cos(x) + cos(y) + cos(z)"],
         "Cnd": [""],
         "Xmin": ["-4 "],
         "Xmax": [" 4"],
         "Ymin": ["-4 "],
         "Ymax": [" 4"],
         "Zmin": ["-4 "],
         "Zmax": [" 4"]
      }
   },
   {
      "Param3D": {
         "Description ": [""],
         "Name": ["_2"],
         "Component": ["_2"],
         "Fx": ["u"],
         "Fy": ["sin(pi*((u)^2+(v)^2))/2"],
         "Fz": ["v"],
         "Cnd": [""],
         "Umin": ["-1"],
         "Umax": [" 1"],
         "Vmin": ["-1"],
         "Vmax": [" 1"]
      }
   }]
}


I don't know where the is problem...can you give more details?
You can write in French or Spanish if you want.
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Sun Aug 02, 2015 9:27 am    Post subject: Reply with quote

hello next steps

thanks for your comment

i retry the js convert.

That work with iso formula , but not for parametric formula when you load json

script.


because you are just : { "MathModels": [ ]} write in the json script


(In the json scipt with iso, you are the good formula in


{
"MathModels": [{
"Iso3D": {
"Description ": ["Author: Schwartz ..."],
"Name": ["Schwartz"],
"Component": ["Schwartz"],
"Fxyz": ["cos(x) + cos(y) + cos(z)"],
"Cnd": [""],
"Xmin": ["-4 "],
"Xmax": [" 4"],
"Ymin": ["-4 "],
"Ymax": [" 4"],
"Zmin": ["-4 "],
"Zmax": [" 4"]
}


and para

{ "MathModels": [ ]}

try to convert and reopen your examples in 2 separate json .

one for iso, second for parametric .

cheers

cheers

ps

i am one parametric json correctly write?

But i am a message error when i try to reopen

illegal number at position 17

the difference with other are just values.

x

ex

1/ X = sin(u)

Y= sin(u)

Z= sin(u)

not work

{ "MathModels": [ ]}


2/ X = 3*sin(u)

Y= 3*sin(u)

XZ= 3*sin(u)

work with mesage error when reopen


(all parametric formulas work in k3dsurf)



one exemple


X():1*cos(u)*(1+1*cos(1/5*u))

Y():1*sin(u)*(1+1*cos(1/5*u))

Z():0
[u]:-5*pi, 5*pi
[v]:,

my formula saved in

CONCHOÏDE DE ROSACE1-5 .k3ds

my CONCHOÏDE DE ROSACE1-5 .js

{ "MathModels": [ ]}

all my parametric formula(not exemples)
had not tiles( *-----)
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Sun Aug 02, 2015 9:41 pm    Post subject: Reply with quote

Hi,
Code:

Name: Schwartz
/*
Author: Schwartz ...
*/
F(): cos(x) + cos(y) + cos(z)
[x]: -4 , 4
[y]: -4 , 4
[z]: -4 , 4
;
X():1*cos(u)*(1+1*cos(1/5*u))
Y():1*sin(u)*(1+1*cos(1/5*u))
Z():0
[u]:-5*pi, 5*pi
[v]:,
;


After conversion, we have:

Code:

{
   "MathModels": [{
      "Iso3D": {
         "Description ": ["Author: Schwartz ..."],
         "Name": ["Schwartz"],
         "Component": ["Schwartz"],
         "Fxyz": ["cos(x) + cos(y) + cos(z)"],
         "Cnd": [""],
         "Xmin": ["-4 "],
         "Xmax": [" 4"],
         "Ymin": ["-4 "],
         "Ymax": [" 4"],
         "Zmin": ["-4 "],
         "Zmax": [" 4"]
      }
   },
   {
      "Param3D": {
         "Description ": [""],
         "Name": ["_2"],
         "Component": ["_2"],
         "Fx": ["1*cos(u)*(1+1*cos(1/5*u))"],
         "Fy": ["1*sin(u)*(1+1*cos(1/5*u))"],
         "Fz": ["0"],
         "Cnd": [""],
         "Umin": ["-5*pi"],
         "Umax": [" 5*pi"],
         "Vmin": [""],
         "Vmax": [""]
      }
   }]
}

The problem comes from:
Code:

         "Vmin": [""],
         "Vmax": [""]

Blank values are not accepted by MathMod, because MathMod doesn't support curves definitions (yet)
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Sun Aug 02, 2015 10:15 pm    Post subject: Reply with quote

hello

it's not the solution

i change my formula and save with k3dsurf


X():1*cos(u)*(1+1*cos(1/5*u))

Y():1*sin(u)*(1+1*cos(1/5*u))

Z():0

[u]:-5*pi, 5*pi
[v]:0, 0



and when i convert with mathmod 3.1

{ "MathModels": [ ]}

i am not
{
"Param3D": {
"Description ": [""],
"Name": ["_2"],
"Component": ["_2"],
"Fx": ["1*cos(u)*(1+1*cos(1/5*u))"],
"Fy": ["1*sin(u)*(1+1*cos(1/5*u))"],
"Fz": ["0"],
"Cnd": [""],
"Umin": ["-5*pi"],
"Umax": [" 5*pi"],
"Vmin": ["0"],
"Vmax": ["0"]
}
}]
}




why you not test all with k3dsurf in first position?
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Sun Aug 02, 2015 10:28 pm    Post subject: Reply with quote

Hi,
Code:

why you not test all with k3dsurf in first position?


What do you think I'm doing right now?
Code:

and when i convert with mathmod 3.1
{ "MathModels": [ ]}
i am not


can you try convert this in the first place and see what you got ?

Code:

Name: Schwartz
/*
Author: Schwartz ...
*/
F(): cos(x) + cos(y) + cos(z)
[x]: -4 , 4
[y]: -4 , 4
[z]: -4 , 4
;
X():1*cos(u)*(1+1*cos(1/5*u))
Y():1*sin(u)*(1+1*cos(1/5*u))
Z():0
[u]:-5*pi, 5*pi
[v]:,
;


It's useless to continue this discussion if you don't help yourself a bit in finding the root of the problem...
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Sun Aug 02, 2015 11:10 pm    Post subject: Reply with quote

i not understand what you say?

I am no probleme in special way?


if you write your k3dsurf (.k3ds) , first with a wordpad or editor of text and

save with . with K3ds prog first ;in final , it's not the same result .??


i not understand what , but it is the result is very different???!!


t
Back to top View user's profile Send private message Send e-mail
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Mon Aug 03, 2015 6:54 am    Post subject: Reply with quote

hy

another exemple


i try with your formula of torus

In K3ds v0.6.2

you can do

edit and after save as , i save as y.k3ds (you must make the( ).k3ds )

X()Sad1+ 0.5*cos(u))*cos(v)

Y():0.5*sin(u)

Z()Sad1+ 0.5*cos(u))*sin(v)

[u]:0, 2*pi

[v]:0, 2*pi




i try to convert with mathmod 3.1

when i open my y.js


you can see { "MathModels": [ ]} for result


if i try all your exemples in iso formula , that work find.


i not understand, where is the probleme fondamental in all?


i am on w7 pro, not 64 bit.


I will test on W8 64?

(perhaps a little bug when K3D write the text)

' i not understand how you have

{
"Param3D": {
"Description ": [""],
"Name": ["_2"],
"Component": ["_2"],
"Fx": ["1*cos(u)*(1+1*cos(1/5*u))"],
"Fy": ["1*sin(u)*(1+1*cos(1/5*u))"],
"Fz": ["0"],
"Cnd": [""],
"Umin": ["-5*pi"],
"Umax": [" 5*pi"],
"Vmin": [""],
"Vmax": [""]
}

for me , i am a empty .js

just
{ "MathModels": [ ]}

in fact the .k3ds had not be converted?)
Back to top View user's profile Send private message Send e-mail
denisc



Joined: 24 Apr 2013
Posts: 92

PostPosted: Mon Aug 03, 2015 1:46 pm    Post subject: Reply with quote

i try with windows 8 64bit and mahmod 3.1 64 bits with K3dsurfV0.6.2

with klein

i am the same result


the file.js was not converted.?

just { "MathModels": [ ]} write on


perhaps on my last posts i was a little confused (sorry for that)

but it's a true probleme?


CA serait bien , si d'autres personnes pouvaient confirmer , ca etait fait sur 2 ordi differents.


that would be nice if others could confirm, i used 2 differents computers.
Back to top View user's profile Send private message Send e-mail
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 539

PostPosted: Mon Aug 03, 2015 4:13 pm    Post subject: Reply with quote

Hi denisc,
I think it's not working for you because you didn't add ";" at the end of the parametric description. Try to convert this, it should work:
Code:

X():(1+ 0.5*cos(u))*cos(v)
Y():0.5*sin(u)
Z():(1+ 0.5*cos(u))*sin(v)
[u]:0,  2*pi
[v]:0,  2*pi
;


Je pense que la conversion des fichiers .k3ds ne marche pas pour toi car il manque le séparateur ";" a la fin de la définition paramétrique de ton model.
Essayes de sauvegarder le code en haut dans un fichier .k3ds et converties le en .js...ça devrait marcher Smile
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    K3DSurf forum Forum Index -> MathMod for Windows All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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 vote in polls in this forum


2005 Powered by phpBB © 2001, 2005 phpBB Group


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com