ICM-W5 function

I reorganized my project W3.I think I understand more about function.

https://editor.p5js.org/MagicMonkeyWow/sketches/YYhqzbicU

 

And I want to explore more .

I tried to make the person’s eye follow my mouse and I want to use function to achieve that.But I failed to limit its range in the eye.

I tried to use object. And I tried to add this falling sakura as the background of my boy.

https://editor.p5js.org/MagicMonkeyWow/sketches/BF13bCaBO

Try to organize all the code, but it become a mess, like below.

https://editor.p5js.org/MagicMonkeyWow/sketches/Kvr8VWMTJ

My classmate Nancy came to help me debug, and finally I retained my homework.

I would like to try falling sakura next week.

 

 

 

W5-Pcomp Project1-Rainbow glasses

I want to go to I want to go to Disney land on Halloween.

There are too many pumpkin lamp in Disneyland and it cannot help me to be the coolest guy in Halloween.

I want to be the coolest guy!

Last week, when Danny showed us the Neopixel ring to us, an idea BUMPED into my mind.

I must make a glasses! I really want to have one!

 

Rainbow at night.

I asked my friend to test it.

 

More uses:VERY USEFUL!
1.Let us imagine a scene in life.It always happened in my life.
Sometimes your parents/partner/friends(anyone close to you) ask you something or talk with you, while
you are focusing on other things, you may answer them louder than usual.
Then they may think why you are so rude or why are you angry with them.
But actually ,you are not.You are just busy.

Faced with this situation,my rainbow glasses can connect a voice sensor in series.
If the sensor detects that the volume is higher than a set value, the rainbow glasses start to blink.
Back to the situation just now, if you wear rainbow glasses, blinking glasses will break the embarrassing situation caused by misunderstanding between you two.
You might avoid a quarrel.

This also applies to similar situation like the first debate.



If someone wants to interrupt you/start a quarrel or sth like that,
once their voice volume reaches the sensor setting value,

then "RAINBOW!"

In this case, many quarrels/debates/wars may eventually turn into comedies.
There will be less quarrels/debates/wars in the world.


2.I also want to connect a light transistor in series.
It is also what my rainbow glasses originally wanted to be.
When night falls, your glasses start to blink.How fun that would be!


But finally,I didn't solve the code problems.I want to combine the "if structure" of light transistor and random blink code of the glasses,
but it didn't work.


Challenges I met and What I need to improve
1.“Small”arduino

Perhaps I bought  so many electronic components on my shopping website(Taobao),it always recommend me some other electronic components now.
And one day,I saw this.The name of it is "Small" and it shows that it's a wearable Arduino(not real Arduino, sth like that.)
Why not have a try? Another reason is that I don't know what happened to my nano,maybe
I crashed it.The light on my nano didn't turn on and it didn't appear on my computer for several days.
But now it works suddenly and I don't know why.
Anyway,I tried "Small"this week.It's not stable and it always didn't appear on my computer.

2.
In my imagination, it should be like this.It's portable and easy to hide behind the glasses.

But it actually shows like this.
I have to use more complex circuit.
Because there are lots of limitations:
It's my first time to use soldering iron, and I didn't have much confidence in that;
I only have 2 neopixel rings and I don't want to damage them.
Finally,I gave up something I want to make sure it works.

3.I also spent a lot of time to figure out this.
At first,I connected 2 Neopixel ring in series, because it's easier to hide behind the glasses with less wires.
It always showed like this
.


Later,I found it's because each neopixel ring's working voltage is 5v and arduino only can supply 5v power.
So I finally connected them in parallel with more wires.
I considered adding a 5v power supply, but I only borrowed a 5v power supply instead of a 5v battery.
I was not confident in this method, and I didn’t want to damage my components anyway.So I finally connected them in parallel.

W4-VPD Temple

 

I want to make a temple scene this week.

After I have downloaded lots of materials from bridge,I finally found that the Bridge cannot export to my unreal.

With Todd’s help,I tried different version of Unreal and several kinds of plugin.My Unreal crashed a hundred times/::< and I spent a long long time . Finally failed.

hhh…I have 3 version of Unreal now,but it still didn’t work.

Actually ,I think I learnt a lot from this problem-solving process and I want to document them.

I knew how to install plugin now(I didn’t know anything about plugins before),and I’m much more familiar with Unreal file’s structure now, because I checked them maybe a thousand times.I started to learn how to ask for help.I used to be too shy to do that.Really thanks for Todd and Yongkun’s suggestion. 

 

 

My final solution is that I downloaded materials from the Bridge and imported them to Unreal from the folder manually.It’s kind of complex.And my friends also suggested me to try some models in sketchfab.

I got the buddha, some buildings, bushes and beautiful red door there and reorganized them.

I also got some sculptures and Japanese temple stuff from Bridge.

Finally ,I got my temple.

 

 

Video here:Tina in the Temple.

play with light

 

I also play with camera for a while and I think I need more time to learn more about them.

 

 

W3-PCOMP

My Project Plan

