unity ssao pro怎么添加 ssaoeffect

日UNITY开发经验
1.unity圣典中文手册搜索
2.场景转换
首先要在build setting里添加必要的场景 接着我用的是给按钮添加ngui里的 LoadLevelOnClick
脚本修改levelname即可
3.几个镜头、后期特效:
1)泛光和镜头眩光 Bloom and Lens Flares
2)法线的边缘检测特效 Edge Detect Effect Normals
3)抗锯齿(后期效果) Antialiasing (PostEffect)
4)屏幕空间环境遮挡图像特效 Screen Space Ambient Occlusion (SSAO) image
5)景深3.4 Depth of Field 3.4
错误信息:BCE0044: unexpected char: 0x3000.
解决方法:
************************************************************
<font COLOR="#x3000表示出现了汉语的空格,编译器只支持使用英文的空格
你把这个脚本中,所有出现空格的地方,全部用英文的空格重打一遍
************************************************************
5.NGUI-UIROOT
马克一个屏幕自适应
*************************************************************************************************
UIRoot有一些可供使用的缩放类型。最常见的是PixelPerfect。这个模式下,你的UI将以像素为单位,一个300*200的挂件将在屏幕上占据300*200像素。这也意味着你的UI在一些低分辨率的设备上看起来会比较大。而你的UI在一些高分辨率设备上看起来会比较小。这个设置的好处是你的UI将尽可能贴近美术的设计。
FixedSize是精确的对立面。当UIRoot设置了这个模式,你的屏幕不管多大,将一直保留相同的大小。这意味着如果300*200的挂件如果在你分辨率的屏幕上占据25%的位置,当你分辨率降到的时候,它依然占据25%。如果你不关心你的UI将不同屏幕看起来是怎样的,而你也不管UI是否贴近美术设计,那你就选择这个选项。当选择这个选项的时候,不要忘记手动设置高度。
FixedSizeOnMobile设置混合了前面的两个。它使得这个设置在构建桌面版本的时候是“PixelPerfect”,而在移动平台却是“FixedSize”。
*************************************************************************************************
6.UI音效控制
设置里面用来控制音效大小 我是直接用的NGUI里面的uisound volume脚本附到slider上
试了试成功了另外再给slider下的thumb 添加一个uiplay sound脚本
trigger是onrelease&这样按住thumb拖动再松开时候会有音效拖动到不同大小音效声音大小不同
&自己琢磨的 不知道是否正确
搜了一下网上的其他方法 没试过 马克一下
觉得静态的天空盒太单调 所以搜了搜有没有动态的 找到一个unisky的插件
试了试感觉不错但是关键是&手机上运行的时候一点都不流畅清晰!!!还有花屏的现象
果断差评!!!
虽然不支持安卓 但还是来几个搜到的教程 马克
[Unity3D]呼风唤雨:天气插件UniSky的使用教程与案例
UniSky入门资料
然后找到一个叫unistorm的 两个地方下的 130m带有雪景&感觉还不错
我更喜欢49m的用的也是49的
就是吧 两个包导入进去之后脚本有错...基本上都是某某某变量没声明&
搜了半天也没发现相关的解决方法&就瞎猫碰死耗子的尝试着自己修改javascript
【【其实就是在变量前头加上var.....
运行了他的demo感觉好极了 尝试着修改了参数 感觉更好了
而且吧 插上手机运行&很流畅 没有花屏
唯一的问题是 我不会弄他的声音 倒腾半天终于有风雨声 可是一会就没了但明明屏幕上雨还在下
雷电声也没听到 不知道咋办
UNIStorm(49M)
UNIStorm(130M)
8.退出脚本
我做的响应手机返回键退出 没有退出按钮
我做了修改 把脚本下面ongui里面的都删了 最后就剩开头那两三行 可行
搜索到的关于退出其他的方法
到现在为止只完成了一个主mune和一个library 还有半个options
想要尝试着发布一个apk按手机里试试【【其实是不知道手机连数据线可以直接Build&Run.....
发布之前要搞定开发环境啊 JDK和SDK啥的
这是我的经验贴
从这里学到的
大体上就是file--&build settings--&player
settings--&找到default icon把图片拖进去【【他下面的default
cursor是鼠标的样式之前傻呵呵的把icon也拖到这里 结果运行时候鼠标变成icon吓死惹
2)player settings--&identification
这贴里有发布环境设置和虚拟机相关的内容 可以借鉴
****************************************************************************************
在Inspector视图中选择Android的小图标
1处如果你原先没设置。应该是pany.Productname.
记住要把Company改成别的。只要不是Company就可以了。不然发布不了。
2处为版本控制,选择你需要的版本即可。
****************************************************************************************
导出之前选择player settings 设置Resolution and Presentation中的default Orientation为landscape left或right
第二个帖子里提到了“QVGA HVGA WVGA VGA 指什么”
帖子里的回复
4)TextureCompression
5)Android API Level
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。Unity3D for VR 学习(11): 后期屏幕渲染特效(Image Effect) - 推酷
Unity3D for VR 学习(11): 后期屏幕渲染特效(Image Effect)
在Unite ShangHai 2016 Keynote中,《Adam》的图形技术介绍,令人印象深刻:可以与电影效果相媲美、近乎次时代大作、好莱坞大片效果的3分钟实时渲染的短片,淋漓尽致的展现了Unity 5.4的奋发图强,和对VR开发者的潜台词–“相信Unity 5.4,VR没错的。”
本文就Image Effect进行实践,所用版本是Unity 5.4.0b14 beta版本。
下载Image Effect插件
Unity内置的特效,已经于免费开源了:
下载方式1:Asset Store&&
&&&&&&&&& 版本:
(Apr 06, 2016)文件大小: 714.5 kB
下载方式2:bitbucket 开源社区&&
&&&&&&&&& 为了持续增强Image Effect的功能和提高性能,官方还设立一个论坛版块:
部分渲染特效实践
使用渲染特效,非常简单,直接在Camera添加组件即可—下载完Image Effect插件后,导入Unity即可使用。
Screen Space Reflection屏幕空间光线追踪反射(SSRR)
Screen Space Ambient Occlusion (SSAO)& 屏幕空间环境遮挡特效 —模拟全景漫反射
反|抗锯齿(Anti Aliasing | SMAA).
Bloom 泛光 场景变得梦幻
色调映射 ToneMapping【HDR模式有用】–& [和Bloom混合使用]
深入学习文档
Unity自带的英文文档,非常好,下载Unity的时候直接安装一下,遇到问题,点击问号,即可打开本地的英文文档,便于深入快速学习。
然后,输入Image Effect关键字搜索,即可打开Unity内置提供的特效帮助–有图、有文字说明,学习还是挺方便的。
后期屏幕渲染原理
屏幕后期渲染,使用的是Graphics的Blit方法,他和相机的Render方法不同之处在于Blit在屏幕上做了一个和屏幕大小一样的平面,用第三个参数(材质—Shader)进行从当前面到新面的替代。 即Blit是在渲染一个平面,而Render在渲染一个物体。
Graphics.Blit函数
public static void Blit(Texture source, RenderTexture dest, Material mat);
MonoBehaviour.OnRenderImage函数
void OnRenderImage(RenderTexture sourceTexture, RenderTexture destTexture)
Shader文件:写一个顶点片段shader
#pragma vertex vert_img#pragma fragment frag
参考文档 《Unity 5.X 从入门到精通》
参考文档 《Unity Shaders and Effects Cookbook》
demo Git地址:
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致2848人阅读
脚本(25)
Unity3D(45)
Sepia Tone is a simple image effect that tints an image to resemble an old photograph.
棕褐色色调映射是一个简单的图像特效,它可以使图片呈现出老照片的效果。
As with the other
, this effect
is only available in Unity Pro and you must have the
installed before it becomes available.
和其他图像特效一样,该特效只能在Unity Pro上进行使用,并且在使用之前必须安装。
Sepia Tone image effect applied to the scene
应用于场景中的棕褐色色调映射图像特效效果
Hardware support
This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2003 (GeForce FX), AMD cards since 2004 (Radeon 9500), Intel cards since 2005 (GMA 900);
Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.
这个特效需要显卡拥有像素着色器(2.0)或者OpenGL ES 2.0。台式机:2003年以后的NVIDIA显卡(GeForce
FX),2004年以后的AMD显卡(Radeon 9500),2005年以后的Intel卡(GMA
900);移动设备:OpenGL ES 2.0;控制台: Xbox 360、 PS3。
All image effects automatically disable themselves when they can not run on end-users graphics card.
所有图像特效如果无法在用户显卡上运行时将会自动被关闭。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:257700次
积分:3046
积分:3046
排名:第9472名
原创:10篇
译文:40篇
评论:40条
(1)(1)(3)(1)(25)(8)(11)Welcome to !
Playing with Image Effects in Unity
Playing with Image Effects in Unity
Last night I sat down to satisfy my inner graphics-whore (please excuse my French) and started fooling around with the new and updated Image Effects in Unity 3.4, testing performance, spending a bit of R&R adjusting various settings to extreme &over-the-top& effects! (I&#39;ve been watching a few Frostbite 2, CryEngine and UDK videos lately)! :)
Playing with Image Effects in Unity
No the scene was made quick with a few assets you've already seen a million times (except maybe the trees). The Image Effects active are Screen Space Ambient Occlusion, Bloom and Lens Flares, New DLAA Antialiasing, Depth Of Field 34 and Vignetting (Which you can toggle on 1-5 keys).
Open Door Development is ALL about showing "Work in Progress" ... We hope you can take it! :)
This Prototype is not optimized for optimal performance so if you're
"playing" on a small notebook, please do not expect the best
frame-rates in the world!
Deferred lighting and post-process image effects are calculated based on screen-space& pixels, so please be sure to bring down the resolution if your native default is too
"Over-the-top" exaggerated realism with Image Effects
Interstellar Marine in T-pose, with the background completely blurred by DOF including a few hexagon BOKEH's working to bring a bit more realism in terms of out-of-focus glow distortion.&
Take the map for a spin and post your frame-rates below if possible ... The scene clocks +60FPS (720p) on our old but still rather powerful GTX280 / 2.4 Core2Quad which leaves room for a lot of optimization from both Unity and our side.
For the love of the game!/ZPSHicks
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
It would be nice to see the On/Off effects text on screen.
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
5 years, 6 months ago
What the hell? huh
5 years, 6 months ago
Things get farther away when you look straight at them than when they are in the side of the screen. Feels like your eyes are a flat, widescreen camera.
5 years, 6 months ago
5 years, 6 months ago
53-60 FPS @
on:
AMD Athlon II X3 445 3.1 Ghz
4 GB RAM
Sapphire Radeon HD6870 1GB
5 years, 6 months ago
oh, I forgot to say, it was at fantastic settings
5 years, 5 months ago
make sure, you buy the birch tree package as well – because i think it is the best one…
updates to the others might-)
btw. i think you should clip the ssao-effect to something like 20 or 30 meters as it doesn’t go well with blur/fog. there is a hacked version on the unity forum somewhere…
5 years, 5 months ago
5 years, 5 months ago
jak mam spusti tuto hru
5 years, 5 months ago
5 years, 2 months ago
You Enlisted Move Good.
3 years, 9 months ago
You need to
to comment.
Development
Playing with Image Effects in Unity

我要回帖

更多关于 unity3d ssao 的文章

 

随机推荐