3D tooth chart under linux

For complex topics that regular users would not be interested in. For power users and database administrators.

3D tooth chart under linux

Postby mattclar » Sun Jun 28, 2009 10:17 am

I have got Open Dental working under Ubuntu linux using mono 2.4. But my problem is that I cant enable the 3D tooth chart, yes I know it doesn't work on Linux but wouldnt it be nice just to try it out at least? see if new versions of mono that have been released such as 2.4 which was released only a few months ago have resolved the problem? I see that mono has OpenGl support http://mono-project.com/Tao but Im not a coder so maybe I am missing a vital point but to me it seems that with Tao the 3D tooth chart should be able to function on linux/mac.

Thanks
Matt Clarke
mattclar
 
Posts: 3
Joined: Tue Jun 23, 2009 9:48 am

Re: 3D tooth chart under linux

Postby jordansparks » Sun Jun 28, 2009 9:19 pm

We have used Tao since the beginning and continue to use it in order to make OpenGL work with Windows. But that's not the same as making OpenGL work with Winforms on Linux. There's a hardware interface here and nobody has been willing to go to the effort to make OpenGL work with Winforms. It won't work. I'm 99% sure. So I don't have time to turn on that feature to let you try. Sorry.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
jordansparks
Site Admin
 
Posts: 5284
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon

Re: 3D tooth chart under linux

Postby drtech » Mon Jun 29, 2009 1:13 am

If only we could get it working under linux...the days of rebuilding my windows boxes every year would be over....
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com
User avatar
drtech
 
Posts: 1575
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO

Re: 3D tooth chart under linux

Postby mattclar » Mon Jun 29, 2009 12:57 pm

Did some further searching not sure if this addresses your problem but perhaps it does ...again Im not a programer lol

http://go-mono.com/forums/#nabble-td20831321
mattclar
 
Posts: 3
Joined: Tue Jun 23, 2009 9:48 am

Re: 3D tooth chart under linux

Postby jordansparks » Thu Jul 02, 2009 9:55 am

OpenTK seems to be a new development since I last looked. But I'm not going to bother with something that still has a major version number of 0. Not worth my time.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
jordansparks
Site Admin
 
Posts: 5284
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon

Re: 3D tooth chart under linux

Postby mattclar » Fri Jul 03, 2009 7:54 pm

seems to be pretty close to hitting the 1.0 mile stone to me 0.9.9-0 seems very close to a major release and there seems to be talk about compatibility of this version with the 1.0 release. Seems worthwhile
mattclar
 
Posts: 3
Joined: Tue Jun 23, 2009 9:48 am

Re: 3D tooth chart under linux

Postby Justin Shafer » Sat Oct 09, 2010 7:12 pm

So it looks like we need to switch from using GraphicalToothChartControl:CodeBase.OpenGLWinFormsControl{//.SimpleOpenGlControl

I notice SimpleOpenGLControl is written only for Windows with GetDC and AutoFinish, etc... So we need to switch to OpenTK.GLControl....

I would say its stable in its 1.X version but I dont know... Maybe "The Fiddler" would like to rewrite SimpleOpenGLControl for X11.. =)

And then.. would this work in OSX? Would we need X11 or could we use OpenTK.Platform.OSX?
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Sat Oct 09, 2010 11:49 pm

Awesome! I will try it!
http://www.opentk.com/node/424
Re: Existing OpenGL program
Posted Sunday, 10 October, 2010 - 07:07 by the Fiddler (new) .Use the SimpleOpenGLControl and Tao.OpenGL found in OpenTK.Compatibility.dll. The first is a clone of Tao's SimpleOpenGLControl layered on top of OpenTK.GLControl (so it supports Windows, Linux, Mac OS X), while the latter is a full copy of Tao's OpenGL bindings that work well with OpenTK.

You will need to get rid of Tao.Platform.Windows, obviously, but that should be possible if you are using SimpleOpenGLControl.

Edit: It is possible to modify OpenGLWinFormsControl to run on either Tao.SimpleOpenGlControl or OpenTK.GLControl. You will need to modify it to inherit from those (instead of plain Control) and remove all references to GDI and WGL (these are handled by OpenTK internally). The rest of the public API should work with little or no modification.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Wed Oct 13, 2010 10:42 am

Pretty sure I just got this working without VMWare, etc... I am testing in VMWare and right now I am in linux and Open Dental detects my DirectX and OpenGL... give you a hint.. not using Mono..... Time to take this out of VMWare..
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Wed Oct 13, 2010 11:24 am

