Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
texture
- Page 1
Texture segmentation using Local Binary Pattern
Community Center
Say Hello!
2 Years Ago
by Mallika_1
//
Texture
segmentation using Uniform Local Binary Pattern…1.0; } } printf("\n
Texture
vector for (%d,%d)",i,j…
Texture Mapping - Loading an image in openGL
Programming
Software Development
13 Years Ago
by BoBok2002
… glGenTextures(1, &
texture
); // allocate a
texture
name glBindTexture(GL_TEXTURE_2D,
texture
); // select our current
texture
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, …); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST); // when
texture
area is small, bilinear filter the closest mipmap…
Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
…(1, &
texture
); //get a name for the
texture
glBindTexture(GL_TEXTURE_2D,
texture
); // Bind the
texture
object to its … application mode glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); // build our
texture
mipmaps // gluBuild2DMipmaps( GL_TEXTURE_2D, 3, width, height, // GL_RGB…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
…, &
texture
); //get a name for the
texture
glBindTexture(GL_TEXTURE_2D,
texture
[0]); // Bind the
texture
object to …the application mode glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); // build our
texture
mipmaps // gluBuild2DMipmaps( GL_TEXTURE_2D, 3, width, height, // GL_RGB,…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by mike_2000_17
… before you render the polygons on which the
texture
is applied is to call the glBindTexture() function…glBindTexture() at line 111 with the variable "
texture
" which is not initialized could possibly cause …are drawing (circles and stuff) all have correctly given
texture
coordinates (glTexCoord2f()) associated to each vertex. Can you…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
… before you render the polygons on which the
texture
is applied is to call the glBindTexture() function…glBindTexture() at line 111 with the variable "
texture
" which is not initialized could possibly cause …are drawing (circles and stuff) all have correctly given
texture
coordinates (glTexCoord2f()) associated to each vertex. Can you…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
… the glRotatef call): [CODE] glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); glBindTexture(GL_TEXTURE_2D,
texture
[0]); glBegin(GL_QUADS); glVertex3f(0,0,0.99); glTexCoord2f(0… to include your code. I researched a little bit on
texture
mapping. The coordinates and vertexes in your code were floats…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by mike_2000_17
… lines). Where do you draw a large rectangle with the
texture
object binded and mapped to it? For example, you should… the glRotatef call): [CODE] glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); glBindTexture(GL_TEXTURE_2D,
texture
[0]); glBegin(GL_QUADS); glVertex3f(0,0,0.99); glTexCoord2f(0…
Re: Texture Mapping - Loading an image in openGL
Programming
Software Development
13 Years Ago
by mrnutty
…;r");[/icode] and the call can be [icode] GLuint
texture
= LoadGLTexture("C:\\Users\\annette\\My Pictures\\face.png"…
Re: Texture Mapping - Loading an image in openGL
Programming
Software Development
13 Years Ago
by BoBok2002
…;r");[/icode] and the call can be [icode] GLuint
texture
= LoadGLTexture("C:\\Users\\annette\\My Pictures\\face.png"…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by myk45
Are you sure [B]SOIL_load_OGL_texture()[/B] is returning successfully? Also, have you specified the correct
texture
coordinates while drawing the shapes? [QUOTE]] but I still can't get the image to upload.[/I] [/QUOTE] Could you take a screenshot of the output and post it here?
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
…()[/B] is returning successfully? Also, have you specified the correct
texture
coordinates while drawing the shapes? Could you take a screenshot…
Re: Texture Mapping - Loading an image in openGL - 2
Programming
Software Development
13 Years Ago
by BoBok2002
… to include your code. I researched a little bit on
texture
mapping. The coordinates and vertexes in your code were floats…
Re: Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by MattEvans
…you drawing the sphere; are you generating the vertices and
texture
coordinates manually? What is the projection method of the …between 0 and 1 where it 'should' horizontally wrap in
texture
space )...? I had that problem myself for a while, …0... which meant I got a whole 0 to ~1
texture
segment, backwards, within one column of faces... Easy to …
Texture not visible
Programming
Game Development
15 Years Ago
by sL@Y3R_WiLLRocK
… 9. My game has top-down view. I loaded two
texture
files(*.png image). One is the background and over that… fine, showing the char and its movement over the background
texture
. I'm running the same program on my laptop(I… working on other system earlier) and the
texture
of character is not visible. The
texture
of background is visible, but not the…
Texture depth doesn't seem to work
Programming
Game Development
15 Years Ago
by ShadowScripter
…NULL, NULL, NULL); return; } void LoadTexture(LPDIRECT3DTEXTURE9*
texture
, LPCTSTR filename) { D3DXCreateTextureFromFileEx(d3ddev, filename, D3DX_DEFAULT, …(255,0,255), NULL, NULL,
texture
); return; } void DrawTexture(LPDIRECT3DTEXTURE9
texture
, RECT drawingrect, D3DXVECTOR3 position, D3DCOLOR…
Re: Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by caowei
… to draw the sphere.First I generate vertices and
texture
coordinates manually,but i find the coordinate is wrong.…i think the formula that is used to create the
texture
coordinate is wrong. for your sencond question :some part… of the
texture
coordinate is right,but when i rotate the sphere ,more…
Re: Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by caowei
…methods to draw the sphere.First I generate vertices and
texture
coordinates manually,but i find the coordinate is wrong.…draw sphere but use the same formula to generate the
texture
coordinate,and the problem still happen.so i think … wrong. For your second question :some part of the
texture
coordinate is right,but when i rotate the sphere ,more…
Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by caowei
… been puzzled by a problem that is how to set
texture
for a sphere for a long time.i want to…,i have create an earth,but some coordinate of the
texture
is wrong,i guess i have used a wrong formula…
Texture Paint in java
Programming
Software Development
12 Years Ago
by Andy_01
…[] args) { Test1 t=new Test1(); JFrame frame = new JFrame("
Texture
paint"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setContentPane(t); frame…
Re: Texture segmentation using Local Binary Pattern
Community Center
Say Hello!
2 Years Ago
by Reverend Jim
How about some explanation and comments to go along with the code?
Re: Texture segmentation using Local Binary Pattern
Community Center
Say Hello!
2 Years Ago
by Schol-R-LEA
I haven't had the chance to look through this code in detail, but two things immediately strike me: * The use of `<conio.h>`. This is a non-standard library which is specific to certain ancient MS-DOS and Windows compilers, and won't be supported by any modern compiler library. * The declaration of `main()` as a `void` function. This is …
Re: Texture segmentation using Local Binary Pattern
Community Center
Say Hello!
2 Years Ago
by Maria_36
Hello everyone, This is Maria Porter. I have recently joined this forum site.
Re: Texture and Lighting?
Hardware and Software
Hardware
19 Years Ago
by Sidius
… a warning saying something along the lines of cannot detect
Texture
and Lighting. If you need more info I can run…
Re: Texture and Lighting?
Hardware and Software
Hardware
19 Years Ago
by Sidius
… there some way of getting software that will give me
texture
and lighting or something that will trick the game into…
JOGL How to texture glDrawElements
Programming
Game Development
14 Years Ago
by hallinan
… / length)}; } } private void loadGLTextures(GLAutoDrawable gldrawable) throws IOException { TextureReader.
Texture
texture
= null;
texture
= TextureReader.readTexture("data/images/04.bmp"); GL gl…
Load multi texture opengl es 2.0
Programming
Game Development
11 Years Ago
by STVG
…, GL_FALSE, 5 * sizeof(GLfloat), vVertices); // Load the
texture
coordinate glVertexAttribPointer(userData->texCoordLoc, 2, GL_FLOAT, GL_FALSE, 5…{ UserData *userData = (UserData*)esContext->userData; // Delete
texture
object glDeleteTextures(1, &userData->baseMapTexId); glDeleteTextures(1,…
Filling shape with texture
Programming
Software Development
14 Years Ago
by kyojin
… bi.createGraphics(); // Render into the BufferedImage graphics to create the
texture
. big.setColor(Color.green); big.fillRect(0, 0, 5, … TexturePaint tp = new TexturePaint(bi, r, TexturePaint.NEAREST_NEIGHBOR); // Add the
texture
paint to the graphics context. g2.setPaint(tp); // Create and…
Re: please help with texture mapping on OpenGl.
Programming
Game Development
16 Years Ago
by mrnutty
…gt; #include<windows.h> #include"
texture
.h" using namespace std; void InitGL() { …GLUT_DEPTH); glutInitWindowSize(550,550); glutInitWindowPosition(300,100); glutCreateWindow("
Texture
Practice!!!!!"); InitGL(); glutDisplayFunc(disp); glutKeyboardFunc(keyboard); glutReshapeFunc(handleResize…
Re: JOGL How to texture glDrawElements
Programming
Game Development
14 Years Ago
by emilo35
… you wrote? To me it looks like the
texture
coordinates are calculated to your quads when drawing them…(GL.GL_TEXTURE_2D);[/ICODE] and also binding the particular
texture
you're interested in with [ICODE]gl.glBindTexture(…GL.GL_TEXTURE_2D, textures[/*
Texture
ID here */]);[/ICODE] before drawing. I hope any …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC