0
votes
0answers
29 views

Texturing Wavefront Model (.obj)

I followed the LWJGL Tutorials of theCodingUniverse on YouTube. And after episode 24, I tried to expand the Model-Loading through texturing. For that I added these Lines: public ...
0
votes
1answer
114 views

How do I load 3D textures onto my 3D model in LWJGL [closed]

I made a sword in Blender3D, exported it as a triangulated model .OBJ format, it also generated a .MTL file, and I used UV Mapping to create a texture for the model which I exported in .PNG format. ...
1
vote
0answers
56 views

Does everything have to be a polygon in openGL (java)?

I am extremely new to JOGL, and I have two main questions about JOGL, the first is about sprites and animations and the next is about textures. (I am not doing 3d, this is all in the contexts of 2d) ...
0
votes
0answers
49 views

LWJGL: Textures drawing wider than specified

I'm having a problem where my 128 x 128 texture is being drawn 164 x 128. Or 100x100 drawn 128x100. Have been trying to debug for days: very grateful for any help to save me pulling more hair out :) ...
0
votes
0answers
107 views

need help using opengl to overlay a texture on a 3d grid

I'm trying to overlay a texture of 512x512 on top of a 2x2 grid I want to make each 16x16 image on the texture to equal one grid. The texture becomes blurry and not seamless. Full Source Code: ...
-1
votes
1answer
65 views

How to set texture on a shape drawn by glDrawArrays()?

I have a 3D cube which drawn by vertex array - public void init(GLAutoDrawable drawable) { ... float[] cubeVertices = {...}; // vertex coordinates (x,y,z) FloatBuffer tmpVerticesBuf = BufferUtil ...
0
votes
0answers
53 views

Java3d texture distortion on edges

I am working w. java 3d and mapping a texture to an object (ex. a dinosaur), and by default it is seen along the object's profile. The texture gets very distorted along the 'depth' portion of the ...
1
vote
1answer
278 views

Texture Mapping is reversed! Java3D

I could use some extra eyes to help me see why my texture map is reversed on my object. It prints backwards -- as if seeing it in a mirror. I had suspected that maybe reversing the indices would ...
-1
votes
1answer
140 views

How can i fill and texture a cylinder in java without using opengl or directx [closed]

is there a book or tutorial that show this with simple example?
0
votes
1answer
93 views

Cube texturing in opengl3

Just doing my computer graphics assignment - put texture (600x400 bitmap with different numbers) on a cube to form a proper dice. I managed to do it using "classical" texture mapping: creating verices ...
0
votes
1answer
229 views

JOGL NeHe Tutorials

I have been working through one of the NeHe tutorials (Lesson06) with texture mapping and was trying to modify the code to allow different images on the already created 3D cube. After looking through ...
0
votes
0answers
145 views

lwjgl can't find path for my textures

I can't figure out how to load textures in a 2d environment using lwjgl. I'm using their tutorial's Sprite, Texture and TextureLoader classes. I've simply replaced the original paths/files with my ...
1
vote
0answers
128 views

Java-How to use a texture grid?

I did some research on texture grids in java today as I thought it was time to stop using a different image file for every texture I needed in a game. Well, this lead to nothing. What I mean by a ...
1
vote
1answer
335 views

OpenGl ES - How to map different textures to a grid of tiles

Just been learning some OpenGL on android learning the basics of making a game. The trouble I'm having is to do with mapping different textures "per tile" onto my grid. For instance: I have a grid ...
4
votes
4answers
3k views

Difference between U V and S T texture coordinates

Hey can anybody tell me the difference between a U V texture coordinate vs S T texture Coordinate I know that U V and S T are used in opengl I also know that S T are also used in Java
0
votes
1answer
348 views

LWJGL Cylinder Texture Mapping

I wanted to know how to preform texture mapping on the org.lwjgl.util.glu.Cylinder class. I want to be able to wrap the texture around the "Side/Curved" Part of the Cylinder. This is my main ...
1
vote
1answer
119 views

Texture atlas renders differently on a different computer

I'm having a problem with a simple 2d tile-based engine I'm working on. On my home computer (Windows 7 64bit, jogl 1.1.1) the textures bind properly to the tiles but on my laptop (Windows Vidta 32bit, ...
0
votes
1answer
187 views

Mapping several Textures on the same surface

I am rendering a cylinder and mapping two different textures to the top and to the bottom face. Both the textures are loaded in the following way: check3dFloorFile = new File(check3dFloorPath); ...
1
vote
1answer
177 views

Texture coordinates don't work?

Seriously I'm getting mad with this code, because don't work: switch(particle) { case 0: glBegin(GL_TRIANGLE_STRIP); // STONE glNormal3f(0.0f, 0.0f, 1.0f); glTexCoord2d(1, ...
1
vote
1answer
603 views

Java OpenGL apply fragment shader to partially transparent texture mapped quad

I'm drawing a texture mapped quad with a texture that has some transparent pixels on it. So, I load the texture and then draw it gl.glEnable(GL.GL_ALPHA_TEST); ...
2
votes
2answers
562 views

Problem texture mapping a quad in OpenGL with Ortho2D

The following code produces the image that follows. The image I am using for the background is 640 x 480, as is the displayMode. The texture background is a .bmp and is loaded with the Slick texture ...
0
votes
1answer
324 views

Android texture mapping weird problem

I'm no expert when it comes to opengles but I have been using it for a lot of my applications. I created a new app to refresh myself on opengles and I got a square to draw. Now I applied texture ...
0
votes
1answer
873 views

Reading 32-bit RGBA float values in GLSL

I'm trying send some 32 bit float data to a shader, but the results are erratic. If I test with full white (1,1,1,1) the values are all zero. This is my code for creating the texture: ...