首页 \ 问答 \ 当贴片大小> 4时,曲面细分如何知道面中哪些顶点属于一起?(How does tessellation know what vertices belong together in a face, when patch size > 4?)

当贴片大小> 4时,曲面细分如何知道面中哪些顶点属于一起?(How does tessellation know what vertices belong together in a face, when patch size > 4?)

不使用曲面细分着色器时,可以传递基本类型( GL_TRIANGLESGL_TRIANGLE_STRIP等),让OpenGL知道顶点流如何表示几何面。

使用曲面细分着色器, GL_PATCHES将替换这些基本类型枚举。 在处理大小为3或4的补丁,并将TES中的相应布局设置为三角形或四边形时,这在我的脑海中是有意义的。

但是如果我有一个16号的补丁(一些教程这样做),TPG如何知道3或4个顶点形成什么面? 我已经多次读过,当使用GL_PATCHES时,顶点缓冲区中的顺序无关紧要,但肯定必须有一个点,其中一组特定的3个顶点被认为是一个三角形(传递给几何着色器)。 这是怎么决定的?


When not using tessellation shaders, you can pass a primitive type (GL_TRIANGLES, GL_TRIANGLE_STRIP, etc.) to let OpenGL know how the vertex stream is representing geometry faces.

Using tessellation shaders, GL_PATCHES replaces these primitive type enums. This makes sense in my head when processing patches of size 3 or 4, and setting the corresponding layout in the TES to triangles or quads.

But if I have a patch of size 16 (some tutorials do this), how does the TPG know what 3 or 4 vertices form what faces? I've read several times that the order in your vertex buffer does not matter when GL_PATCHES is used, but surely there must be a point where a specific set of 3 vertices is considered a triangle (to pass to e.g. the geometry shader). How is this decided?


原文:https://stackoverflow.com/questions/48302363
更新时间:2022-11-28 17:11

最满意答案

您可以尝试使用HTML::link 。 例:

{{ HTML::link('/user/<?=$user_name?>', 'User Profile')}}

This is how I solved it. I'll leave the answer here for other people.

<li><a href="{{ URL::route('profile-user', Auth::user()->username) }}">User Profile</a></li>

相关问答

更多
  • 这是我会建议的: $(function() { var climateSteps = [ "Hot", "Humid", "Dry", "Wet" ]; function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.spli ...
  • / ViewBags只在同一个视图中工作 。 这意味着: 如果你在 public ActionResult Index() { ViewBag.Index } 然后由ajax执行 public ActionResult OtherAction() { ViewBag.Other } ViewBag.Other在Index中不可见 public ActionResult Index() { ViewBag.Index ViewBag.Other//erro other is ...
  • 这可以通过从ServletContext获取Keycloak AdapterDeploymentContext来实现: AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext) getServletContext().getAttribute(AdapterDeploymentContext.class.getName()); KeycloakDeployment deployment = deploymentContex ...
  • 我可能不能正确理解这个问题,但是如果你想在jsp使用基本URL来获取某些链接,那么你的方法就是错误的。 通常你会做这样的事情: 测试 对于控制器中的重定向,您可以指定如果使用RedirectView而不是返回字符串“redirect:xxx”,则必须如何解释url:重定向视图构造函数RedirectView(String url, boolean contextRelative)可用于指定上下文相关到当前的ServletContext或相对于Web服务器。 May I do not correct unde ...
  • 一种简单的方法是将index.jsp放在该文件夹中,然后将其重定向到login.xhtml 。 另一种方法是将login.xhtml添加为欢迎页面。 Tomcat文档为两种可能性提供了一个示例: http : //wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F As @jpr said, i used a Filter to redirect to the login page, ...
  • 如果您在全局窗口上使用hashchange,它将起作用,请参见下面的示例 $(window).on('hashchange', function () { if (window.location.hash == "#home") { $('.axiosnext-arrow').hide(); } else { $('.axiosnext-arrow').show(); } }); If you use hashchange on the window g ...
  • 基于异常和提供的堆栈跟踪,我认为您的问题是这里描述的。 注意: 从Dictionary代码抛出异常,而不是从您的(用户)代码抛出 NullReferenceException是异常,而不是ArgumentNullException,因此它不仅仅是参数为null 字典不是线程安全的。 这意味着如果多个线程访问它,则应该同步对它的访问。 更新1 似乎SQLite异步处理中存在一个错误 。 Based on the exception and provided stack trace, I think that ...
  • 相关文章

    更多
  • 超级简单的9patch
  • [转]So You Want To Be A Producer
  • Fading Like a Flower - Roxette
  • Becoming a data scientist
  • 7月最新发布11.2.0.1.2 Patch set update
  • [译文] 恶意软件行为综述 - A View on Current Malware Behaviors
  • HTML 超链接(a标签、锚)
  • Hibernate 异常之:associate a collection with two ...
  • linux中查看文件或者目录大小
  • Securing Solr on Tomcat access using a user account
  • 最新问答

    更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)