Python 3D Graphics Tutorial 19: Adding Text to Your Visual Python Models

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video we show step-by-step instructions on how to build a 3D clock face model in Vpython. We will animate the clock in this lesson, with second, minute and hour hands. We then how to show how to make it keep accurate time by synchronizing with your system clock time. We will also create proper hand motion with the hands move incrementally between integer time values.

#Python
#Lessons
#Vpython
Рекомендации по теме
Комментарии
Автор

Thanks for another great lesson. Appreciate your efforts in putting these together for us.

leeg.
Автор

I have learned so much from this man. Thank you Paul.

zaktheinstaller
Автор

HI Paul - took your advice - easy way - added 4 lines in original program to get the numerals in and aligned ! Looks great, thanks

ardespmaker
Автор

Legend! These lessons are so addictive. On a cold winters day, what else would you want to be doing? Thanks Paul.

steveholt
Автор

Per VPython help:
Limitations: It is important to know that this 3D text object is very complex and expensive to display, nor can you modify the letters displayed once the object has been created. If for example you want to display rapidly changing text, use the label object (displayed in front of the canvas) or the wtext object (displayed above the canvas as part of the title or below the canvas as part of the caption). Also see the section "Displaying text" of the canvas documentation.

stefanonicolini
Автор

I'm a kind of a Python Prodigal Son who lost his way for a while making the whole process much more complicated than was needed. You said to KIS (keep it simple stupid) but I fell for the old trap of being too complicated using a For Loop when none was needed. I ended up just using the code for the Hour Tick Marks and incorporating its For Loop and the Text Label code with a bit of jigging. Still that took me a day or so to do. All the numbers are there but the 12 O'Clock is a smidgen out. The other hour annotations seem in the right place?? Anyway, I didn't cheat and haven't worked through Tutorial 20 yet so I'll do that tomorrow and find out how an expert does it. Thanks once again.

alfredcalleja
Автор

I jumped the gun on this and published "this homework" a week or two ago. Which is handy because I need more time to try and complete the 2 player Pong game assignment.

itsmeintorrespain
Автор

According to what I read in an online manual, you can not change the text dynamically in the text object. It can be changed with text= parameter in the label object or wtext object. It seems that it should be changeable in the text object too but, unfortunately it is not.

bassman
Автор

Sir...i appreciate your effort in making programming easier for us..i learnt your arduino tutorials and happily i do cool project on my own..i finished your python tutorials last 2 days and i hope you make videos on data analysis..i learnt python because i wanna use it for data analysis and i will be happy if you can make videos on it.i find your videos helpful and you have helped my programming life alot cuz you are the best teacher that have ever taught me things that i understand.i went to 3 tutorial for arduino and i left until one day that i met your videos online and i am glad that arduino is not a problem now..pls make videos on data analysis, i have searched and searched and unfortunately i have never met your standard.pls make videos on data analysis 🙏🙏

MicroXel
Автор

hello professor I am starting a game in unreal engine, but looking on youtube tutorials I found your channel, I would like to know if you could mix this technology that you show in your video in a game and also add artificial intelligence to the character in coordination with animations and what to in turn, learn and incorporate the game character also GPT-3 models to autocomplete actions in the game, thanks

djramiclone
Автор

Legend!
Hi Paul, I've been sharing my code in the comments, but it's getting pretty long! I believe you have a site where we can post this, correct? Can you give me a link?
I have a feature in the code so the graphics only update once a second. I believe it's less resource intensive on the processor and I don't have to use the "rate" command.

gordonspond
Автор

Lesson 18 is missing from playlist. Quicklick:

yourijpl
Автор

This is the link to my corrected homework:

MrElFRanz
Автор

Thank you for another wonderful lesson!

antrikshfulwani