Questions tagged [texturing]
119 questions
0
votes
0 answers
OpenGL texturing issue: Texture is getting mixed with the primitive color
So I'm fairly new to OpenGL and texturing. I have a flat plane like primitive (2 triangles) that I'm trying to map an image on to. I've done this 2 ways. The first way I wrote a Fragment shader that uses sampler2d uniform, and calles texture2d to…

user3827379
- 43
- 7
0
votes
0 answers
Texture just renders as a solid square colored like the main pixel of my texture image
When trying to render my opengl texture I just get a solid quad that is the base color of my texture.
Here is my code for loading textures and renderering / my shaders
vertexShader.vert
#version 400 core
in vec3 in_Position;
in vec3 in_Color;
in…

Cody Hafemeister
- 72
- 6
0
votes
0 answers
Rendering objects with glMultiDrawArrays and adding textures
at the moment I´m building a simple 3D renderer. The renderer reads object information from an Wavefront OBJ file. What I get from the file are vertex coordinates, normal coordinates and UV coordinates. With the OBJ file comes an MTL file which…
0
votes
1 answer
Live Texturing using Vuforia
I wanted to know if there is a possibility of doing live texturing in 3D model using vuforia.
If not live, can we at least pick the color from drawing book and apply the same color to our augmented 3D model?
Like done in the following…

FaHad Minhas
- 11
- 1
0
votes
1 answer
Texture size when using JOGL
In my next project, I'm trying to learn JOGL. The result should be a simple 2d animation.
I've heard, that a texture must be 2^n*2^n in size. Can I still use images which don't have this size, or do I have to edit all images in advance? What do I…

Elvith
- 235
- 2
- 6
0
votes
1 answer
How do I render two different images to two different primitives in OpenGL? 2D Texture arrays?
So I have a simple OpenGL viewer where you can draw any number of boxes that the user wants. Ive also added the ability to take a PNG or JPG image and texture map it to a primitive.
I want to be able to have the user specify any of the cubes on…

user3827379
- 43
- 7
0
votes
2 answers
Blender to Unity3D texturing problems
I'm making models for a game, and to make them look a bit like holograms, I've given them transparent textures and wire-frames on the inside. For some reason when I export them into Unity3D they show up completely white with no wire-frame.
I have…

Muted Games
- 9
- 2
0
votes
1 answer
Changing polygons' colors in Maya via Python
The only way I know is to use a slider:
import maya.cmds as cmds
cmds.colorSliderGrp( 'polygonColour', label = "Colour", hsv = ( 1, 1, 1 ) )
Then taking the RGB value from that:
rgb = cmds.colorSliderGrp( 'polygonColour', query = True, rgbValue =…

Time
- 3
- 2
- 4
0
votes
1 answer
Changing the color of every face of a cube
I've been trying to change the color of my cube when it is clicked on. The problem I'm having is that it doesn't seem to work when I use a MeshFaceMaterial. So far I have managed to change the color of a single face of the cube like this:
if (…

Jennifer M
- 41
- 1
- 1
- 6
0
votes
1 answer
Unity3D: terrain object's textures flickering on long distances
I'm making RTS project on Unity3D.
I created terrain with Unity's standard Terrain tool, and added textures of grass, mood etc. on it. Then, for creating "man-made" objects of terrain (roads, sidewalks, road curbs etc) - I'm created this objects in…

lewis
- 482
- 2
- 10
- 22
0
votes
1 answer
Right model of texture coordinates in OpenGL ES
I have a trouble with understanding mapping of texture in OpenGL ES. For example, i have a little obj-file containing information like this:
v -75 75 -50
v 75 75 -50
v -75 -75 -50
v 75 -75 -50
vt 0 0
vt 0 1
vt 1 1
vt 1 0
f 4/3 3/2 1/1
f 2/4 4/3…

Ilya
- 13
- 4
0
votes
1 answer
OpenGL texture doesn't render
The texture simply doesn't render, the geometry is all black.
Screenshot: https://i.stack.imgur.com/QE1QU.png
Code: http://pastebin.com/SvB8rxxt
I'd also link to the texture I'm trying to render and the transformations.py module, but I don't have…

orost
- 361
- 2
- 6
0
votes
1 answer
how can i flip a cairo surface before saving with python?
I am creating textures using cairo and saving, the issue is if i use the surface directly with opengl its flipped vertically.
if i save and load i can use pil and im.tostring() to flip it.
is there a good way to flip it the cairo surface, perhaps…

Oly
- 370
- 5
- 16
0
votes
1 answer
Texturing 3D cubes with LWJGL using VBOs
I am having a big problem with OpenGL. I've tried to get a simple box to render with textures. However, even this code, which is supposed to just draw the box crashes. How do I add textures to a 3D box using VBOs and how do I get this code not to…

thejava
- 108
- 2
- 10
0
votes
0 answers
Threejs: Terrain texture happens invisible/transparent
Three.js r62
I have a scene from .obj file with a few meshes.
https://dl.dropboxusercontent.com/u/8913924/terrain/index.html
I try to apply a texture to the "terrain" object.
Result is an invisible/transparent texture.
(if a texture applied to any…

user2871964
- 23
- 5