954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

3d programming in Python

Hy I wanted to know what the best way is to program 3d in python without usin Blender. What I really want is to put my 3ds max object in a Python program.

Thanks

Mkaveli

Mkaveli
Newbie Poster
8 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

Visual Python (VPython) comes to mind. Here is an example ...

# use the curve function to draw a helix in space
# press the right mouse button to rotate the object
# experiments with visual Python (VPython) from: http://vpython.org/
"""
radius is thickness
color (red, green, blue) color values 0.0 to 1.0 
default/white = (1,1,1)
"""

import visual as vs

vs.scene.width = 500
vs.scene.height = 500
vs.scene.title = "curve draw helix (drag with right mouse button)"
# avoid autoscale (autoscale default=True)
vs.scene.autoscale = False

spring = vs.helix(pos=(0,2,1), axis=(7,0,0), radius=3)
# copper color
spring.color = (1,0.7,0.2)
vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

OK but can i load my own models in there??? Thank you

Mkaveli
Newbie Poster
8 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

Hy I wanted to know what the best way is to program 3d in python without usin Blender. What I really want is to put my 3ds max object in a Python program.

Thanks

Mkaveli


Why dont you use a 3d engine ?

The most famous are pyOgre and Panda. Both very powerful for 3d. http://www.ogre3d.org/tikiwiki/PyOgre

http://www.panda3d.org/

thekilon
Newbie Poster
23 posts since Jan 2009
Reputation Points: 10
Solved Threads: 2
 

Definitely Panda3D.
Disney uses it.

jcao219
Posting Pro in Training
417 posts since Dec 2009
Reputation Points: 28
Solved Threads: 97
 

Yeah Panda3D is definitely awesome, but never learned how to use it though.

ultimatebuster
Posting Whiz in Training
250 posts since Mar 2010
Reputation Points: 24
Solved Threads: 69
 

I have used 3dmax for very many years,but i have not check if there any python libraries/api for python(mayby i should do that for i am big fan of both 3dmax and python)
3dmax has it`s one language called maxscript.
Here are some stuff that i have made in 3dmax.
http://snippsat.cgsociety.org/gallery/

You has off course blender as you mention,where python is the main language for blender api.

snippsat
Practically a Posting Shark
808 posts since Aug 2008
Reputation Points: 353
Solved Threads: 294
 

Panda3D is the way to go. You just need to find an .egg exporter for 3Dmax; This will help you get started.

Then just load your exported models into panda3D.

If you haven't checked out panda3D yet look here.

I used to work with panda3d, but have moved on to the Unreal Engine. The UDK 3 is really impressive; and not hard to pick up. No python though; it uses whats called Kismet for its logic.

Tech B
Posting Whiz in Training
268 posts since May 2009
Reputation Points: 59
Solved Threads: 33
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: