English 中文(简体)
我如何与照明和材料相结合?
原标题:How do I get blending to work with lighting and material?

我应当改变哪一种字母? 扩散、投机或野心?

最佳回答

你说的是,你做了什么,因此我会认为,你把物体的颜色直接与<条码>glLightPara >,而不是从文字中抹去。

你们想要做的是,只有少数国家完全控制了目标的透明度,你们想把野心、扩散和光谱的彩色字母定在zero。 然后,你利用missive<>alpha来确定透明度。

如果你重新使用案文,那么你需要做更多的工作。 你们需要使用一种适当的文字环境模式,直接从固定功能照明中提取甲型六氯环己烷,而无需改动。

或者,你只能使用这些固定功能的假肢和itch。 这将节省很多头痛。

问题回答

使用GL_SRC_ALPHA , GL_ONE作为参数载于glBlendFunc()。

glColor4f(1.0,1.0,1.0,alpha_value);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA , GL_ONE);

将甲型六氯环己烷改为您的要求。 ......





相关问题
OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...

Why and when should you use hoops 3d graphics? [closed]

My company needs 3D visualization for our commercial applications (CAD, mesh manipulation, computational geometry). We are tired of true vision 3D (tv3d), which we ve been using for years (poor ...

Prerequisite for learning directx

I am from .net C# background and I want to learn DirectX. I have knowledge of C++ but I am fairly new to graphic world. I am little confused about how to start learning directx, should I start ...

Radial plotting algorithm

I have to write an algorithm in AS3.0 that plots the location of points radially. I d like to input a radius and an angle at which the point should be placed. Obviously I remember from geometry ...

Determine VRAM size on windows

I need to determine roughly how much VRAM a system s graphics card has. I know all the reasons why I shouldn t but I do. It doesn t need to be perfect (some cards lie etc.) but I need a ballpark. On ...

Mask white color out of PNG image on iPhone

I know that there are already 2 relevant posts on that, but it s not clear... So the case is this...: I have a UIImage which consists of a png file requested from a url on the net. Is it possible to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...