Tagged Questions
1
vote
0answers
17 views
Getting a solid black texture from GL_DEPTH_ATTATCHMENT
I am trying to implement a set of shaders to render a SPH fluid simulation using LWJGL, as shown in this presentation from NVidia. For that, I need to first render my particles as a texture and apply ...
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
57 views
LWJGL - Shader for a 'manually loaded' NPOT texture
I am trying to display an npot texture in my lwjgl window. The result is this:
The texture is repeated 4 times, upside down as well as distorted by horizontal lines. Obviously this is not the ...
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.
...
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: ...
0
votes
1answer
101 views
Incorrectly applied textures
I'm kinda new to this, so I'm stumped.
I create a simple model of a card in blender with a single face and texture, then export it as .obj when I load it to lwjgl the texture is not only backwards ...
0
votes
1answer
225 views
LWJGL Renders OBJ File texture coordinates in correctly
I'm trying to import an obj for my game program in LWJGL. I got my game to load the texture coordinates and vertices fine, the vertices render fine but the texture coordinates are all weird. I found ...
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
970 views
How to texture a model in LWJGL?
I have created some chess piece models I created in Blender, successfully exported as OBJ and loaded into my LWJGL app. They display correctly with lighting and color, etc. (YEAH!!)
Now, being chess ...
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 ...
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 ...
1
vote
1answer
638 views
UV mapping for a dome?
I am trying to understand how can I change UV mapping of a dome, I need a different texture map projection than this one coded below:
protected final void createDome(final float radius) {
int ...