|
I have an application written in python that's basically an etch-a-sketch, you move pixels around with WASD and arrow keys and it leaves a trail. However, I want to add a counter for the amount of pixels on the screen. How do I have the counter update...
Answer Snippets (Read the full thread at stackoverflow):
EggsPixels = spamSurface.render(str(pixelsOnScreen), True, (255, 255, 255)) hamDisplay.blit(eggsPixels, (....
What you need is pygame.font module
#define a font surface spamSurface = pygame.font.SysFont('Arial', 20) #then, in your infinite cycle...
|
|
Does someone know how to draw 3D surfaces and hide the invisible lines?
I remember reading some code from an Apple II book, and it was only about 25 lines in BASIC, and it could plot some 3D surfaces, such as a mountain or a shape that looks like water...
Started by Jian Lin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Probably the line drawer was a Bresenham, modified to skip... .
If I recall correctly, these were surface plots, and the trick used was to plot the lines from front to back, keeping track of the min and max y plotted for each x.
I remember that book.
|
|
I have an acquaintance who works at a school where there was a suspected case of swine flu and they had to sterilize all the surfaces in the school, including the computers in the computer lab. What would sterilize a computer in such a situation without...
Started by squillman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
This comment suggests diluted alcohol is....
I'm not sure if they would steralize to medical standards, though .
An oldie from Slashdot: Disinfection Technology/Methods for Computer Equipment?
You can buy wipes specially designed for cleaning LCD screens .
|
Ask your Facebook Friends
|
I have a fairly powerful system (2.8Ghz Intel Pentium Dual Core, eVGA 8800 GTS Superclocked, 2GB DDR2 Crucial RAM) but when i turn on the mode to render polygons as flat surfaces (by pressing 5) in Maya 8.5 Personal Learning Edition it slows down to a...
Started by RCIX on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Well I'm not sure if it....
Perhaps you could upgrade your videocard since that will most likely be used most for this kind of work
I'm not sure if Maya has a CUDA plugin, but that (theoretically) should speed up the program a lot for such kind of tasks .
|
|
I have setup a small shooter game as a tutorial for myself in SDL. I have a struct of a projectile
struct projectile { SDL_Surface* surface; int x; int y; };
And I put that into a vector.
vector<projectile> shot; projectile one_shot;
And when I ...
Started by Ólafur Waage on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you use the same surface....
When you destroy the projectile is a game design decision; probably when it leaves the screen at the latest, but also of course when (if) it hits a target .
You should free the surface when you destroy the projectile.
|
|
Anyone here aver go to SURFACES? I have been to Coverings and Total Solutions ( before the PLUS ) I know TS is more classroom type seminars.
Is Surfaces worth the trip?
Started by pgc555 on
, 15 posts
by 9 people.
Answer Snippets (Read the full thread at johnbridge):
Both Coverings....
I am hoping surfaces is a bit more eventful.
I will be there for WOC and stopping in for Surfaces/Stone Expo Coverings was pretty disappointing this year.
Surfaces is all flooring.
Coverings is King for a tilesetter.
|
|
In the following code, there is not just one circle on the screen at any given point in time. I want to fix this to make it so that it looks like there is only one circle, instead of leaving a smudge trail where ever the mouse cursor has been.
import ...
Started by lotsofsloths on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And then blit the sprites/other surfaces in their new positions (blits in Pygame are very fast, so.
|
|
If a manufacturer states that his binoculars are nitrogen filled and then goes on to state that all AIR to GLASS surfaces are multicoated, does that mean that only the front outer surface of the front objective and the exterior surface of the ocular lens...
Started by cappi on
, 14 posts
by 8 people.
Answer Snippets (Read the full thread at birdforum):
That all air to glass surfaces are multicoated only to multicoat the outer surfaces since they are the only lens surfaces to encounter ordinary air was really witty - in fact....
Or any other nonreactive gas works as good, not better .
|
|
Http://lambdageneration.com/posts/more-info-and-concept-art-surfaces-on-valves-secret-new-game-sob/
They didn't have an exact title name, but it's definitely not half-life 3.
Started by dantesus on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at joe):
[22:59] (Narwhalius) LESBANS FAPFAPFAP
10:43 ....
Pooaw - That reminds me, do you still have that can of MS paint hair growth?
isybub - I had my period .
SON OF A BITCH
Ikri - It almost brings a tear to my eye knowing I've had Wolsk's syrup on my pancakes .
|
|
Righto, I am a bit stumped as to what to do here.
I have a foam wing that I wish to glass. It has an aileron control surface which is connected to the main wing with foam - a bit like Multiplex do.
Am I best to cut the aileron free and glass wing and ...
Started by Impailer on
, 10 posts
by 4 people.
Answer Snippets (Read the full thread at freeforums):
I was going to glass.
You might want to consider doing the tail surfaces as well.
And I would/fuselage joint.
Doing the tail surfaces as well.
|