当前位置: 首页 > news >正文

parallax mapping

http://sunandblackcat.com/tipFullView.php?topicid=28
http://www.cnblogs.com/jim-game-dev/p/5410529.html

这里写图片描述
let’s review the algorithm parallax mapping. in the picture above.
we look at the point T0. we get the view vector V, we extend v to the blue part.

we split the depth from 0.0 to 1.0 to 8 parts. the height between two lines is 0.125.
1. T0D’=0.75 and T0D =0 as 0.75>0 go on.
2. T1C’=0.625 and T1C = 0.125 as 0.625>0.125 go on.
3. T2B’=0.375 and T2B=0.25 as 0.375>0.25 go on
4. T3A’~0.2 and T3A=0.375 as 0.2<0.375 stop.

now we find the T3 is the final result. this is the algorithm says.
we then use the texture coordinate of T3 to sample color for T0.

相关文章:

  • 京东JData算法大赛高潜用户购买意向预测——复现(并没有),提供数据集
  • java 规范
  • 判定你的java应用是否正常(是否内存、线程泄漏)的一个简单方法
  • Java集合(本篇主要介绍List接口)
  • Shade4PointLights
  • 【笔记】Python集成开发环境——PyCharm 2018.3下载、注册、帮助文档
  • cocos2d lua 之骨骼动画
  • 第二阶段第三天
  • 在Linux 中进入单用户模式的技巧
  • Python3+Selenium3+webdriver学习笔记5(模拟常用键盘和鼠标事件)
  • 彻底解析XML
  • JAVA和C语言的区别
  • LeetCode:155. 最小栈
  • 普通项目经理和资深项目经理的这6大差距,你造吗?
  • unity资源释放(AssetBundle和Asset)
  • codis proxy处理流程
  • linux学习笔记
  • Promise初体验
  • Redis 懒删除(lazy free)简史
  • SAP云平台里Global Account和Sub Account的关系
  • 反思总结然后整装待发
  • 经典排序算法及其 Java 实现
  • 深入浅出Node.js
  • 树莓派 - 使用须知
  • 算法-图和图算法
  • 我的业余项目总结
  • 硬币翻转问题,区间操作
  • 如何通过报表单元格右键控制报表跳转到不同链接地址 ...
  • ​LeetCode解法汇总1410. HTML 实体解析器
  • ​如何使用ArcGIS Pro制作渐变河流效果
  • # MySQL server 层和存储引擎层是怎么交互数据的?
  • # 手柄编程_北通阿修罗3动手评:一款兼具功能、操控性的电竞手柄
  • # 数论-逆元
  • #etcd#安装时出错
  • #LLM入门|Prompt#1.8_聊天机器人_Chatbot
  • #mysql 8.0 踩坑日记
  • %3cscript放入php,跟bWAPP学WEB安全(PHP代码)--XSS跨站脚本攻击
  • (c语言)strcpy函数用法
  • (Matlab)遗传算法优化的BP神经网络实现回归预测
  • (二十五)admin-boot项目之集成消息队列Rabbitmq
  • (力扣记录)235. 二叉搜索树的最近公共祖先
  • (十三)Flask之特殊装饰器详解
  • (转载)深入super,看Python如何解决钻石继承难题
  • (转载)虚幻引擎3--【UnrealScript教程】章节一:20.location和rotation
  • . NET自动找可写目录
  • ./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: ./incl
  • .gitignore文件_Git:.gitignore
  • .NET 4 并行(多核)“.NET研究”编程系列之二 从Task开始
  • .NET Core MongoDB数据仓储和工作单元模式封装
  • .ui文件相关
  • @param注解什么意思_9000字,通俗易懂的讲解下Java注解
  • [AIGC 大数据基础]hive浅谈
  • [ASP.NET 控件实作 Day7] 设定工具箱的控件图标
  • [ISITDTU 2019]EasyPHP
  • [LeetCode]—Anagrams 回文构词法