Click here to Skip to main content
15,904,653 members
Everything / Texture2D

Texture2D

Texture2D

Great Reads

by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
by saboor awan
WP7 FloodFill in Texture2D using Scan line Stack Algo
by Vitaliy Sytnik
On the Internet you can find a lot of different information about creating drawings in SVG format. Often an editor is used to open an DXF and export as SVG. Looking through the SVG code it is immediately obvious that there is a lot of excess. An SVG file created in one editor may not always be corre

Latest Articles

by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
by Vitaliy Sytnik
On the Internet you can find a lot of different information about creating drawings in SVG format. Often an editor is used to open an DXF and export as SVG. Looking through the SVG code it is immediately obvious that there is a lot of excess. An SVG file created in one editor may not always be corre
by saboor awan
WP7 FloodFill in Texture2D using Scan line Stack Algo

All Articles

Sort by Score

Texture2D 

13 Oct 2018 by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
9 Jun 2015 by Member 11492419
I made a method called the loadTexture() in my cubeTexture class that has all the code to add texture to the cube. I put this method in the onSurfaceCreated() of the GLSurfaceView Renderer, like this: @Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { ...
10 Jan 2012 by NuttingCDEF
I'm trying to render a 3D scene to an off-screen image, so that I can then do some post-processing to apply a Gaussian blur to the final image before rendering it to the screen. I've posted the body of the main Draw method below.The DoDraw method contains all the detailed scene...
5 Feb 2012 by saboor awan
WP7 FloodFill in Texture2D using Scan line Stack Algo
19 Dec 2012 by mohammadali1375
Hi every bodyI have an texture in a quad. but it's picture have transparent. OpenGL show that like this : http://upload.tehran98.com/img1/roc36xty7n84mavubhzj.png[^]what can I do ? ( i work with sdl )
19 Dec 2012 by Santhosh G_
In OpenGL texture mapping, Transparency can be implemented through alpha blending. You can use GL_RGBA8 texture format to create Alpha enabled texture. Provide proper alpha values to get transparency. To get get opaque image, provide 255 as alpha value and to get fully transparent pixel provide...
30 Mar 2013 by liaoyuandeyehuo
LPDIRECT3DSURFACE9 g_pSurface;...
30 Mar 2013 by Maxim Kartavenkov
1. GetFrontBufferData does not recommended to use as it slow.2. You are getting screen into system memory and what for you copy it back to the texture?3. You copy via Locking which is not good.To solve your issues see:This API D3DXLoadSurfaceFromSurface usd to copy from one surface to...
31 Oct 2013 by Maximilien
Happy monday.I'm trying to use a GIF or a 8 bpp BMP image image as a source for an OpenGL texture.The code is working well for other types of image (24, 32bits image)I'm loading the file with CImage, but I'm having problems figuring the format and type parameters of the glTexImage2D...
26 Dec 2014 by Member 11333197
I make a tiny pretty test game for Android using Open GL ES (1.1). For simplicity and convenience in dealing with textures I use the class containing the following methods encapsulating necessarry gl-operations (in the code I use some own additional classes):public void load() { GL10 gl...
11 Jun 2015 by Fredrik Bornander
Textures and colors are set on the pipeline before draw calls, and are then used/re-used where applicable on subsequent draw calls.That means if you want your Square to have a different texture that your Triangle, you'll need to bind the texture before drawing the Square and then disable it...
12 Nov 2018 by BerthaDusStuf
Stack over flow question: Title: Why cant I see my texture load Explanation: I have been trying to texture a cube I have created and I am not able to see the textures. I can just see a blank cube rendering. I have looked at the code to see if there is anything wrong with it however I don't see...
26 Nov 2018 by lock&_lock
Hi, I'm trying to work with multi-texture using SOIL. I think it's a mistake of how I call the texture. I have 2 textures now with 2 different image source (Texture 1 and Texture 2), they look like this : Texture : glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, textures[0]); ...
22 Nov 2018 by KarstenK
When you want to change between the images than it would be easier to have a flag which to use. Any load or reload activity is bad for performance. Stick to the mantra: startup. load and modify only once with all static data.
4 Nov 2013 by Vitaliy Sytnik
On the Internet you can find a lot of different information about creating drawings in SVG format. Often an editor is used to open an DXF and export as SVG. Looking through the SVG code it is immediately obvious that there is a lot of excess. An SVG file created in one editor may not always be corre
14 Sep 2012 by Member 9420595
I am making a project where i have a rotating and moving 3d cube and on click of any face of cube, that face should be enlarged. All the six faces of cube should have different images. I searched a lot but doesn't get any working. Any help regarding this is highly appreciated. Thanks in advance!