Can anyone advise me on how to create a smiley face that will roll across the screen using matlab program?
Tks alot for your advise
> Can anyone advise me on how to create a smiley face that will roll across the screen using matlab program?
This is a very general question...
You can do this fairly easy in a Matlab window by drawing the smiley as texture map on a surface and let the camera roll. But if you want to roll the smiley outside a Matlab window ("across the screen"), I have a more funny advice:
Use the installation disk and some paint to construct your smiley. Then pull a thread through the hole and move it in front of the screen.
If you want to let it look more "professional", I'd recommend another programming tool.
And if you've finsihed your work, please don't forget to tell me, if the sophisticated software implementation or my energy efficient, programming and debug time-optimal, hardware base method did impress the audience more!
Good luck, Jan
How do i draw the the smiley as texture map on a surface and let the camera roll?
Pls advise. Tks
> How do i draw the the smiley as texture map on a surface and let the camera roll?
What have you done so far?
Do you have a smiley as picture? Which format? Do you know how to call IMREAD? Have you searched in the FileExchange, e.g.
http://www.mathworks.com/matlabcentral/fileexchange/21881
Good luck, Jan
Yap I had a smiley face save as .gif..
Yap I know IMREAD can read in the picture. However, how do I make the figure move across the figure window in matlab? Can advise as the link give below give no details of animation.
Rgds
> Yap I had a smiley face save as .gif..
>
> Yap I know IMREAD can read in the picture. However, how do I make the figure move across the figure window in matlab? Can advise as the link give below give no details of animation.
The linked function let you display the image on a surface object. The only thing left to do is using CAMORBIT and CAMROLL. Or you can move the camera position manually: Set the properties CameraPosition, CameraTarget, CamerUpVector and CameraViewAngle of the AXES object in a for loop and insert some PAUSE commands.
Good luck for the next step, Jan