3D rendering engine for python? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I would like to make an application in which I somehow specify the 'architecture' of a virtual world (in terms of shapes, voxels, whatever), then a pinhole camera's 3D coordinates and the direction it is pointing, and it returns an image representing the rendering of the 3D world. Any suggestions? Bonus points if you can render simultaneously for two different pinhole cameras, representing your two eyes. Thanks in advance!

If you want interactivity, you can use OpenGL if you install PyOpenGL. OpenGL is pretty low level, and takes a while to learn, but it is quite powerful. It is perfectly possible to render the same scene from two (or two hundred) different cameras using OpenGL, so there's that. However, you'll have to specify all the geometry that you want to render by drawing very simple shapes (really just lines, triangles, and rectangles)
The maker of PyOpenGL also has an additional module called "OpenGLContext" which takes care of some of the grungework for you; there are even tutorials at http://pyopengl.sourceforge.net/context/tutorials/index.html, and it includes scene-graph functionality, which will make specifying your scenes easier.
I've heard good things about Panda3D, OpenSceneGraph, and VPython, but haven't used them myself, and I don't know what support they have for stereoscopic rendering.
Good Luck!

Related

How to procedurally generate pixel art from pre draw assets? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I want to design a load of pixel art crabs (crabs are just an example) in different colours with different backgrounds, claws, gloves, eyes etc.
The way I envision it is that I would draw multiple assets that a program will stick together randomly and check if it’s the same as another it’s already generated. I assume it would be put together via a grid (one section of the grid will always be a claw but it will a randomly selected by the program for example. All the other sections of the grid will be for one specific part of the body as well).
I have no idea how to do this or where to start. I’m quite new to coding so I’m really looking for advice. How can I achieve this? What are some good key words to search for tutorials that might help? What libraries or anything will I need to use to have my code create the pictures? How do I link the drawn assets to the code? How do I get the code to export the generated designs to a folder? And anything else you know I’ve missed!
The pixel art will just end up being art, not game assets or anything.
Thanks a lot for reading and also thanks a lot for any help! Much appreciated! I know this is very noob stuff and I’m more than willing to put in the work, I just need some guidance from you guys!
Basically, you would write code to read from the original images, them paste them together into new images.
The processing programming language is a great tool when coding for artistic purposes: https://processing.org/
You may take a look at this list of articles and tools for creative coding: https://github.com/terkelg/awesome-creative-coding

How to implement SIFT (Scale-invariant feature transform) for 3D image in Python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 months ago.
Improve this question
I saw many examples of SIFT for 2-dimensional image only: http://docs.opencv.org/3.1.0/da/df5/tutorial_py_sift_intro.html. But in Wikipedia there is written that SIFT may be applied for "3D modelling" as well. Please help me to find examples for 3-dimensional image in Python, or provide me the ones of your own. I need to find locations of Amino Acids within given protein (creo EM scan), and I want to compare precision of SIFT compared to other heuristics calculations.
If you need to do some 3D program, I suggest you to look at this great library: Point Cloud Library (PCL). However, I think you might need to program in C++ mainly.
If you really like to code in Python, you could look at the python-pcl. It is a python binding to the subset of actual Point Cloud Library.
And if you like to find how to use 3D keypoint detectors, including 3D sift, you can look at this page here and a nice tutorial here.
There is a 3D SIFT implementation on GitHub: SIFT3D
It is implemented in C but it has a CLI, so it is possible to call from Python.

Which Python3 lib for graphics? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been slowly learning Python over the past couple months and I'm currently building some scripts for work that I'd like to turn into an application at some point.
What I need to do is import something that will build graphics. For example, I need to build geometric shapes, fill them with color, and draw within them, possibly even load PNG files on top of them. It's for an icon set, but it would potentially build 20,000 or so icons, based on variables. Then it would save the generated graphic to an external file.
If anybody is familiar with MIL-STD-2525C, I'm trying to build a python-based generator for the SIDC symbols. So, suggestions for what libraries, native or third-party, to import? Please, no turtle. :)
Take a look at Cairo.
It's a 2d graphic library with an easy-to-use API. It supports SVG documents and PostScript. So it should be ideal for icons and pictograms.

3D Python based simulation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I want model the flight of a couple of planes using path data. I want to make it so you can see the paths and play/pause as well as look around and interact with the environment. What open source python packages/programs can i use that will allow me to import the data and from that show the flight of the planes
I think you could give more details of what you want, do you already have the 3D models? Do your paths are in geographical coordinates? With the information you provided, it seems you want a 3D engine.
For open source 3D display using Python I would suggest Ogre 3D or Panda 3D. The first is a 3D graphic rendering engine, the second is a 3D game engine.
And there is also Blender 3D, wich is a complete 3D software.
Keep in mind that working with 3 dimensions is always a hard task. For all the solutions above, you need time to learn and understand what is going on. I would recommend Blender for the models and Panda to get everything together and working (although Blender have a Game Engine, it is not as good as Panda).
Also, take a look at these other questions.

Python library for animated map visualization [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to visualize track on geographic map. I don't need thousands of layers, 3d and other GIS functionality. I just want to visualize my (latitude, longitude, altitude, time) tuples on map background as simple as possible. Animation should also be supported.
Could anyone recommend good Python library?
There's something called basemap which is an addon for matplotlib to do maps.
See the gallery or cookbook example.
Matplotlib has it's own animation support and I don't know any reason it shouldn't work with basemap (although as that page notes, it's not the fastest thing around).
There is a YouTube video series which covers basemap and matplotlib called 'Geographical Plotting with Python' posted by Sentdex.
Part 1 -
http://www.youtube.com/watch?v=E6gvtfQHJUs
Incidentally he has a number of other interesting Python projects on his channel:
http://www.youtube.com/user/sentdex

Categories

Resources