Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48726

Re: Beginner Question: 3D Models

Newsgroups comp.lang.python
Date 2013-06-19 09:34 -0700
References <b90be6d8-14db-42f2-92f3-a6aaba9ee075@googlegroups.com> <15810ca3-7237-41d1-bcc8-e61667ba3714@googlegroups.com>
Message-ID <be3fc464-b2c0-412f-8a8f-ebaa06402b26@googlegroups.com> (permalink)
Subject Re: Beginner Question: 3D Models
From andrewblundon@gmail.com

Show all headers | View raw


On Wednesday, June 19, 2013 11:47:36 AM UTC-2:30, Rick Johnson wrote:
> On Tuesday, June 18, 2013 9:47:34 PM UTC-5, andrew...@gmail.com wrote:
> 
> 
> 
> > I'm looking at developing a program for work that can be
> 
> > distributed to others (i.e. and exe file).  The
> 
> > application would open various dialogue boxes and ask the
> 
> > user for input and eventually perform mathematical
> 
> > calculations on the input.
> 
> 
> 
> Tkinter sucks for GUI (at least as it stands today) however
> 
> it IS part of the stdlib and you can get going fairly
> 
> quickly with it -- although Tkinter does not supply a native
> 
> 3dcanvas widget so you'll have to use "togl", which is very
> 
> old and poorly written, but it works! ;-)
> 
> 
> 
> Alternatively, WxPython is a full featured GUI library which
> 
> has a glCanvas waiting for you. But like anything there is a
> 
> trade-off -- will take a bit more time to understand Wx than
> 
> Tkinter.
> 
> 
> 
> > From what I've read Python would have no trouble with
> 
> > this. However, for one part of the program I'd like to be
> 
> > able to create a 3D model based on the user input.  The
> 
> > model would be very basic consisting of a number of lines
> 
> > and objects.
> 
> > [...]
> 
> > Are there any capabilities to import existing
> 
> > CAD geometry, arrange the components in particular 3D
> 
> > coordinates in space and then view the results in some
> 
> > sort of 3D viewer?  Ideally the user would then be able to
> 
> > zoom in and orbit around looking at the model. Is this
> 
> > possible?  Is Python the right language?
> 
> 
> 
> Sounds like "OpenGL" is what you need.
> 
> 
> 
> Others have mentioned Blender, however i would say that is a
> 
> bad idea. Sure, all the zoom and orbit code is written for
> 
> you but then your users are going to be overwhelmed by the
> 
> Blender interface. Blender is overkill for what you want!
> 
> Suggesting Blender for this problem is like suggesting you
> 
> rent a semi-truck to ship a toaster one block.
> 
> 
> 
> Adding lines and faces (or even geometric primitives) in
> 
> OpenGL is so easy you'd have to be a complete moron not to
> 
> understand it. There's a little bit of complication when
> 
> handling concave faces (or faces containing holes), but
> 
> nothing impossible about it. Importing data from outside
> 
> programs is pure Python (easy stuff).
> 
> 
> 
> PS: Be aware that you'll most likely want to use the latest
> 
> version of Python 2.x if you go the OpenGL route. You need
> 
> the following.
> 
> 
> 
> Python2.x + (Tkinter & Togl or WxPython) + OpenGL

Excellent..  Thank you for your response.  I'll start looking at OpenGL.  I've looked into Blender previously for simply animations and having an average user use that for any sort of interface would indeed be overwhelming.  I simply need a viewer that you could zoom and orbit.

It would also be nice if you could import an existing 3D CAD geometry for viewing.

I think I need to start downloading Python with a few of the libraries and start playing around.

Thanks

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-18 19:47 -0700
  Re: Beginner Question: 3D Models Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-19 03:20 +0000
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 04:13 -0700
      Re: Beginner Question: 3D Models Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-06-19 12:52 +0100
        Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 06:12 -0700
      Re: Beginner Question: 3D Models Fábio Santos <fabiosantosart@gmail.com> - 2013-06-19 13:07 +0100
        Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 06:14 -0700
          Re: Beginner Question: 3D Models Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-06-19 14:57 +0100
          Re: Beginner Question: 3D Models Fábio Santos <fabiosantosart@gmail.com> - 2013-06-19 15:11 +0100
  Re: Beginner Question: 3D Models Christian Gollwitzer <auriocus@gmx.de> - 2013-06-19 08:00 +0200
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 04:14 -0700
  Re: Beginner Question: 3D Models Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 07:17 -0700
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 09:34 -0700

csiph-web