473,408 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

3d programming without opengl

hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)

Thanks,
nelson
Oct 31 '06 #1
16 2575
"nelson -" <ne********@gmail.comwrote in message
news:ma***************************************@pyt hon.org...
hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)

Thanks,
nelson
Here's a page (http://www.vrplumber.com/py3d.py) with links to 73 possible
libraries.

I've played with Slut (http://slut.sourceforge.net/) and it is quite easy to
work with. Here's a Flash movie (recorded using Wink) of a sphere that I
programmed and rotated about:
http://www.geocities.com/ptmcg/python/sphere1.htm, and here is the program
that created it: http://www.geocities.com/ptmcg/python/vecSlut2.py.txt.

The demos that come with Slut are quite impressive, too. The Slut project
web page summarizes them here
(http://slut.sourceforge.net/examples/index.html), but the little videos
don't do them justice.

-- Paul
Oct 31 '06 #2
"Paul McGuire" <pt***@austin.rr._bogus_.comwrote in message
news:iH*******************@tornado.texas.rr.com...
"nelson -" <ne********@gmail.comwrote in message
news:ma***************************************@pyt hon.org...
>hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)

Thanks,
nelson

Here's a page (http://www.vrplumber.com/py3d.py) with links to 73 possible
libraries.

I've played with Slut (http://slut.sourceforge.net/) and it is quite easy
to work with. Here's a Flash movie (recorded using Wink) of a sphere that
I programmed and rotated about:
http://www.geocities.com/ptmcg/python/sphere1.htm, and here is the program
that created it: http://www.geocities.com/ptmcg/python/vecSlut2.py.txt.

The demos that come with Slut are quite impressive, too. The Slut project
web page summarizes them here
(http://slut.sourceforge.net/examples/index.html), but the little videos
don't do them justice.

-- Paul

Well, shoot, I killed my free bandwidth on GeoCities with that link to the
Flash animation!

I've uploaded a smaller video, should support 20-25 views/hour, instead of 3
like the old one. Please bear with me.

Thanks,
-- Paul
Oct 31 '06 #3
Paul McGuire wrote:
"nelson -" <ne********@gmail.comwrote in message
news:ma***************************************@pyt hon.org...
>>hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)

Thanks,
nelson


Here's a page (http://www.vrplumber.com/py3d.py) with links to 73 possible
libraries.

I've played with Slut (http://slut.sourceforge.net/) and it is quite easy to
work with. Here's a Flash movie (recorded using Wink) of a sphere that I
programmed and rotated about:
http://www.geocities.com/ptmcg/python/sphere1.htm, and here is the program
that created it: http://www.geocities.com/ptmcg/python/vecSlut2.py.txt.

The demos that come with Slut are quite impressive, too. The Slut project
web page summarizes them here
(http://slut.sourceforge.net/examples/index.html), but the little videos
don't do them justice.
Looks like c.l.py just slashdotted you ... """The GeoCities web site you
were trying to view has temporarily exceeded its data transfer limit.
Please try again later."""

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Oct 31 '06 #4
Hi paul,
i look at slut and it seem very good... Can i embed it into a
wxpython application?

thanks,
nelson
Oct 31 '06 #5
"Steve Holden" <st***@holdenweb.comwrote in message
news:ma***************************************@pyt hon.org...
>
Looks like c.l.py just slashdotted you ... """The GeoCities web site you
were trying to view has temporarily exceeded its data transfer limit.
Please try again later."""

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
It didn't take long either! I replaced the 1.4M .swf file with a 170K .swf
file, so things seem to be working again. (My b/w limit is 4.2M/hour, but I
can't complain when it's free!)

-- Paul
Oct 31 '06 #6
"nelson -" <ne********@gmail.comwrote in message
news:ma***************************************@pyt hon.org...
Hi paul,
i look at slut and it seem very good... Can i embed it into a
wxpython application?

thanks,
nelson
I've no earthly idea, nelson, sorry. The sphere program is the extent of my
slut experience (for which my wife is quite grateful!). I think the slut
website mentions a mailing list, that should be able to answer your
technical questions.

Good luck!
-- Paul
Oct 31 '06 #7

nelson - wrote:
hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)

