textures Questions

2

Solved

I'm trying to load an image with DevIL and then create a texture. I have a class named Texture, and I'm doing all this stuff in the constructor. A valid context has been created. I'm getting an acc...
Civic asked 27/10, 2014 at 14:23

4

Solved

I'm fairly new to OpenGL so maybe the answer will be obvious. I am currently trying to make a blue circle using GL_TRIANGLE_FAN in C++. My problem is that when I set the color using glColor4f, it s...
Sport asked 21/1, 2012 at 21:13

1

Solved

I am trying to create a normal map from a height map in HLSL. I followed this https://stackoverflow.com/a/5284527/451136 which is for GLSL. Here is how I translated GLSL to HLSL: GLSL: uniform s...
Desultory asked 25/9, 2014 at 18:24

3

Solved

There are quite a few stackoverflow threads asking why a kernel using textures is not faster than one using global memory access. The answers and comments seem always a little bit esoteric to me. ...
Putout asked 13/9, 2014 at 8:3

1

I have a problem with my fragment shader. I want to get the size of a texture (which is loaded from an image). I know that it is possible to use textureSize(sampler) to get an ivec2 which contains...
Sivan asked 12/9, 2014 at 8:28

1

Solved

I'm trying use SDL2 to load a texture for OpenGL rendering of Wavefront Objects (currently I'm testing with the fixed pipeline, but I eventually plan to move to shaders). The problem is that the lo...
Microphotograph asked 10/9, 2014 at 17:40

3

Solved

Nevermind that I'm the one who created the texture in the first place and I should know perfectly well how many mipmaps I loaded/generated for it. I'm doing this for a unit test. There doesn't seem...
Gaylagayle asked 5/3, 2012 at 19:7

1

Solved

I have an array of Sprite objects in Unity. Their size vary depending on the image loaded. I want to combine them side by side like a tiled map into one image. I want them to be layout like your ar...
Haberdashery asked 28/8, 2014 at 9:37

2

Solved

I want to dump raw texture data to disk (to read back later), and I'm not sure about glReadPixel will read from the currently bound texture. How can I read the buffer from my texture?
Publication asked 8/8, 2012 at 11:20

1

Solved

How do I set the texture of a SCNText object? This is what I have and nothing changes in the appearance: // myNode is a working SCNText element let mat = SCNMaterial() met.diffuse.contents = UII...
Salience asked 12/8, 2014 at 15:31

3

Solved

I am trying to scale an SKSpriteNode object without smoothing/anti-aliasing (I'm using pixel-art so it looks better pixelated). Is there a property I need to set to do this? This is the code I am ...
Sycamore asked 5/10, 2013 at 1:22

4

When I try to use mipmap filtering in LibGDX, none of the images appear. I'm new to LibGDX, and I have a simple 2d scene with three rotating, scaled circles. In order to anti-alias them, I wanted...
Hannahhannan asked 13/3, 2013 at 6:54

1

Solved

Note: I want to avoid modifying the model in the javascript code and do all the model design inside Blender. Note #2: While this question is long, it is actually a basic problem (title says it all...
Hornswoggle asked 21/7, 2014 at 13:49

1

Solved

Im trying to rotate textures when I draw them. I figured it would make more sense to do this than to rotate the images 90 degrees in paint.net and save them in different files. I looked thought the...
Nahtanha asked 15/7, 2014 at 0:51

2

Solved

How do I determine what mipmap level was used when sampling a texture in a GLSL fragment shader? I understand that I can manually sample a particular mipmap level of a texture using the textureLod...
Granville asked 24/6, 2014 at 13:47

4

Solved

I'm making a 2D sidescrolling space shooter-type game, where I need a background that can be scrolled infintely (it is tiled or wrapped repeatedly). I'd also like to implement parallax scrolling, s...
Mckee asked 22/9, 2011 at 11:15

1

Solved

I kinda sorta get a grip what texture arrays are about, but nowhere on the internet I can find info about what they actually are. Are they like one big texture atlas (singular continuous block of m...
Commodore asked 10/6, 2014 at 16:18

2

Solved

What is the best method to copy pixels from texture to texture? I've found some ways to accomplish this. For instance, there's a method glCopyImageSubData() but my target version is OpenGL 2.1, so...
Address asked 1/6, 2014 at 14:43

2

Solved

I'm trying to show a texture in Qt with opengl but it just doesn't show the texture when i run. I did some research and found out I needed to make the height and width of the texture as a power o...
Farseeing asked 21/5, 2014 at 21:24

3

Solved

I’m converting a game from XNA to iOS with Monogame. In the code snippet below, smallDeform is a Texture2D on which I call the GetData method. smallDeform = Game.Content.Load<Texture2D>("Ter...
Mistaken asked 28/11, 2013 at 21:31

3

Solved

I would like to know how can I create a Texture3D from a Texture2D. I've found some good examples : Unity 4 - 3D Textures (Volumes) or Unity - 3D Textures or Color Correction Lookup Texture int...
Selective asked 10/5, 2014 at 14:24

1

Solved

I am trying to implement a simple projective texture mapping approach by using shaders in OpenGL 3+. While there are some examples on the web I am having trouble creating a working example with sha...
Decadent asked 29/3, 2014 at 15:3

1

Solved

I'm trying to apply a texture to only one side of a Box Object. Basic code: BoxGeo = new THREE.BoxGeometry(50, 50, 125); BoxMat = new THREE.MeshLambertMaterial({ color: 0xF0F0F0 }); BoxObj = new ...
Darfur asked 27/4, 2014 at 23:23

1

Solved

I've been trying to add SSAO (based on the tutorial here: http://john-chapman-graphics.blogspot.co.nz/2013/01/ssao-tutorial.html) to a project of mine and I've gotten stuck on rendering the depth c...
Gamo asked 20/4, 2014 at 6:10

4

Solved

I need some help finding information (or an example) of how to use texture compression for Android. I have a lot of PNG's right now and I need to reduce the amount of memory they take up. I was loo...
Characteristically asked 5/2, 2012 at 11:20

© 2022 - 2024 — McMap. All rights reserved.