A bitmap (raster image) used in a texture mapping process.
1
vote
0answers
42 views
Texturing Cubes
How can I texture a cube that is able to rotate in x,y and z direction in pure Java?
Here is what i have tried:
package main;
import java.awt.Color;
import java.awt.Graphics;
import ...
0
votes
1answer
28 views
Unity LineRenderer custom reapeted Texture with margin
I have a LineRenderer, which has 1 dot as texture, which is repeated over the whole line. Now I want to know, if there is some way to give this dots a margin, so that I can make the gap between them ...
-1
votes
1answer
87 views
Create YUV texture for GL_TEXTURE_EXTERNAL_OES format
0
down vote
favorite
I need to create a yuv texture for GL_TEXTURE_EXTERNAL_OES format.
source : ...
0
votes
1answer
45 views
Luminance 'y' value of surface texture
For my opengl video player app, I am using surface texture bound to GL_TEXTURE_EXTERNAL_OES
source : ...
0
votes
0answers
19 views
Where can i find license free satellite images/maps to texture a terrain level in a 3D game engine? [closed]
I am supposed to replicate a real life terrain environment and I am having trouble finding maps that I can use as texture.
Any thoughts?
Thanks!
0
votes
0answers
33 views
How to properly use a 3D texture in OpenGL 4?
I working on a student project which consists to make clouds volumetric rendering and implement the feature in an existing engine based on OpenGL 4 and written in C++.
To do so, I have set a compute ...
0
votes
1answer
37 views
Unable to load two enemies with same pic in sdl2
I have loaded two enemies(with the same pic) into my game. However, when I draw them onto the screen it only draws and animates one enemy, instead of two. I can't seem to figure this out.
Here is my ...
0
votes
0answers
30 views
Tilemap not rendering properly
I'm making a single-screen scrolling platformer (OpenGL/SDL) and I've made a tilemap out of a 2D array, pre-sized with variables of the LEVEL_HEIGHT and LEVEL_WIDTH. Each element in this 2D array ...
0
votes
0answers
6 views
Is there a way to make spritesheet from file with many sprites? [duplicate]
If I have a spritesheet that already has all the sprites laid out, is there a way to automatically break up those sprites and make an atlas out of them? I tried loading the image into TexturePacker ...
-1
votes
0answers
27 views
Everything rendering black on new machine
So I've ported my OpenGL project over to my new computer and everything is compiling and linking fine but all of my objects are being rendered without any textures (complete black).
My shaders are ...
0
votes
0answers
12 views
How to integrate a dresser with movable drawer in UE4?
I modeled a dresser in Maya. Right now it is divided in 19 objects. The drawer faces are copy and have their own unique place in the UVs and the knobs and back drawers are instances and are stacked on ...
0
votes
1answer
55 views
XNA/MonoGame creating a player
After some fine-tuning on my game's GUI I am finally ready to begin with the gameplay. But that's a tall order. My game will be something like a 2D platformer with RPG elements like collecting armor, ...
0
votes
0answers
27 views
Should all textures be power of 2 in SDL2? [duplicate]
I come from Gamemaker background, and I know that anything you give Gamemaker is put onto a texture page that is power of 2 size, but I am now making an SDL game engine and I am wondering, should all ...
0
votes
0answers
17 views
LWJGL use only a part of a (blend-Map)
I have the following problem in my game:
I created my terrain by an heightmap and a blendMap (for the color).
The problem is, that now, when i made the terrain really big, i have a big performance ...
0
votes
1answer
24 views
Unity 3d: Animating Offset on a Quad is causing stretching issue only with iOS devices - Using Wrap Mode: Repeat
I added a 3D Object > Quad and added a graphic on it with the Wrap Mode set to Repeat. I'm animating the Offset to scroll the repeating image for a parallax effect. Everything is working perfectly ...
1
vote
1answer
56 views
Libgdx, TiledMap, and tearing
My TiledMap tears when the window is specific sizes, resized, or the camera moves.
The tileset is padded by 2px and have tried as high as 10px. Each tile is 70x70.
Here are the pack.json ...
0
votes
1answer
32 views
Any reason not to combine an AO Map and Cavity Map into one texture?
If an Ambient Occlusion Map is for mapping shadows based on closeness of neighboring geometry, and a Cavity Map is for mapping smaller shadows based on angle or distance, then is there any reason not ...
0
votes
0answers
45 views
Unity 5.3 Asynchronous Texture Upload in C#
I want to load textures asynchronous in C#. I heard it that it is possible to do it in Unity 5.3. However documentation doesn't mention how to do it in C#. Does anyone have an idea how it works?
...
1
vote
1answer
29 views
Blender to Unity, Specular Hardness/Smoothness Texture
In Unity there's a parameter for specularity (both modes) - Smoothness... I don't know what it corresponds to in Blender. You can bake two specularity maps: color and intensity, and at first I naively ...
0
votes
0answers
20 views
Getting texture data manually with proper alignment
I was building a simple D3D12 app which load and display an image on screen.
As you are aware, D3D12 has no calls like CreateTexture2D which we have in D3D11 so that this process has to be done in ...
0
votes
1answer
48 views
Sprite Sheet Texture not being rendered
I'm making space invaders (in OpenGL/SDL) and I've run into a problem
when trying to draw the sprite for the spaceship from the spritesheet.
In my entity class, I have a pointer for the sprite that ...
0
votes
1answer
35 views
Draw a Texture to fit a rectangle
I would like to draw a texture in a rectangle that is smaller than the texture, normaly the texture will be scaled to fill the rectangle, which results in a squished image. I want to draw it to fit.
...
1
vote
1answer
90 views
Textures created with Photoshop show up with a white border
All of a sudden, I started having this problem. I've used libGDX + Photoshop before and never had this problem. One of my textures is showing up with a white border/glow around.
The texture is the ...
3
votes
1answer
56 views
Maya/Unity - See through models
I've recently modeled my character inside Maya; here's an image. The first thing I noticed whilst creating my model is that the models could be seen through source 1, after doing a little research ...
0
votes
0answers
26 views
Stretching or distortion of texture on 1 face
Trying to master basic texturing using Substance Painter in a MODO to Substance Painter to Unity workflow.In the attached image you can see some pixel stretching along 1 face.(click to zoom in) The ...
0
votes
0answers
48 views
Box2d - Texture lagging and flickering
I'm having issues with texture rendering in my game. I've done a lot of research and repeated the same steps of tutorials over the internet to render and update Sprite positions properly. Somehow, ...
2
votes
2answers
76 views
How to display multiple textures with OpenGL without a texture atlas
I tried to dig into OpenGL a bit to use in 2D games (mainly because of shaders). There are multiple tutorials out there showcasing how to display and blend textures, and that's fine. But i haven't ...
1
vote
0answers
22 views
How to set a specific face's texture color in Unity?
First off, let me describe my situation...
So I'm building a voxel engine based on this tutorial. I'm using my own texture tilesheet. Most of the tiles have their own color except grass, leaves, and a ...
1
vote
0answers
56 views
Texture gets blurry when moving Box2D body
I'm having this issue that is very annoying. Somehow the texture of the player body is getting blurry and leaving a slight trail with its colors when moving it. The interesting fact is, this only ...
0
votes
2answers
42 views
Using sourceRect or cropping out a Texture 2D to draw? MonoGame/XNA
I was wondering what is the best way to draw textures (for performance). Using the sourceRectange in the spriteBatch.Draw() call and just draw the whole spriteSheet, or crop out every texture on the ...
0
votes
1answer
60 views
OpenGL texture 2d array won't render with depth > 1
Below code uploads my texture memory that's described in the passed parameters. When 'vPixelData' only holds 1 item/texture it is rendered properly, but once there's 2 or more nothing shows up.
...
0
votes
0answers
34 views
How to make a texture not stretch?
I have made two textures in Photoshop. I applied one of the textures to the sides (one to each side, in the Unity editor) and the other one to the top and bottom sides. However when I extend the ...
0
votes
0answers
42 views
Wrap Mode: Scale and Position Anywere
I am trying to write a shader in Unity that allows me to place my texture anywhere on the UV. Picture this for a second, if you add a texture on a square plane, the texture gets either stretched to ...
0
votes
1answer
50 views
C++ OpenGL More textured objects equals less FPS
So I'm creating a game engine with many features, last time I focused on textures.
When I finished implementing some new code (Made by myself) I created new Entity with texture, and it was working ...
0
votes
1answer
89 views
How to load sprite from JSON?
i know how to load text, but idk how to load texture from json..
this my c#:
public void soalbegin(){
filepath = System.IO.Path.Combine(Application.streamingAssetsPath, "soal.json");
...
1
vote
1answer
84 views
Monogame scale/resizing texture without stretching the borders
I would like to scale or resize my texture2d but when I do it, the texture border becomes stretched.
Here's an example :
This is my original texture
And this the texture after I change the Scale:
...
1
vote
0answers
37 views
Awesomium custom surface scroll
I have a custom Awesomium::Surface implementation, and I need to create a Scroll function for it. The function asks me to manually move some pixels of my texture by the indicated X and Y offset.
How ...
1
vote
1answer
55 views
Drawing texture with smaller size results in pixelated image, even after applying filter
Can someone please help me resolve this issue. I've tried searching myself and the common answer suggested is to use a TextureFilter. I've tried doing that multiple times but nothing works. My png ...
2
votes
1answer
62 views
LibGDX: Do I have to dispose a texture if I load it from AssetManager?
AssetManager manager = new AssetManager();
manager.load("texture1", Texture.class);
manager.load("texture2", Texture.class);
manager.load("texture3", Texture.class);
//And so on...
And then I load ...
1
vote
1answer
30 views
MonoGame, sprite to rectangle
I'm bucking the trend and working with MonoGame in VB2015, please don't tell me how brilliant C# is and how I ought to learn that, I really can't be bothered, and all the }}{}{{{}{ drives me insane!!
...
4
votes
1answer
83 views
Should texture regions sizes be power of two?
Is it advisable for my individual texture regions inside this texture to be power of two, or that won't make any difference?
I've read on several places that it's recommended to use power of two ...
1
vote
1answer
57 views
Multitexturing depending on given variables?
Im having trouble with rendering multiple textures.
Using XNA gamestudio: working with 3D meshes and texturing.
Effect.fx HLSL
I do have a map/level that loads from a heightmap. - This works
I have ...
1
vote
1answer
82 views
Seams between tiled textured cubes
I've created a textured cube in Blender, which I have uv-mapped like this:
The tiles are 256x256, and I've mapped the coordinates exactly at the edges (e.g. x: 256, y: 512). I then export my model ...
0
votes
1answer
43 views
LibGDX - How to export a texture as a .png onto, say, the desktop
I'm making a game in which I need to export a texture which the user has edited as a .png into a specified location. I'd like it if I could have the default saving window thing (like on other apps ...
0
votes
1answer
50 views
Problem with transparent textures in SFML
I have been told that this is kind of a common problem with transparent textures, but didn't get any further information on how to solve it.
In my code, I'm trying to render this texture (a square ...
0
votes
1answer
67 views
How to map square texture to triangle?
I want to find the texture coordinates for point P. I have the vertices of the triangle and their corresponding uv coordinates.
The numbers in the little squares in the texture represent color ...
-1
votes
1answer
69 views
Which Sprite would be rendered out of two overlapping sprites in a 2d world?
For example, in a 2d setting, I have two sprites(one of green color and other of blue) of same size and y-axis and are at some distance apart from each other in x-axis. If there distance is gradually ...
1
vote
1answer
63 views
Strange artifacts when using gl_FragCoord to access texels
I ran into a problem with using gl_FragCoord variable to access texels. The problem can be illustrated by following example:
First I render a textured quad into texture of size (W, H) where W and H ...
0
votes
0answers
40 views
Difference between sprite and texture? [duplicate]
Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture?
I read this comment on the ...
0
votes
0answers
81 views
Cubemap texturing issue D3D11 (C++)
I have a texture problem with the cubemap I'm rendering and can't seem to figure it out. I've generated a cube map with direct x's texture tools and then read it using
...