Thanks,
nelson
I have no idea why you would want to do that. The fact that the scene
is simple shouldn't be the only reason. After all, if a user is able to
run the latest <insert_game_or_modelling_package_herebut your simple
scene runs much slower, he is going to assume there is something wrong
with it.

If the target user has even a simple 3D accelerator, you are taking a
huge performance hit. That shouldn't be done without a good reason.
What's more, giving it is should be a pure Python solution, you won't
even take advantage of MMX/SSE/3d now!, which all recent processors
have. I'm avoiding talking about raw Python performance here.

I did that once, so that I could learn how to make a software renderer,
but that's not your case, since it is a library you are looking for.
Perhaps there are other requirements that require what you are asking
for, but I can't see in your message.
Stephen

Oct 31 '06 #8
On 2006-10-31, nelson - <ne********@gmail.comwrote:
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple)
If you just want slow, it's probably easier to use OpenGL and
just put calls to time.sleep() in strategic places.
I was wondering if there was a library in python that allow me
to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would
be a pure python solution)
Oy. A pure Python solution would probably be _really_ slow.

--
Grant Edwards grante Yow! YOW!! Up ahead! It's
at a DONUT HUT!!
visi.com
Oct 31 '06 #9
Grant Edwards wrote:
Oy. A pure Python solution would probably be _really_ slow.
Pure Python doesn't necessarily imply "no graphics drawing code written
in some other language", though. You can get pretty far by using a 2D
library for simple 3D rendering.

</F>

Oct 31 '06 #10
Fredrik Lundh wrote:
Grant Edwards wrote:
>Oy. A pure Python solution would probably be _really_ slow.

Pure Python doesn't necessarily imply "no graphics drawing code written
in some other language", though. You can get pretty far by using a 2D
library for simple 3D rendering.
Someone wrote a 3D demo for the pygame.draw challenge*. It worked but
unfortunately he didn't end up finishing and submitting it. It had severe
performance limitations :)
Richard

*: http://media.pyweek.org/static/pygame.draw-0606.html
Oct 31 '06 #11
Richard Jones wrote:
>Pure Python doesn't necessarily imply "no graphics drawing code written
in some other language", though. You can get pretty far by using a 2D
library for simple 3D rendering.

Someone wrote a 3D demo for the pygame.draw challenge*. It worked but
unfortunately he didn't end up finishing and submitting it. It had severe
performance limitations :)
someone just posted this to reddit:

http://www.uselesspickles.com/triangles/demo.html

which I'd say qualifies as simple 3D with pretty decent performance
given what it does and what platform it runs on...

</F>

Nov 1 '06 #12
Fredrik Lundh wrote:
Richard Jones wrote:
>>Pure Python doesn't necessarily imply "no graphics drawing code written
in some other language", though. You can get pretty far by using a 2D
library for simple 3D rendering.

Someone wrote a 3D demo for the pygame.draw challenge*. It worked but
unfortunately he didn't end up finishing and submitting it. It had severe
performance limitations :)

someone just posted this to reddit:

http://www.uselesspickles.com/triangles/demo.html

which I'd say qualifies as simple 3D with pretty decent performance
given what it does and what platform it runs on...
OK, that's a pretty cool demo :)

My definition of "severe" would involve a slow-down if you tried to render
several of those relatively simple objects :)

On my Althon64 3500+ system running in Konqueror or Mozilla I can get four
windows viewing that page before performance really starts to drag.

I should convince Alex to dig up that old code - I always was curious to see
it. Hmm.
Richard

Nov 1 '06 #13

