How to procedurally generate pixel art from pre draw assets? [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 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

Related

How can I write this simple algorithm? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
this is my very first stackoverflow question.
I'm not a native speaker, but I study mainly in english, and I've tried to search this around the internet with different approaches to my text but I couldn't find anything.
And i'm having trouble to find some directions to write a simple code that follows something like this:
example:
We have a set of values, for example, characters from a game, or flags from a country, etc.
Suposing we have three flags: Japan, Usa and Israel.
We inform to the user these values, so then he knows what are the possible picks, and choose one.
Then, the algorithm make questions like: "Is the blue color present in this flag? yes or no?"
(if the answer is yes, than the algorithm eliminates Japan, for example)
Then the algorithm make some more pertinent questions until just one flag is left.
"You chose the flag of United States."
I know stackoverflow maybe it's not intended for such simple and beginner questions, but if I could have any clue on how to develop this simple algorithm maybe it would help me on how to apply if statements and things like that into my codes and my current ideas. I'm learning Python and Math by myself currently, and every small step is very enlightening.
If someone could fill me in with some Python structure for this or, or pseudocode, or even what phrase should I google, it would mean a lot to me.
Sorry for my bad english!
I think you have to prepare a list of questions first, then with each question, you will have a list of remaining answers. After asking a bunch of questions, you will get the final answer as you wish.
For example, I will have a dictionary storing questions for the flag examples above:
list_options = [{'q': 'does the blue present in the flag?', 'y':['israel'], 'n': ['japan', 'usa']}, {'q': 'is the circle in the flag?', 'y': ['japan'], 'n': ['usa']}]
So at each step, you throw a question to the user and eliminate some answers until you get the last one.
Hope this could help

3D rendering engine for 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 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!

Data visualization tools for geographic data project [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'm pretty new to the whole idea of data visualization, so I was hoping people could point me in the direction of efficient tools to use for a problem I have:
I've got a lot of numerical data (they are counts) that are tied to specific countries with a two-letter country code. Ideally, I'd like to be able to represent these counts using a sort of world heat map. In other words, if the count for India is 20 and the count for China is 5, I'd want China to be colored light red and India to be colored dark red.
What tools would be best to do something like this? I do my data manipulation and analysis using pandas and Python, so I'd love to keep things in the Python family, but I'd love any suggestions at all.
Matplotlib has something called basemap
Vincent
Databench is a tool that connects your Python analysis with an html frontend where you can use tables and interactive elements to navigate your data. You can also use d3.js or higher level JavaScript libraries that use d3.js to visualize your counts on a map.

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.

A good matplot tutorial (from beginner to intermidiate)? [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 years ago.
Improve this question
Can anyone recommend a good matplot tutorial. I am a complete beginner - but have used similar software (matlab, R etc), in my halcyon days at University (i.e. a long time ago).
A google search brings up a list of dubious quality, and the 'official' docs are too terse, or provide examples that are more 'edge case' (e.g. drawing dolphins swimming in a bubble), than one is likely to meet in practise.
I want a manual that provides the following information in a well structured manner:
Introduction to the data types
Introduction to 2D plotting with some simple practical examples (simple 2D graphs)
Introduction to 3D plotting with some simple practical examples (simple 2D graphs: contour and surface)
[Edit]
I'm new to both Python and matplot (but not new to programming - I have a C/C++ background)
There is a nice book called "Matplotlib for Python Developers"
It doesn't cover 3D graphics, though.
Are you a beginner with programming, Python, or just matplotlib? Because each of those will provide entirely different points of entry. I'm quite competent with Python, but I had not used matplotlib so much... however, the gallery has examples of different types of graphs and it's usually somewhat simple to convert the examples to your own use-case.
It's also a lot easier if you know PyGTK since they use a fair amount of said library in matplotlib.
Edit:
Also, Ipython in pylab mode is really good for exploring the objects, methods, and modules in pylab.
This might be useful:
Getting started with Matplotlib
http://showmedo.com/videotutorials/video?name=7200090&fromSeriesID=720
A 10-page tutorial: Raymond
Not a tutorial, but more examples:
scipy.org/Cookbook/Matplotlib
(#morpeous, if you know of any good tutorials of the kind you'd like,
please post them — might motivate someone.)
Good one for begineers:
See some sample from the below link
https://sites.google.com/site/scigraphs/tutorial#TOC-Simple-plot--font-size-2-

Categories

Resources