View Full Version : New software jSDN
Humberto
06-12-2008, 06:25 AM
Dear all,
Quite a long time ago I wrote a sailing yacht design software called SDN (http://ants.inf.um.es/~humberto/sdn). Because of several reasons (the main one being my PhD Thesis) the software was not maintained, and soon it became obsolete (it can not run on any modern operating systems because of the Open Interface libraries).
A couple of years ago I retook the software and started rewriting it using Java, and called it jSDN (http://www.jsdn.es). It is a sailing yacht design software which is based on NURBS curves and surfaces and also allows POLYGONAL surfaces (like those imported from typical 3D modellers). In additional to general 3D modelling options, it includes specialised tools for sails, appendages, decks, and can perform a variety of calculations: hydrostatics, transversal and logitudinal stability, velocity prediction, etc.
Now it is in a state which is pretty much usable, and thus I am in the process of putting it freely available. I am creating a web page with some info and download links. It is still under construction, but you may find most things there:
http://www.jsdn.es
My intention is keeping it as freeware with many fundamental functionalities available, and then have two commercial versions with some productivity or advanced features, in order to cater with software maintenance costs.
I am now in the process of writing a manual and a tutorial, but I believe most options are pretty much straightforward. Feel free to use it, and any comments or questions will be more than welcomed, either in the forum or by email (mailto:info@ingeniatecno.com).
Regards,
Humberto
yipster
06-12-2008, 11:48 AM
Humberto thanks, looks good and downloaded your jSDN, i sure give it a whirl later
bobg3723
06-12-2008, 02:37 PM
Muy Bien! Thank you for your generous contribution.
Cheers,
BobG
Gilbert
06-15-2008, 12:55 AM
Thanks. This sounds very interesting. I tinkered with SDN a bit some while ago and thought it was promising. But it was not very useful since I had no other software that could do anything with a .shp file. Does it now export to anything other than a .shp file?
Humberto
06-15-2008, 07:33 AM
Thanks. This sounds very interesting. I tinkered with SDN a bit some while ago and thought it was promising. But it was not very useful since I had no other software that could do anything with a .shp file. Does it now export to anything other than a .shp file?
Now it does import and export IGES 5.3 files, but they are available in the PRO version only. I am in the process of releasing all versions, but now, the only one available is the FREE one. I have exchanged designs using IGES wihtout any problem between jSDN and MaxSurf, Catia and Rhino.
Meanwhile, I am planning to add some kind of offsets-file saving in the FREE version. And if people thinks that not having a particular file export format in the FREE version is a major drawback that will discourage using the program, I will try to add it.
Humberto
yipster
06-18-2008, 11:59 AM
Humberto, i'm running sun's java standard edition 6 platform on vista with all updates
on 32 bit, how to go for 64 + will i have to re-install all soft or can acad etc be switched to 64
anyway, got this error message starting jSDN, any advice?
Humberto
06-18-2008, 12:26 PM
Humberto, i'm running sun's java standard edition 6 platform on vista with all updates
on 32 bit, how to go for 64 + will i have to re-install all soft or can acad etc be switched to 64
anyway, got this error message starting jSDN, any advice?
It is Java 3D. By default it is not included in some operating systems. Sun's Java 3D page is:
http://java.sun.com/javase/technologies/desktop/java3d/
From there, go to "download" and then select your platform ("windows"). For running jSDN on 64 bits, I guess (I have not tried it yet) you have to install the appropiate Java virtual machine and Java 3D api ("windows 64" both from Sun's site).
I hope this helps,
Humberto
yipster
06-19-2008, 08:35 AM
yes that helped and there is java3D for all systems and processors, maybe i should try harder
but why not ask it from the mouth of the horse: why now dont my -and your- files load?
yipster
06-21-2008, 10:02 AM
looks good enough i'd say and checked again but same deadlock, any of you boatdesigners try'd jSDN?
Humberto
06-21-2008, 12:38 PM
looks good enough i'd say and checked again but same deadlock, any of you boatdesigners try'd jSDN?
Hi,
I am trying to reproduce your problem, but I am always able to open a *.sdn file. Have you tried the designs directory? I included a bunch of examples. And I have checked all, but must say I only use Mac OS X, and can run Windows XP.
Can you detail a little bit more what you experience? And your system details (os version, java vm version).
Humberto
BTW: is there any *.log file in the installation directory of jSDN? If so, can you post it.
yipster
06-21-2008, 03:01 PM
what i was experiencing was a load failure on all files, try'd to draw but could not get a line down. reinstalled java 3d 1.5.1 and jSDN but now get the first start-up error message again. perhaps remove java and jSDN first or check open GL vs dirextX i dont know what i'm doing wrong. took windows j3d 32 bit since altho i'm running AMD dual core this bloody machine was pre-installed with the 32bit cd. no log file but here teh second instal attached. football on tv and although not a big fan, i'll have a break for now and anyway better delete everything on this pc first, re-instal vista 64 bit get some extra mem and do things rite. i'll stay posted for here hearing you and other users of the program
Humberto,
I just dowload your program and the java app. you mention. When I start the aplication I receive this message:
java.lang.NoClassDefFoundError: javax/vecmath/Tuple3f
at A.C.L.<init>(Unknown Source)
at sdn.editor.C.ooOO.<init>(Unknown Source)
at sdn.editor.C.OoOO.<init>(Unknown Source)
at sdn.editor.E.super(Unknown Source)
at sdn.editor.E.<init>(Unknown Source)
at sdn.editor.EditorWindow.<init>(Unknown Source)
at sdn.editor.EditorWindow.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.vecmath.Tuple3f
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 13 more
I suspect its a java problem, so I didn´t download the right file. I have window XP. Can you please give me the right name of the java file to download.
Thanks a lot.
Patrick.
Humberto
06-27-2008, 05:21 PM
It is the same thing that happened to Yispter, the Java 3D is missing. By default it is not included in some operating systems. Sun's Java 3D page is:
http://java.sun.com/javase/technologies/desktop/java3d/
Humberto
Humberto,
I just dowload your program and the java app. you mention. When I start the aplication I receive this message:
java.lang.NoClassDefFoundError: javax/vecmath/Tuple3f
at A.C.L.<init>(Unknown Source)
at sdn.editor.C.ooOO.<init>(Unknown Source)
at sdn.editor.C.OoOO.<init>(Unknown Source)
at sdn.editor.E.super(Unknown Source)
at sdn.editor.E.<init>(Unknown Source)
at sdn.editor.EditorWindow.<init>(Unknown Source)
at sdn.editor.EditorWindow.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.vecmath.Tuple3f
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 13 more
I suspect its a java problem, so I didn´t download the right file. I have window XP. Can you please give me the right name of the java file to download.
Thanks a lot.
Patrick.
Humberto,
thanks, but I was maybe not so clear. I already instal the JAVA 3D and this error is still there. I download the "java3d-1_5_1-windows-i586.exe" file and execute it. NO CHANGES. I did the proces 3 times, and nothing. I will try now with the 1.4 version to see if it works better.
Patrick
Humberto
06-28-2008, 01:46 AM
Humberto,
thanks, but I was maybe not so clear. I already instal the JAVA 3D and this error is still there. I download the "java3d-1_5_1-windows-i586.exe" file and execute it. NO CHANGES. I did the proces 3 times, and nothing. I will try now with the 1.4 version to see if it works better.
Patrick
I misunderstood the problem. If Java 3D is installed, and jSDN can not found the libraries (that is the error you get), can be because of some reasons (which are not limited to):
a) the package, by whatever reason, is not installed properly (less probable)
b) you have more than one Java Virtual Machine, and you installed Java 3D in a different one than the default,which is used by jSDN (more probable).
I do not htink installing j3D 1.4 will for sure solve the problem. I migth give a try to teh following first: check how may java virtual machines you have, and for each one if a file vecmath.jar is present in any part of its lib directory.
I do not know if I am being clear. If not, tell me and I will try to re-explain in.
Humberto
Humberto,
as I´m not a Java specialist, I don´t know how to check how many java virtual machine I have in my computer, but I did the following:
1) in the folder "Program files" (which is called "Archivos de Programas", I have a Spanish sistem) I found a JAVA folder.
2) In the JAVA folder i Have the following folders:
- jre1.5.0_09
- jre1.5.0_10
- jre1.5.0_11
- jre1.6.0_01
- jre1.6.0_02
- jre1.6.0_03
- jre1.6.0_05
- jre6
-Java3D
all these folders with a bin and a lib folder inside.
3)I made a seach for vecmath.jar and only found 01 file in C:\Archivos de programa\Java\Java3D\1.5.1\lib\ext
No other vecmath.jar where found.
In the JAVA control panel I didn´t find and strange thinks, all the version above mencioned are checked and working, but I was unable to see the JAVA3d.
Thats all I can do for the moment. Any advice will be really apreciated.:(
DuncanG
06-28-2008, 05:06 PM
Now I remember why I hate Java so much!
Humberto have you never tested this on windows?
Some problems and workarounds when using jSDN on windose:
1) the installer for Java3D is lame, it installs the files but doesn't tell the JVM where they are.
fix: find the Java3D installation and copy the bin and lib directories to the appropriate JRE directory (there will be bin and lib sub-dirs there already). There may be more elegant fixes but why polish a turd (ie Java).
So that allows the program to start an bring up the GUI workspace but it wont load designs.
2) there is a problem in jSDN with the directory separator '\'
fix: try and load the design you want, and when it wont load exit the program. Now edit the file <jsdn location>\config\editor.conf and find the line somewhat like this:
DEF_DESIGN=C\:\\Boat\\jSDN-1.0\\designs\\yd40\\yd40.sdn
and change it to something like this:
DEF_DESIGN=C\:/Boat/jSDN-1.0/designs/yd40/yd40.sdn
or the more correct but utterly stupid:
DEF_DESIGN=C\:\\\\Boat\\\\jSDN-1.0\\\\designs\\\\yd40\\\\yd40.sdn
restart the program and with luck the design will have loaded.
There's another exception listed in the log file:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sdn.editor.EditorWindow.�00000(Unknown Source)
at sdn.editor.E$_o.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I havent looked into that yet.
Thats as far as I've got so far.
Humberto
06-29-2008, 12:36 PM
Now I remember why I hate Java so much!
Well, it might be a matter of taste. Or even productivity. But I do not see it is worth discussing it in this thread.
Humberto have you never tested this on windows?
Well, obviously not that much. I must say I always develop on Mac, which produces consistent Linux versions as well. And almost all things, if carefully coded, work smoothly in Windows.
I do not have a Windows machine, but I am planning to get one just for testing. Meanwhile, I rely on some testers.
Some problems and workarounds when using jSDN on windose:
1) the installer for Java3D is lame, it installs the files but doesn't tell the JVM where they are.
fix: find the Java3D installation and copy the bin and lib directories to the appropriate JRE directory (there will be bin and lib sub-dirs there already). There may be more elegant fixes but why polish a turd (ie Java).
I was just proposing the same thing to pdw.
So that allows the program to start an bring up the GUI workspace but it wont load designs.
2) there is a problem in jSDN with the directory separator '\'
fix: try and load the design you want, and when it wont load exit the program. Now edit the file <jsdn location>\config\editor.conf and find the line somewhat like this:
DEF_DESIGN=C\:\\Boat\\jSDN-1.0\\designs\\yd40\\yd40.sdn
and change it to something like this:
DEF_DESIGN=C\:/Boat/jSDN-1.0/designs/yd40/yd40.sdn
or the more correct but utterly stupid:
DEF_DESIGN=C\:\\\\Boat\\\\jSDN-1.0\\\\designs\\\\yd40\\\\yd40.sdn
restart the program and with luck the design will have loaded.
The DEF_DESIGN parameter only controls the default model. In any case, the "Load" menu of the software should open any design file, no matter the content of the parameter. Any time the jSDN software is closed, the DEF_DESIGN is updated with the last model saved.
I will check the file naming conversions, try it on windows, and produce a new release. I will keep you all informed.
There's another exception listed in the log file:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sdn.editor.EditorWindow.�00000(Unknown Source)
at sdn.editor.E$_o.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I havent looked into that yet.
Thats as far as I've got so far.
This is one of these windows things differences (timing of starting threads). I believe this only happens once. If not tell me, because it might be a different thing. If it only happens once, I will try to solve for the next Windows release (coming soon).
Humberto
DuncanG and Humberto,
Thanks both for your reply. Just one question before I go further:
Do you mean that I need to copy the content of both folders (Bin and Lib) in the correspondant folder I can found in the JRE Folder?
Thanks
Patrick
Humberto
06-30-2008, 10:23 AM
DuncanG and Humberto,
Thanks both for your reply. Just one question before I go further:
Do you mean that I need to copy the content of both folders (Bin and Lib) in the correspondant folder I can found in the JRE Folder?
Thanks
Patrick
Yes. Without deleting what is already there.
Humberto
Thanks to your suggestions, the program works now.
To resume and clarify for those who as myself are not expert in JAVA.
1- Download the JAVA 3D executable file from http://java.sun.com/javase/technologies/desktop/java3d/
2- Execute the downloaded file.
3- Copy the content from both folders (bin and lib) from the JAVA 3D folder to the correspondent bin/lib folder in your active JAVA folder. (You find them in C:\Program files\Java)
Patrick
Now the program is working, at the moment I can only confir the following remark from DuncanG:
2) there is a problem in jSDN with the directory separator '\'
fix: try and load the design you want, and when it wont load exit the program. Now edit the file <jsdn location>\config\editor.conf and find the line somewhat like this:
DEF_DESIGN=C\:\\Boat\\jSDN-1.0\\designs\\yd40\\yd40.sdn
and change it to something like this:
DEF_DESIGN=C\:/Boat/jSDN-1.0/designs/yd40/yd40.sdn
or the more correct but utterly stupid:
DEF_DESIGN=C\:\\\\Boat\\\\jSDN-1.0\\\\designs\\\\yd40\\\\yd40.sdn
restart the program and with luck the design will have loaded.
This work for me too. Doesn´t have more time today to start using the program more in deep, but as soon as I can, I will report my findings.
Patrick
farjoe
07-01-2008, 12:57 PM
this is probably a stupid question but i don't know the answer anyway so here goes:
i am running vista home edition on a turion64 computer.
when i try to install java3d using java3d-1 5 1-windows-amd64.exe i get the following error:
"this installation package is not supported by this processor"
Should i be running the 32 version even though i have an amd64 cpu?
DuncanG
07-01-2008, 01:39 PM
Humberto, I'm going to try running it on linux (Ubuntu-7). What JVM do you recommend?
I had it running on Sun Java-6 but it was dreadfully slow even by Java standards. So I suspect there is a better Java for linux but which?
Humberto
07-01-2008, 02:38 PM
this is probably a stupid question but i don't know the answer anyway so here goes:
i am running vista home edition on a turion64 computer.
when i try to install java3d using java3d-1 5 1-windows-amd64.exe i get the following error:
"this installation package is not supported by this processor"
Should i be running the 32 version even though i have an amd64 cpu?
Just an estupid question: do you have Java already installed? (I got a similar error 30 minutes ago when installing J3D on a clean Windows XP installation and it was because Java was missing :-)
Otherwise, if Vista Home is not 64 bits, you should be installing the 32 bits anyway.
Humberto
Humberto
07-01-2008, 02:43 PM
Humberto, I'm going to try running it on linux (Ubuntu-7). What JVM do you recommend?
I had it running on Sun Java-6 but it was dreadfully slow even by Java standards. So I suspect there is a better Java for linux but which?
I do not believe a different VM will go much better. I know the effect, because I experienced it yesterday afternoon when installing jSDN in Ubuntu 9, 64 bits. And it was tooooooo slow. I am trying to discover why, but meanwhile, a solution is deactivating 2D shading in jSDN (menu View -> 2D Rendering -> Wireframe).
The next revision (really soon) will have this as a configuration option. Now it always starts with shading on.
Humberto
yipster
07-01-2008, 03:29 PM
yesterday afternoon when installing jSDN in Ubuntu 9, 64 bits
you admirable endless idealist, i'm still following this thread and will give it another try soon
unfortunitly Ubuntu 64 is not compatable yet with most cad programs rite?
i have vista premium oem 64 installed now and 64 cad software installs take attention
only 1 old 16 bit program wouldnt run but guess even for that is a solution
geez, when can i go back to study the drawing program updates and DRAW
DuncanG
07-01-2008, 05:35 PM
but meanwhile, a solution is deactivating 2D shading in jSDN (menu View -> 2D Rendering -> Wireframe).
Humberto
Unfortunately it doesn't seem to remember that setting from session-session.
Humberto
07-01-2008, 05:42 PM
you admirable endless idealist,
:)
i'm still following this thread and will give it another try soon
unfortunitly Ubuntu 64 is not compatable yet with most cad programs rite?
i have vista premium oem 64 installed now and 64 cad software installs take attention
only 1 old 16 bit program wouldnt run but guess even for that is a solution
geez, when can i go back to study the drawing program updates and DRAW
The problem with the machine I tried is lack of appropriate drivers (graphics card), which makes on screen drawing rather slow. I should be only a matter of time, but who knows when!
Humberto
Humberto
07-01-2008, 05:43 PM
Unfortunately it doesn't seem to remember that setting from session-session.
I have implemented this into the next release (hopefully released in one or two days).
Humberto
Humberto
07-12-2008, 04:19 AM
I have just updated the web page with a new revision (jSDN 1.0b). It just solves minor problems, mostly related to bugs in the Windows versions:
- paths are now treated correctly (windows)
- window layout seems better for resolutions upto 1024x768 (all)
- solves minor permissions problems in Vista (windows)
- better appearance of LPP calculations (all)
- saves 2D configuration between sessions (all)
- default 2D configuration set to wireframe (all)
I hope jSDN will work better now. Please keep posting any other bugs.
Humberto Martinez
rattus
07-12-2008, 06:44 PM
Hello Humberto, I am running jSDN on my MacBook Pro, and it loads sample designs well.
One question: do you have any documentation available for the tool? Some actions are intuitive, but other ones baffle me!
Thanks,
Mike
DuncanG
07-15-2008, 03:05 PM
The 3D view still opens shaded although that's not so much a problem now that the windows version works.
How do you save the operational sets? I guess they defined per project.
I can't find a way to delete design elements, for example to reduce the YD40 design from 39 elements to 3 elements so it can be saved in the 'free' version.
A limitation to 3 elements I think makes the free version rather useless. How much are the other 2 versions?
Humberto
07-16-2008, 11:23 AM
Hello Humberto, I am running jSDN on my MacBook Pro, and it loads sample designs well.
One question: do you have any documentation available for the tool? Some actions are intuitive, but other ones baffle me!
Thanks,
Mike
Currently, I have no documentation ready. But I am preparing a document with a brief overview of the system and a tutorial. I hope to have it ready in about two weeks.
Humberto
Humberto
07-16-2008, 11:36 AM
The 3D view still opens shaded although that's not so much a problem now that the windows version works.
Do you think changing the way it behaves is really needed? Or maybe you mean storing the layout after quitting (one or three views)?
How do you save the operational sets? I guess they defined per project.
They are defined per project, and they are stored in the .sdn file
I can't find a way to delete design elements, for example to reduce the YD40 design from 39 elements to 3 elements so it can be saved in the 'free' version.
A limitation to 3 elements I think makes the free version rather useless.
How much are the other 2 versions?
Deleting is easy (although maybe not that intuitive): click on the element name (from the design tree), and then select cut, either in the edit menu or the cut button (scissors).
I intended to limit it to 3 NURBS, but I counted all elements. I am thinking setting it to 5 NURBS. Which is enough to model a simple sailing vessel (hull, keel, rudder, mainsail and foresail).
Regarding pricing, the LITE will be 500 Eur and the PRO will be 1000 Eur.
Humberto
rattus
07-16-2008, 01:02 PM
Humberto, as you consider the number of NURBS surfaces to support, please take multihulls into consideration!
Mike
View Full Version : New software jSDN