nelson - wrote:
hi!
i want to build up a simple 3d interactive geometry application in
python. Since i want to run it without 3D acceleration (a scene will
be quite simple) I was wondering if there was a library in python that
allow me to build 3D graphic without the need to use OpenGL.... I
google but i can't find nothing interesting... (the best would be a
pure python solution)
If you are worried about running your 3d app on older machines, OpenGL
will typically fall back to software rendering if the hardware isn't
available. Although you would have to be running it on an ancient PC if
that is an issue.

If you really want to avoid OpenGL, then writing a custom 3D engine
using flat shaded polys, with painters algorithm, rendered with your
favourite gui toolkit isn't a great deal of work.
Will McGugan
--
http://www.willmcgugan.com

Nov 1 '06 #14
On 2006-11-01, Will McGugan <wi**@willmcgugan.comwrote:
If you are worried about running your 3d app on older
machines, OpenGL will typically fall back to software
rendering if the hardware isn't available.
That's true. OpenGL (which will do SW rendering) will
certainly be available on most/all Linux machines (except for
headless or text-only servers).
Although you would have to be running it on an ancient PC if
that is an issue.
Not true. None of my machines have hardware 3D acceleration.
One is only 9 months old, the others are 2-3 years old.
However, OpenGL's software rendering works fine and has
sufficient performance for most things short of 3D video games.

--
Grant Edwards grante Yow! Look into my eyes and
at try to forget that you have
visi.com a Macy's charge card!
Nov 1 '06 #15
I don't thnk you should have any problems using Slut with wxpython - wx
would be much less amazing if it couldn't do something like that. On
the other hand, I thought that you were looking for something that
doesn't use openGL and I think that Slut is built around it.

Cheers,
Jordan

nelson - wrote:
Hi paul,
i look at slut and it seem very good... Can i embed it into a
wxpython application?

thanks,
nelson
Nov 1 '06 #16
"Jordan" <jo************@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
<snip>
On
the other hand, I thought that you were looking for something that
doesn't use openGL and I think that Slut is built around it.
Yes, slut *does* use OpenGL, so if that is in fact a poison pill for this
app, it's a no-go. The only reason I posted my original pointer to is was
to show that an OpenGL app doesn't require using a complicated API.

-- Paul
Nov 1 '06 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DaMan | last post by:
Can anyone recommend a good book that teaches how to program basic games in C++? I have some C and C++ experience, but not too much with graphics. The kind of game I want to write is a simple...
2
by: hpy_awad | last post by:
Where can I exactly find the header files and library files for borland C++ programming
4
by: Michael Sgier | last post by:
Hello I've a function like: extern CModelMD3 *pModel; gameCamera->MoveTo(* pModel); which returns: no matching function for call to `CCamera::MoveTo(CModelMD3&) but in camera.h i've:
1
by: Mathias Goldau | last post by:
Hi, Can someone tell me where I find some material (e.g. a compiler with graphics.h and conio.h (for free)) related to graphic programming BGI-like, and sound programming (not PC-speaker). The...
1
by: Scott Chang | last post by:
Hi All I tried to use the attached OpenGL code to draw a Star-shaped figure on my Microsoft Visual C++ .NET 2002-Windows XP Pro PC. When I did 'Build' in Debug Mode, I got an error C2065:...
5
by: john andrew | last post by:
-- hello If I wanted to do some game programming with C++ and openGL/directx do I need to know MFC /VCL . Can I just know C++ and bypass these extras and use just C++ with added libraries, no...
3
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from...
2
by: Jeff | last post by:
Hey I want to learn to program OpenGL. I have VS2005, so I thought it could be a good idea to learn how to program OpenGL in vc++.... Anybody knows where I can get the latest OpenGL SDK for...
2
by: lukas_sahardiman | last post by:
Hi I'm a beginner in C++ Programming i had some questions about open gl programming to create a 3d application 1. how do we create its basic engine?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.