LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2009, 03:16 PM   #1
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Rep: Reputation: 15
C++ or Python


I want to create 3D animation and also make some big programs. Is python capable of that??? or should I stick to C++????
 
Old 01-25-2009, 03:28 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by nesrail View Post
I want to create 3D animation and also make some big programs. Is python capable of that??? or should I stick to C++????
You can write virtually anything with any language. The questions is, how much C++ or python do you know? If you are great at C++, learning python to code an application would take some time for you to familiarize yourself with the language... It works the same way if you are good at python and wants to write the application in C++.

Now, if you are not good with either, Python is usually easier to get started, so go with that one.

Really, the language you choose to write any application is more often than not, irrelevant. What really might stop your progress is your own knowledge (or lack of) of the language you develop with.

Very specific situations apply, obviously, such as portable devices or hardware drivers, but more often than not, the language you use does not matter...
 
Old 01-25-2009, 05:30 PM   #3
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by nesrail View Post
I want to create 3D animation and also make some big programs. Is python capable of that??? or should I stick to C++????
You can program 3d graphics in both python and C++. C++ program will be much faster/more efficient, but development might take a bit longer. Python program will be more portable, but much slower, and you probably won't be able to create 3d graphics that require a lot of calculations (large particle systems, game engines, etc.). For short mock-up/demo, python will be enough (but if you will be able to make even Quake 1 engine in python, I will be very surprised). For larger CPU-intensive work, C/C++ will be better idea. You can also combine them. Make C++ program and embed python inside.
 
Old 01-25-2009, 07:10 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Nesrail -

Here's an interesting alternative you might wish to consider (in addition to OpenGL and all the other Usual Suspects):

http://www.codeproject.com/KB/graphi...AndOgre3d.aspx
http://www.ogre3d.org/index.php?opti...=469&Itemid=97
http://www.python-ogre.org/

IMHO .. PSM

PS:
Which language you choose is mostly a matter of taste. The runtime performance in Python vs. C/C++ will probably be *indistinguishable* from each other. Unless you render your own graphics pixel by pixel, the true bottlenecks will probably be in the graphics library.

Last edited by paulsm4; 01-25-2009 at 07:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
LXer: Charming Python: Python elegance and warts, Part 2 LXer Syndicated Linux News 0 08-31-2007 08:40 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 07:54 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration