Toon Boom动画制作入门课程链接:https://www.imooc.com/learn/764已经变成了安卓,请提供新的地址
时间: 2023-08-01 22:10:56 浏览: 89
非常抱歉给您带来的困扰,Toon Boom动画制作入门课程在慕课网上已经下架了。如果您想要学习Toon Boom动画制作,可以考虑参考Toon Boom官网提供的教程和文档,里面包含了大量的教学视频、文档和示例文件,帮助您快速入门Toon Boom动画制作。
此外,也可以在YouTube上搜索Toon Boom相关的教程,有很多高质量的教学视频,可以提供帮助。希望这些信息能够对您有所帮助。
相关问题
Toon Boom动画制作入门的访问链接
Toon Boom动画制作入门的访问链接如下:https://www.imooc.com/learn/764。这是一个由慕课网提供的在线视频课程,介绍了Toon Boom动画制作的基础知识和技能,包括场景设计、角色设计、动画制作等方面。通过学习这门课程,你可以了解动画制作的基本流程和技巧,掌握Toon Boom软件的使用方法,提高动画制作的技术水平。
unity quad shader 后 Shader "EH_SampleShader/ToonShader" { 保存图片到 temp.png 目录
要将Unity Quad使用的Shader渲染结果保存为图片,你可以使用RenderTexture和Texture2D来实现。以下是一个保存Quad渲染结果的示例代码:
```csharp
using UnityEngine;
public class SaveQuadRender : MonoBehaviour
{
public RenderTexture renderTexture;
public string savePath = "temp.png";
private void Start()
{
// 创建RenderTexture,并设置宽高与Quad相同
renderTexture = new RenderTexture(Screen.width, Screen.height, 24);
// 设置摄像机的渲染目标为renderTexture
Camera.main.targetTexture = renderTexture;
// 创建一张与renderTexture尺寸相同的Texture2D
Texture2D texture = new Texture2D(renderTexture.width, renderTexture.height, TextureFormat.RGBA32, false);
// 渲染摄像机
Camera.main.Render();
// 激活renderTexture
RenderTexture.active = renderTexture;
// 读取像素内容到texture
texture.ReadPixels(new Rect(0, 0, renderTexture.width, renderTexture.height), 0, 0);
texture.Apply();
// 将texture保存为图片文件
byte[] bytes = texture.EncodeToPNG();
System.IO.File.WriteAllBytes(savePath, bytes);
// 释放资源
RenderTexture.active = null;
Camera.main.targetTexture = null;
Destroy(renderTexture);
Destroy(texture);
}
}
```
在这个示例中,我们首先创建了一个与屏幕大小相同的RenderTexture,并将摄像机的渲染目标设置为这个RenderTexture。这样,Quad渲染的结果就会被渲染到这个RenderTexture上。
然后,我们创建了一个与RenderTexture尺寸相同的Texture2D,并使用ReadPixels函数从RenderTexture中读取像素内容。接着,我们调用Apply函数来应用像素更改。
最后,我们使用EncodeToPNG函数将Texture2D保存为PNG格式的字节数组,并使用WriteAllBytes函数将字节数组写入文件中,保存为temp.png。
请确保将这段代码添加到一个游戏对象上,并设置好保存路径savePath。当游戏运行时,Quad的渲染结果将保存为temp.png文件。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)