We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,520 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Traffic Light

Sorry for my bad english, i have translated this task for fast, but i really neeed help.

Your task - to make automatic sfetofora (3d model).

Traffic light works in three directions: to the two directions of movement of vehicles (in the center and from the center) and to move pedestrians across the road ..

The default value for the green cars and pedestrians red. When the "pedestrian" presses (any key keyboard), then after a while sfetofora machines blinks, then switches to yellow and then - on the red. Pedestrian lights turn green. Then again, the yellow for cars - and goes into the initial state.

Evaluation system:

10 points - correctly implemented appeal to the properties of the object (sharik.color = ...)

10 points - the program runs in cycles (cycle while-True)

20 points - the correct sequence of signals

10 points - flashing implemented using a for loop

10 points - quality traced lights

10 points - rendered the road pavement

6 points - on the road at a random time passing machine, which stops at a red light.

4 points - the scene is centered in the background instead of black background - texture. For example, clouds or blue.

5 points - the program runs

5 points - in the bottom of the scene written by first and last name of the author

5 points - a neat, appropriate design of products (no fancy colors, disproportionate objects

5 points - in the text there are comments that explain the blocks.

I had made already some of the visuals, but i dont know how to make a processes what i need, i was trying to find a topic about this, but its nothing here...

My code now

from visual import*
#svetofoor figura
korobka=box(pos=(0,2,-0.5),length=2, height=6, width=2, color=(0.5,0.5,0.5))
zeljonij1=sphere(pos=(0,0,0), radius=1)
oranzevij1=sphere(pos=(0,2,0), radius=1)
krasnij1=sphere(pos=(0,4,0), radius=1)
zeljonij2=sphere(pos=(0,0,-1), radius=1)
oranzevij2=sphere(pos=(0,2,-1), radius=1)
krasnij2=sphere(pos=(0,4,-1), radius=1)
peskrasnij=sphere(pos=(0.5,2,-0.5), radius=1)
peszeljonioj=sphere(pos=(0.5,0,-0.5), radius=1)
palka=cylinder(pos=(0,0,-0.5), axis=(0,-10,0), radius=0.5)
3
Contributors
3
Replies
7 Hours
Discussion Span
3 Months Ago
Last Updated
24
Views
jevgeny.abramov
Newbie Poster
3 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

svetofora = traffic lights*

jevgeny.abramov
Newbie Poster
3 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Interesting assignment? Now, just one thing though... your code? We can't help you if you don't show us what you'vd worked so far.

Lucaci Andrew
Practically a Master Poster
649 posts since Jan 2012
Reputation Points: 91
Solved Threads: 91
Skill Endorsements: 12
vegaseat
DaniWeb's Hypocrite
Moderator
6,478 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,612
Skill Endorsements: 37

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0795 seconds using 2.7MB