Scalable table with bowl
A sizeable table and bowl. I hope you like the customisation of the table and the bowl, creating weird combinations.
I'm doing this to get used to 3D shapes and since I like my models to be fun to play with I made the model sizeable. The way I created the sizeable feature was by making a variable and timesing my values with that.
I also had a problem and I didn't know where I should post it, but I tried to use the setit but it keeps doing nothing. I left it in the so someone could help me out since it does nothing. Thanks, I found this out while going though the documentation.
Heres the code and the world:
CS ; BY MATHSKID ; please play around with the scale ; scale of tabel MAKE "t 2 ; scale of bowl, scale: 1 = 0.25 metres MAKE "b 1 PU SETSCALE :t*2 :t*0.07 :t*1 SETDC 770 600 0 SETEC 60 40 100 SETSC 190 100 10 SETSH 500 BOX SELECT OBJECT SETIT 9 6 FD :t * 0.4 LT 90 FD :t * 0.9 RD 90 FD :t * 0.6 RU 90 SETSCALE :t*0.1 :t*1.2 :t*0.1 SETSH 500 SETDC 220 170 0 SETEC 410 270 0 SETSC 350 220 0 REPEAT 2[CAN SELECT OBJECT SETIT 9 5 LT 90 FD :t*0.8 CAN SELECT OBJECT SETIT 9 5 LT 90 FD :t*1.8] RU 90 FD :t*0.64+(:b*0.18) RD 90 BK :t*0.3 LT 90 FD :t*0.5 ; a bit off centre to look natural SETSCALE :b*0.25 :b*-0.18 :b*0.25 DISH HOME FD 1.5 DN 1.2 PD UP 1 PU UP 0.3 RU 180 RT 180 LABEL [1 METRE]
Please comment on what you like and don't like about it
- mathskid's blog
- Login or register to post comments
- 6064 reads
Comments
Good job
Hello mathkid,
That is a nice table that you have created.
If you have any questions, you can try posting to relevant forum at http://vrmath2.net/forum. Or if you asked in the blog, I think people who read your questions will also try to help if they know the answers.
For SETIT to work, you need to SELECT OBJECT first. This wiki page (the second video) has information you need for using SETIT. http://vrmath2.net/content/how-create-ice-cream-cone
I also noticed that you formatted your Logo codes in X3D, so I have edited for you and formatted them in Logo. I hope you don't mind.
The last line of code (line 30) you have LABEL "1_Meter, which is fine. But if you want a space between 1 and Meter, instead of an underscore, you can write:
LABEL [ 1 Meter ]
Cheers,
Andy :-)
Thanks
thank you I'll edit the code and look up setit, Do you like the sizeable feature.
MATHSKID
Scalable feature
It is cool to use setscale command to resize object.
I also blogged this feature but slightly different in my Resizeable Christmas Tree https://vrmath2.net/content/resizable-christmas-tree.