textures Questions

2

Solved

For my game I have written a shader that allows my texture to tile nicely over multiple objects. I do that by choosing the uv not based on the relative position of the vertex, but on the absolute w...
Emulsoid asked 3/4, 2013 at 8:52

0

which is faster and more efficient? Using a OpenGL texture as a CUDA surface and rendering on a quad (new style); Using a renderbuffer as a CUDA surface and rendering using glBlitFramebuffer.
Duenna asked 22/6, 2023 at 12:47

2

Solved

I have a kernel that outputs a texture, and it is a valid MTLTexture object. I want to save it to a png file in the working directory of my project. How should this be done? The texture format is ...
Helpmate asked 21/10, 2018 at 22:32

3

Solved

Let's first acknowledge that OpenGL is deprecated by Apple, that the last supported version is 4.1 and that that's a shame but hey, we've got to move forward somehow and Vulkan is the way :trollfac...
Porpoise asked 13/12, 2021 at 17:55

2

I would like to know wether it is possible to get the dimensions of a texture ? I used this line to set my texture : const texture = THREE.ImageUtils.loadTexture(src) Maybe it is necessary to l...
Beecham asked 5/3, 2018 at 13:21

5

Solved

I have an OBJ that uses four textures. The UVs defined in the file range from (0, 0) to (2, 2), such that (0.5, 0.5) refers to a coordinate in the first texture, (0.5, 1.5) is a UV coordinate in th...
Cabrera asked 15/5, 2018 at 1:13

4

Solved

Let's say I have an application A which is responsible for painting stuff on-screen via OpenGL library. For tight integration purposes I would like to let this application A do its job, but render ...
Emlin asked 17/6, 2011 at 14:7

5

I'm looking for a way to use a GIF animation as texture in THREE.js. I am currently able to load a texture (even GIF format), but it doesn't play its animation. Is there any way to do it? I found ...
Purpleness asked 11/2, 2014 at 18:26

3

Solved

How to get programmatically the maximum texture size (width and height) with metal? with openGL i can do: glGetIntegerv(GL_MAX_TEXTURE_SIZE, ...) but how to do it with Metal ?
None asked 13/10, 2019 at 18:11

4

Solved

I'm texturing a 2D object in OpenGL, and while I have the texture loading fine, I'm just not quite sure how to invert the colours. How do I access the colour information of the bitmap and invert it...
Vulgarize asked 4/2, 2016 at 19:28

4

I'm trying to load a Texture from the Resources folder but it keeps on returning null. t = (Texture)Resources.Load("Circle") as Texture; The circle texture has an extension of .tga.
Cottier asked 18/4, 2013 at 20:12

4

Solved

I have a texture which has only 1 channel as it's a grayscale image. When I pass the pixels in to glTexImage2D, it comes out red (obviously because channel 1 is red; RGB). glTexImage2D( GL_TEXTUR...
Handful asked 25/3, 2009 at 3:29

2

I need to download an image from a server, then transform it in a Cubemap and finally put this CubeMap in my Skybox. I work with C#. I came up with this code : public string url = "image/url.jpg...
Changeable asked 11/7, 2017 at 10:56

3

Solved

I am new to Unity 3D and I want to do just little task: to set image on a Texture instance in Unity 3D. I don't know how to do this at runtime, and I also would like to know how I set its transpare...
Balbinder asked 22/11, 2012 at 13:0

2

Solved

The refpages say "Returns the weighted average of the four texture elements that are closest to the specified texture coordinates." How exactly are they weighted? And what about 3D textures, does i...
Quimby asked 18/4, 2017 at 21:20

1

I'm developing a browser game using WebGL and the recommended advice seems to be to use either straight-up HTML elements or a 2d canvas layered on top of your WebGL canvas to do the UI / HUD. This ...
Xerxes asked 1/5, 2021 at 21:0

3

Solved

I'm writing some code where all I have access to is a textureID to get access to the required texture. Is there any way that I can get access to the RGB values of this texture so I can perform some...
Zulmazulu asked 25/2, 2011 at 13:13

3

Solved

I'm having a problem with a texture which has transparent areas. Basically it is a texture of a coin rendered onto a cube. I can't get the corners to appear transparent, they just show up as white/...
Bloke asked 1/10, 2013 at 9:17

5

Solved

I've been searching all around for a simple solution to add sprites to my OpenGl GLUT simple moon lander game in c++ and it appears I must use bmp's since they're easiest to load and use them as te...
Extremity asked 20/9, 2012 at 17:53

7

Solved

How can I repeat a selection of a texture atlas? For example, my sprite (selection) is within the texture coordinates: GLfloat textureCoords[]= { .1f, .1f, .3f, .1f, .1f, .3f, .3f, .3f }; ...
Martines asked 19/3, 2009 at 12:59

2

Solved

I'm getting the error [.WebGLRenderingContext]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture c...
Torey asked 22/2, 2014 at 12:2

1

Solved

I am trying to build 2 applications running in separate processes. One application will display live video from a camera (server) and the other will overlay UI (client) on top of that video. The so...
Jenelljenelle asked 28/1, 2021 at 13:53

1

Solved

I'm getting intermittent appearances of seams in the textures that I apply to spheres in SceneKit. It's always at the "back" of the sphere, where the two edges of the texture meet. It looks as thou...
Esma asked 14/3, 2017 at 4:9

1

I have a project from school I'm currently working on and I need to texture a non-rotating cube showing just 3 faces. I've tried doing it on my own but I only get one image on all the 3 faces. I do...
Philippine asked 13/12, 2020 at 13:41

1

Solved

I am working on a project and I need to use texture arrays to apply textures. I have asked many questions about this, none of which I got an answer I was completely satisfied with (Get access to la...
Remsen asked 29/9, 2020 at 15:8

© 2022 - 2024 — McMap. All rights reserved.