Texture2D is a class in unity3d used to handle textures. The class allows to edit existing texture assets or to create new textures on the fly.
Questions tagged [texture2d]
661 questions
0
votes
1 answer
Texture appears to be shifted when drawn on screen (XNA)
Why do my texture's edges contain unwanted colored lines? Texture looks shifted by a part of a pixel.

user1306322
- 8,561
- 18
- 61
- 122
0
votes
1 answer
Loading in XNA content (Texture2Ds) inside of a VSPackage?
I am trying to dynamically load in XNA content into a VSPackage project. We would like to be able to draw a Texture2D to a graphics device control inside of Visual Studio as an add-in. We managed to dynamically load XNA content inside of a form…
0
votes
2 answers
How to store Texture2D in a listDictionary in C#?
I am having problems with retrieving a texture2D from a listDictionary.
This is my LoadGraphics Class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using…

DijkeMark
- 1,284
- 5
- 19
- 41
0
votes
1 answer
Texture Filtering Mode in 3D graphics
Is there any specific relations between the workload/ overhead of different types of Texture filtering modes? i.e. comparing for "no filtering mode", bilinear filtering and trilinear filtering? and are they specific to 3D, or we have them also in…
user1196937
0
votes
1 answer
XNA: Storing lots of Texture2D in an array
I'm starting out with xna, I'm pretty newbie with this, but I'm making my efforts to go on with this framework, anymay, my problem is:
that I have many .png images and dont want to make an object for any of those images so I want to put them up in…

Alan Revolver
- 15
- 1
- 5
0
votes
1 answer
Rendering a texture in another class' RenderBuffer/FrameBuffer in OpenGL ES 2.0 for iOS 5
I have two UIViews, each with their own separate renderBuffers and frameBuffers. They belong to different ViewControllers. I already have them connected via NSNotificationCenter, so that is all set.
I just need to basically render the texture in…

taber
- 3,166
- 4
- 46
- 72
0
votes
2 answers
XNA - HeightData to heightMap img
Hello I have heightData in memory and sometimes (when I edit it) I wanna save it to jpg. This is my code:
float multi = 0.2f;
float[,] heightData = quadTree.HeightData;
Color[] heightMapColors = new Color[heightData.Length];
for (int x = 0; x <…

Honza Kovář
- 704
- 6
- 9
0
votes
1 answer
Change Content.Load format
We are developing some games in XNA that, thanks of Mono+MonoGame+MonoForAndroid, will be ready in all the three major mobile platforms.
The problem is that since we need to use as few memory as possible to avoid devices crashing, we chose to use…
-1
votes
1 answer
How to convert saved string file to texture2D without loss in quality?
When converting a texture2D to string and then from string back to texture2D I've noticed a drop in quality and for the colours to be lighter.
My current setup (during play-mode) is as follows:
Take screenshot of whatever object is in front of the…
-1
votes
2 answers
Cpp OpenGL doesn't draw any texture. Instead it draws a color from the texture
Code doesn't give any error but the texture doesn't show up on screen.
I tried different PNG images but the only thing that changes is the color of the rectangle. I can also change the color of the rectangle by multiplying the color value with the…

Emre Can
- 24
- 6
-1
votes
1 answer
Is it faster to read from metal texture2D or sample from it?
I am interested in processing a 2d image pixel-wise and need the fastest way to read pixel values from the image on metal as a texture2d. Is it faster to sample from the texture or directly read from it. Reading would require coordinate conversion…

P. B.
- 33
- 4
-1
votes
2 answers
How do you update a UTextureRenderTarget2D in C++?
I'm referenced @J. Rehbein's ask.
How do you update a UTextureRenderTarget2D dynamically in C++?
And use public modules ("Core", "CoreUObject", "Engine", "InputCore", "UMG", "GameplayTasks", "Landscape", "RHI", "RenderCore").
Why printed assertion…

NedCrow
- 101
- 1
- 5
-1
votes
3 answers
XNA new Texture2D retains old data
I have an odd problem that I believe my relative lack of knowledge of the XNA framework prohibits me from fixing.
Basically I have a Texture2D reference that is set to a new instance of Texture2D. During runtime some of its pixels are set and this…

Nick
- 948
- 2
- 12
- 24
-1
votes
1 answer
How to matrix inversion For 1 Dimension with c code?
hello i used gauss jordan for 1d but i didnt
i want to find 1d matrix inverse. I found determinant but i dont know inverse of this matrix
Hello my dear friends
Our matrixes:
double A[] = {6, 6 ,2, 4, 9 ,7, 4, 3 ,3};
double B[] = {6, 6 ,2, 4, 9…
user13418390
-1
votes
1 answer
How to bind array of doubles to texture2D?
I try to use texture memory/binding instead of global memory, but I cannot pass by binding texture. First thing I learned is CUDA does not support double for texture, so casting is needed, ok.
I declared global texture variable:
texture…

astrowalker
- 3,123
- 3
- 21
- 40