OpengGL中图形绘制先后问题
OpengGL中图形绘制先后问题
在opengl中,场景绘制总有个先后的顺序,也有个程序先后的问题,图形程序在前在后,对最终的图形的影响如何?
(1)设置图中的点(蓝色)与线条(浅蓝)z分量都是0,如果绘制折线条程序在前,绘制点程序在后,则效果图形如下:
效果:点在线上
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVsAAADsCAIAAABVFZLDAAANRklEQVR4nO2drZMdxxVH589aEhnEZVfJVXIEIqNFtojKVTGQSBQiDVBJQCVbwFEFeJFitshhYmZKkKGCFsrMgQs2YOTp2Znunu7pj3t75qgO0r43r/v2fWdf9+z+tuvP/wEAMNCJjwAA9IARAMCAEQDAgBEAwIARAMCAEQDAgBEAwIARAMCAEQDAgBEAwIARAMCAEQDAgBEAwIARAMCAEQDAgBEAwLBDI1yenJRDfHYARcEIGAEq0URDYgSMAJVooiH3bATl14SjgRGE6678mnA0MnYRRhAuFkaAdDBC83WvsABwHDBC83WvsABwHDBCG3XvuquR+gsAx8HfRSF9GHipFDACRoBKYASNdd+2EhgB0sEIGuu+bSUwAqSDETTW3V6Fq6vuyrcMGAHSWTHCWhOGXyoFjBC0GBgB0sEIGuu+bTEwAqSDETTW3VkI73pgBEgHI2isu7MQGAEKgxE01t1ZCIwAhcEIGuvuLARGgMKMXZSR7IPcsxGaWAA4Dk00JEbACFCJJhoSI2AEUEHUOULBYYiPQA/DknQdNQEBMII6MAIIghHUgRFAEIygEaQAUmAEjWAEkAIjaGRcFaQAlcEIGsEIIAVG0Mh0VZAC1AQjKIWPCSACRlAKHxNABIwgxvnjB89ev3RWBCNAdbquwwgy/PPp3y5PTs5ePHJW5PrCIAWoAEaQ4dXfn/z20Y3Lk5OfHn7jrAhGgOpgBAGevX456ODy5OTnr7/0FQUpQF0wQm2evX558fln4y81v7tz21cUjAB1wQi1+eX0i2nMwW8f3fAVZbE2SAGKghGq8u+vTpfZJ4G3G8x/IgUow9BaGKES548fWNOQwm839JNlA8gORqjHcK/Riud2g2t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xY7WwYAJQgbYThEIBABQAmSRhgOEQhEANCDpBGGGDUCEQD0IGmEIYudLQOAHiSNcEkgAoAyxIwwZLETiACgCjEjDIcIBCIAqELMCBe3brJlANCGjBGGGDUCEQC0IWOEIYudQAQAbcgYYchiJxABQBsyRri4dZMtA4BCBIwwHCKwZQBQiIARhhg1AhEAFCJghLd3TwlEANCJgBHef/oxgQgAOpHZNbBlANCJfPIqAOgBIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAASMAgAEjAIABIwCAIeldfdV1+0B8GQCUwJsBAAwYAQAMGAEADBgBAAwYAQAMGAEADP8HfWmueIlXyQQAAAAASUVORK5CYII=" alt="" />
glPointSize(4.0f);
glColor3f(0.0, 0.0, 1.0);
glBegin(GL_POINTS);
for(int i = ;i < ctrlVetP.size(); i++)
{
glVertex3f(ctrlVetP[i].x, ctrlVetP[i].y, );
}
glEnd(); glLineWidth(1.5f);
glColor3f(0.0,1.0,1.0);
glBegin(GL_LINE_STRIP);
for(int i = ;i < ctrlVetP.size(); i++)
{
glVertex3f(ctrlVetP[i].x, ctrlVetP[i].y, );
}
glEnd();
(2)设置图中的点(蓝色)与线条(浅蓝)z分量都是0,如果绘制点程序在前,绘制折线条程序在后,则效果图形如下:
效果:线在点之上
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWEAAADtCAIAAADhmFOXAAANV0lEQVR4nO3dr3McRxbA8fmzRE4GcdlVSVUSEwstckxSBgYnpBBrgMsCKp8FHFeAjXRmQobHzHxBgmaGCvNBgQ0Ya2400/22e2a63+uZb+rDTj92ume/t/I+tar64g8A8KnUHwEAy2gEAAmNACChEQAkNAKAhEYAkNAIABIaAUBCIwBIaAQACY0AIFlyI6739qZQf/xYmIk3pNadSSOs7AQWj0aYU9ZOYPFohDnj1pRGIJGJtxaNsLIlNAKJ0AhzaARMoRHm7FzTqt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Lae2KdBeCZoRClMN6I7PcXBUypohHBRNELfxfFhswccPKVlxNMgMBM0ohSmG9FOT/Gup5bRjaiqbVVJpSiiEVW1bS9H/RK0mG7Elx+/b/aAg6e0jGlE+7wStV855IOnm/rtaETc52xzlKU7PcUItpaRjQjIREmN8LwmohH+z8nSiHcvnzUbwMFTisY3YjE/a/ivhUb4PydLI9rpKd71VJTuaVBEI0xdgha7jWinpzh4ShGNsHMJWuw2opmeYgRbF42wcwlajDainZ7i4CldNMLOJWgx2oh2eoqDp3TRCDuXoMVoI9rpKd711EUj7FyCFqONaKanOHhKHY2wcwlajDbimhFsG2iEnUvQYrER7fQUB0+poxF2LkGLxUY001O862kBjbBzCVosNuJyc3DNwVM20Ag7l6DFYiOa6SlGsC2gEXYuQYu5Rrx6e9qsOwdPWUAj7FyCFnONaKanOHjKCBph5xK0mGvExyePeNfTjvZpkE7mCzH+NQ0y14hmeoqDp4ygEZm/pkHmGtEsOiPYRiyvEeVeghZbjWimpzh4CrOjEaPZakQzPcW7npgdjRjNViOa6SkOngLssNWIr3f2GcEGTDHUiGZ6ioOnAFMMNaKZnuLgKcAUQ41opqd41xMwxVAjPj98wMFTgDWGGnHNCDZgj5VGNNNTHDwFWGOlER+OnvKuJ2CQlUZcbg44eAowyEojru7fZQQbMMhKIy6ODzl4CjDISiMA2EQjAEhoBAAJjQAgoREAJDQCgIRGAJDQCAASGgFAQiMASGgEAAmNACChEQAkNAKAhEYAkNAIABIaAUBCIwBIaAQACY0AIKERACQ0AoCERgCQ0AgAEhoBQEIjAEhoBAAJjQAgoREAJDQCgIRGAJDQCAASGgFAQiMASEY+27dVtQzqGwAYx5MEgIRGAJDQCAASGgFAQiMASGgEAAmNACChEQAkNAKAhEYAkNAIABIaAUBCIwBIaAQAyd9/NGGG4ZL6UQAAAABJRU5ErkJggg==" alt="" />
glLineWidth(1.5f);
glColor3f(0.0,1.0,1.0);
glBegin(GL_LINE_STRIP);
for(int i = ;i < ctrlVetP.size(); i++)
{
glVertex3f(ctrlVetP[i].x, ctrlVetP[i].y, );
}
glEnd(); glPointSize(4.0f);
glColor3f(0.0, 0.0, 1.0);
glBegin(GL_POINTS);
for(int i = ;i < ctrlVetP.size(); i++)
{
glVertex3f(ctrlVetP[i].x, ctrlVetP[i].y, );
}
glEnd();
总结:
(可能)Opengl在绘制程序上,统一深度的图形先绘制的显示在最前面,(即离屏幕最近的位置)后绘制的,被前面的遮挡,采用“层次”,即后面的深度总是最大的,(因为深度越大,离屏幕距离越近)
OpengGL中图形绘制先后问题的更多相关文章
- C#中的GDI+图形绘制方法
GDI+图形绘制方法 1.首先对于绘制图形,必须的先将命名空间导入:using System.Drawing.Drawing2D; 2.然后在一个事件中写入程序 首先先将Graphics这个对象实例化 ...
- 【Windows编程】系列第五篇:GDI图形绘制
上两篇我们学习了文本字符输出以及Unicode编写程序,知道如何用常见Win32输出文本字符串,这一篇我们来学习Windows编程中另一个非常重要的部分GDI图形绘图.Windows的GDI函数包含数 ...
- 13个JavaScript图表(JS图表)图形绘制插件【转】
现在网络上又有越来越多的免费的(JS 图表)JavaScript图表图形绘制插件.我之前给一家网站做过复杂的图形,我们用的是 highchart.在那段时间,没有很多可供选择的插件.但现在不同了,很容 ...
- 推荐12个最好的 JavaScript 图形绘制库
众多周知,图形和图表要比文本更具表现力和说服力.图表是数据图形化的表示,通过形象的图表来展示数据,比如条形图,折线图,饼图等等.可视化图表可以帮助开发者更容易理解复杂的数据,提高生产的效率和 Web ...
- 怎样在ZBrush中快速绘制人体躯干
之前我们对人体骨点的雕刻,了解了人体骨骼比例结构特征.今天的ZBrush教程将通过ZBrush®遮罩显示的特点对模型的人体躯干进行细致雕刻.文章内容仅以fisker老师讲述为例,您也可以按照自己的想法 ...
- cocos2d-x 图形绘制
转自:http://blog.csdn.net/zhy_cheng/article/details/8480048 图形绘制的话,在cocos2d-x自带的TestCpp里有,包括绘制点,直线,多边形 ...
- 图形绘制 Canvas Paint Path 详解
图形绘制简介 Android中使用图形处理引擎,2D部分是android SDK内部自己提供,3D部分是用Open GL ES 1.0.大部分2D使用的api都在android.grap ...
- HTML5图形绘制学习(1)-- Canvas 元素简介
Canvas元素是HTML5中新增的一个专门用来进行图形绘制的元素.和其名称Canvas一样,它就相当于一个画布,我们可以在其上描绘各种图形. 这里所说的绘制图型,不是指我们可以进行可视化的图形绘制, ...
- 【D3.V3.js系列教程】--(十五)SVG基本图形绘制
[D3.V3.js系列教程]--(十五)SVG基本图形绘制 1.path <!DOCTYPE html> <html> <head> <meta charse ...
随机推荐
- Devexpres下LookUpEdit绑定数据后会默认弹出数据框的解决办法
LookUpEdit绑定数据后会默认弹出数据框很不友好问题现象: 问题解决前的代码: lueManagement.Text = groupEntity.Name; 2 lueManagement.Ed ...
- CodeForces - 983B XOR-pyramid(区间dp,异或)
XOR-pyramid time limit per test 2 seconds memory limit per test 512 megabytes input standard input o ...
- 【ZZ】Web开发的入门指导 | 菜鸟教程
Web开发的入门指导 http://www.runoob.com/w3cnote/a-beginners-guide-to-web-development.html
- [win10]遇坑指南
好多不好用的地方,现在解决的差不多了,把经验分享一下,也方便自己下一次重装 win10 时不再进坑. 1. 输入法:https://zhidao.baidu.com/question/45942172 ...
- 图搜索——使用DFS和BFS耗时比较
图测试数据生成代码: #include<bits/stdc++.h> using namespace std; int random(int mod) { return rand() % ...
- CFGym 101194L 题解
一.题目链接 http://codeforces.com/gym/101194/problem/L 二.题意 有4个队伍,要打6场比赛(刚好每两个队伍都能相互比一次),若A和B比赛有3种结果: A赢B ...
- Git--时光穿梭机之删除文件06
在Git中,删除也是一个修改操作,我们实际操作一下吧,先添加一个文件test.txt到Git并且提交 $ git add test.txt $ git commit -m "add test ...
- 7.25 7figting!
TEXT 82 Proton 马来西亚宝腾汽车 A fork in the road 何去何从?(陈继龙编译) Nov 30th 2006 | HONG KONG From The Economist ...
- 记一次为gitlab启用CI的过程
问题描述: 在局域网内搭了了一个gitlab,最近有需求要用CI 那时我不在 ,他们尝试了一段时间的Jenkins,但是还没有成功,我说gitlab已经有这些功能了,不用那个.于是一个人搞起来了. 从 ...
- Search Quick Union Find(图的存储结构)
Quick Find:适用于search频繁的情况 每个节点有一个id值,id相同表示两个节点相连通.在union时要将等于某一个id值都改成另一个id值 Quick Union: 适用于union频 ...