Got the Tooth Chart working for DirectX in Linux! =) Thanks Jordan!

It works PERFECTLY. I think.. Dont use it in vmware though or its slow...

I didnt have to do much to make this work. But I will get back to you guys.. I am comparing running this with wine and dotnet20 or wine and mono26

Oh yeah if you do want to compile EDIT: (with monodevelop), use Visual Studio 2008 in Windows and dont forget to install Adobe Acrobat Reader 8.. or thats what I used.. And I think you may need DirectX SDK.

=)
Image
Last edited by Justin Shafer on Thu Oct 28, 2010 10:45 am, edited 3 times in total.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Wed Oct 13, 2010 12:03 pm

Okay Here is a rough draft on how to get it working in Wine. You dont need to compile anything as of 7.2.46 Havent tried anything below that and I am not going too. :lol:

1. Install Wine.
2. get winetricks and install dotnet20 d3dx9 gdiplus glut vcrun2008 ddr=opengl
3. Run the program in a path wine can recognize.. .wine/drive_c/ or set it up in winecfg
edit: 4. if you get an SDCard\SmartCard error anywhere you may have to look at winsdcard.dll (I think thats what its called) but last I tried I didnt have too.. I think.
Ummmm thats it.. :mrgreen: My family will be soooo happy.

4. Get winscard.dll from xp sp2 or sp3 and throw it in system32 for wine and run winecfg and tell it in libraries that winscard.dll is native.
Last edited by Justin Shafer on Thu Oct 28, 2010 11:06 am, edited 1 time in total.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Sun Oct 24, 2010 10:53 pm

Got 7.4.4 to run under wine...
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby drtech » Mon Oct 25, 2010 10:01 am

great!
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com
User avatar
drtech
 
Posts: 1575
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO

Re: 3D tooth chart under linux

Postby murmsk » Mon Oct 25, 2010 7:38 pm

WOW!!!!! Thanks all

steve
murmsk
 
Posts: 174
Joined: Mon Jun 18, 2007 11:14 am
Location: Monmouth IL

Re: 3D tooth chart under linux

Postby Justin Shafer » Thu Oct 28, 2010 10:41 am

Yes but I didnt tell you guys how to get 7.4.4 to run... but its still in beta so I will wait for it to be stable... You shouldnt be running 7.4.4.. be sure you have direct rendering enabled with opengl and linux... glxinfo is the command..
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Sun Jan 02, 2011 12:44 am

Dang! I almost forgot who I got that working. You have to install the DirectXSDK in winetricks for it too work! Its a large download from Microsoft.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby JrGong » Thu Jan 13, 2011 12:41 pm

I like your style Justin, persistance in gettin OD to work in linux. I am looking at helping my mothers office run as a linux only shop......hope you don't mind me picking your brain when I get to that point!
JrGong
 
Posts: 10
Joined: Thu Jan 13, 2011 11:55 am

Re: 3D tooth chart under linux

Postby Justin Shafer » Sun Jul 01, 2012 7:18 am

Well I decided to play with this some more... I used PlayOnMac... Good wine program..

OpenDental draws slowly because of gdiplus. Wine needs gdiplus builtin to wine, is not good enough for dotnet and opendental. The gdiplus native option are the files from windows which works, but its slow.

As soon as wine does more work on gdiplus, then open dental will be faster in wine...

Very fast with virtualbox, vmware, etc.. of course. :D
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Wed Feb 20, 2013 6:09 am

Let's see if OD can be compiled under Mono... Just for fun. No 3d Tooth Chart. I want to remove the libraries that won't work on arm.. and see if it will run.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Tue Jan 23, 2018 1:56 am

This works pretty well on 17.2...

WINEPREFIX="$HOME/.wine" WINEARCH=win32 winetricks dotnet45 d3dx9 gdiplus glut vcrun2015 ddr=opengl

Once you get OpenDentImages mounted over smb.. etc..

Toothchart worked.
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: 3D tooth chart under linux

Postby Justin Shafer » Sun Jan 28, 2018 11:31 am

For 17.3 I got a black box at the choose database window... So... SharpDX issue.

WINEPREFIX="$HOME/.wine" WINEARCH=win32 winetricks dotnet45 win10

Setting the windows version to Windows 10 fixes that...
User avatar
Justin Shafer
 
Posts: 562
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 4 guests

cron