I want to make a pumpkin lamp for this coming Halloween, because I really want to have a pumpkin lamp when I was a child, but I have never had one. This time I want to make one with light and scary tone.

I plan to use photoresistance to control the bulb or big LED in it on/off.

And I tried photoresistance and LED this week.

And I also want to use a sensor of distance to control the scary tone of my pumpkin lamp.When it’s approaching to a person/or sth, the tone become higher and louder.

 

Actually,I really want to make a coke piano like this one.But it seems too difficult for me now.I would like to spend some time trying to find out whether I can make a simple one.

LAB

I had lots of problems in TONE OUTPUT lab this week and I am going to go to someone to ask for help.

1st

 I copied and pasted the code on the website.It showed like this, the first one worked ,but the second one not.

2nd I tried to change the number after map(),the second one work ,but it’s kind of different.

A more complex example-automatic tone

I tried this and it worked well.

A Musical Instrument

I didn’t know what happened to this one, it’s just didn’t work anyway.

Servo motor control

W3-VPD-Character

I want to name my tuna flower Tina,an Asian female with lots of muscle.

The left one is human rig and the right one is auto rig.

Tina in mixamo and try some animation.

Ask my friend to capture her body motion in RADiCAL.

Tina in MotionBuilder.

Tina in my scene inUE4,it looks quite different.

Q:

How to make nonhuman characters?(like my Tina with a fish head?)

W3-ICM A HAT CHANGING GAME

I want to make a hat changing game this week, but I only achieve a very basic one.I’m still working on it.

my sketch:

I want to make a hat changing game like that – my little boy can change his hat.And I want to have a right button and a left button to choose different hat style.

Now my program is like this:

I ran into a problem when I wanted to use a triangle button.I don’t know how to limit the interactive range just in my triangle button .

And I am also trying to add more hat style I want and trying to make my hat can slide in and out.I also want that my hats can shake when mouse click the hat.

Trying to figure out how to limit the range when the button shape is more complex. 

W2-Physical Computing Lab

I’m much more familiar with circuit this week and I have much fun!

1.Add digital input

I spent long long time on this one ,because I cannot connect my arduino and computer and I tried over and over again.Finally,I came to residents Nun to ask for help.

The key point is that I didn’t choose Nano 33 Iot here and I only select on “port”.

She helped me to solve this problem in one minute,but I spent a lot of time on it.So I think the most important thing I learnt this week is that I should learn how to ask for help.Though I am always too shy to do it.

After that, all labs run well. Really Really Happy when the led first flash!!!

 

So surprise!! I quite made some noise at first try!

 

W2-Virtual Production

Our story is

and I chose the second one” Tuna is a flower next to the curvy road.In order to find happiness,she has to realise that she is the flower Tuna not the fish Tuna.

I want to make a scene like this one.

It’s a place I have ever been to ,named “YaDan Devil City”.

It’s in a Gobi Desert, the rocks there are eroded by wind.

In my point of view,Tuna is a flower born in extremely harsh environment. One day, some ocean water suddenly appeared in the desert .

Then she started to realise that maybe she is Fish Tuna actually.

So I made a scene like this.

A pool of ocean water suddenly appeared in the desert .At the same time, a grassy path appeared and  stairs made by grass and bushes.Should Tuna start her adventure to find the ocean along this grass way?

video here:

 

At first,I wanted to use “rust metal” as the material of the mountain, but I found that it’s hard to achieve the effect I want,  eroded by wind and rain.

I also tried height map,

 

Question:

I really have fun in making landscape.But I met a problem while trying.

I don’t know what I pressed and all my landscape become these little black spot in the sky.

W2-ICM

This week,I add some variables on my 1st week little tiger.

Link

I realise that we need to choose a suitable variable when we want to meet some specific effect.

For example,

I use these code to move my tiger’s arm,

var handy=450

….

//arms left

  stroke(250,100,20)

  strokeWeight(10);

  line(160,handy,230,500);

  handy=handy+1;

But I found that I cannot limit the range of the movement of tiger’s arm.

My question is how can I limit the range of the movement?like I want the arm to go down and to back on the half way.

I knew I can use “random()” to achieve this easily, and that’s why I think it’s better to choose a suitable variable in the beginning.I think I need more time and exercise on familiarising with different variables.

I also have a problem in “1 element that is different every time you run the sketch.”

I do not remember we have learnt this and I also checked The Train Code videos.I asked my programmer friend,then he told me to use “if” and give me a link like that,https://codepen.io/leadream/pen/ZEWMreg .It’s too complex for me to understand.

Feelings this week:

DO NOT finish homework on the last day,then I can HAVE MORE TIME TO ASK FOR HELP.

2nd post this week:

I watched the videos for next class and I reedit my little tiger.I think I knew how to change one element everytime I run the sketch now.

AND ALSO,

I decide to adjust my way in finishing my homework.

Next week ,I will finish the assignment as soon as possible and then I watch other videos and material.

After that ,reedit my sketch and write a second post for that week.