Search:

Type: Posts; User: trinitrotoluene

Page 1 of 15 1

Search: Search took 0.01 seconds.

by trinitrotoluene
Replies
16
Views
3,216

Oups, then try with a cube map texture with...

Oups, then try with a cube map texture with seamless filtering if your graphic card can do that.

by trinitrotoluene
Replies
16
Views
3,216

Maybe you can try to enable seamless cubemap...

Maybe you can try to enable seamless cubemap filtering .
3. Thread: Problem with 'edge' of hill and fog

by trinitrotoluene
Replies
20
Views
3,162

Maybe it will not solve your problem, but...

Maybe it will not solve your problem, but generally when comparing a floating point number to zero, it is better to test like this

#define EPSILON 0.0001f //Any small value greater than ULP

...

by trinitrotoluene
Replies
17
Views
2,602

To test your data, I have computed the min and...

To test your data, I have computed the min and max for x and y. Then computed the mean value for both min max for each x,y and subtracted that value to each point. I do so because it easier to...

by trinitrotoluene
Replies
17
Views
2,602

I have tried your data and the algorithm with...

I have tried your data and the algorithm with stencil buffer work as is.http://s14.postimg.org/4ajwqxt2l/image.jpg I think your problem is when you read your data in a file or when you pass the data...

by trinitrotoluene
Replies
17
Views
2,602

Can you put your vertices data on a hosting web...

Can you put your vertices data on a hosting web site and put a link on this thread so I can test your data on my computer.

by trinitrotoluene
Replies
17
Views
2,602

Which algorithm are you using, the one with...

Which algorithm are you using, the one with stencil buffer or the one with GLU tessellation (a deprecated library) ?

by trinitrotoluene
Replies
17
Views
2,602

Try that with a simple concave polygon first: ...

Try that with a simple concave polygon first:

//INIT CODE
glEnable(GL_DEPTH_TEST);

//DRAW CODE
glClear(GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);

by trinitrotoluene
Replies
17
Views
2,602

You can draw filled concave polygon with the...

You can draw filled concave polygon with the stencil buffer. See this thread and this link.

Edit: with chromium on linux , open the link in a new tab otherwise the link bring me at the bottom of...

by trinitrotoluene
Replies
4
Views
973

Can you post your TexImage2D and TexParameter...

Can you post your TexImage2D and TexParameter code. Maybe the problem is there.
11. Thread: Make a cube with a single GL_TRIANGLE_STRIP

by trinitrotoluene
Replies
12
Views
3,696

You can use primitive restart. See the...

You can use primitive restart. See the documentation .

If you choose the value of the primitive restart index:

GLuint pri = a_number;
GLfloat vertices[?]={...};
GLuint...
12. Thread: Problems with (newtonian) movement

by trinitrotoluene
Replies
4
Views
894

I think that your position should not be...

I think that your position should not be multiplied by frame time. The code should be like this:

modelMatrix = glm::translate(glm::mat4(1.f),position);

The unit of acceleration is m/s^2 ....
13. Thread: Problems with (newtonian) movement

by trinitrotoluene
Replies
4
Views
894

A good introduction for particles and rigid body...

A good introduction for particles and rigid body simulation is the lecture note of David Baraff and Andrew Witkin . For a newtonian simulation, mathematical knowledge to solve basic differential...
14. Thread: Polygonizing a grid after subtracting an irregular portion

by trinitrotoluene
Replies
5
Views
2,526

The modification you wrote don't change anything...

The modification you wrote don't change anything , the result will be the same. My version was

1) set alls stencils values to 0
2) set stencils values to 1 in the interior of the irregular...
15. Thread: Polygonizing a grid after subtracting an irregular portion

by trinitrotoluene
Replies
5
Views
2,526

You can use the stencil buffer. Draw the shape of...

You can use the stencil buffer. Draw the shape of your irregular part in the stencil buffer. Use the algorithm described here for concave polygon (see the Drawing Filled, Concave Polygons Using the...
16. Thread: GLM - compile error with the division

by trinitrotoluene
Replies
1
Views
1,050

Take care when you are defining a floating point...

Take care when you are defining a floating point number as a constant. 0.0 is a double by default for the compiler (i.e 64 bit) . Add an f after each of your floating point number, so the compiler...

by trinitrotoluene
Replies
1
Views
2,380

Look at the bottom of this web page...

Look at the bottom of this web page.

by trinitrotoluene
Replies
8
Views
1,264

The normals look good. The other problem I see is maybe the winding order of the triangle strip. Do you enable cull face? Depending on the state variable you set, triangles with clock wise winding...

by trinitrotoluene
Replies
8
Views
1,264

What is the size of BufferIds variable? Because in C/C++, array indice begin at 0. So when you declare GLuint BufferIds[4], valid indice are [0 to 3]. But I don't think that this will remove your...

by trinitrotoluene
Replies
8
Views
1,264

Here is the shaders I have modified.Maybe there still bugs but as I wrote previously, it work on a simple plane

#version 420

layout(location=0) in vec4 VertexPosition;...

by trinitrotoluene
Replies
8
Views
1,264

I have tried your shaders (I have modified them a little bit) on a simple tessellated plane and it work. So maybe there is a problem with the normal of the sphere. Some vertices may have wrong...

by trinitrotoluene
Replies
13
Views
3,836

Re: GL_ARB_multisample

That's a driver bug then. The spec clearly states that GL_DITHER and GL_MULTISAMPLE are GL_TRUE by default. [/QUOTE]

So I have at least two driver bugs. I decided to send my problem to the AMD...

by trinitrotoluene
Replies
13
Views
3,836

Re: GL_ARB_multisample

Did you set also this:

SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS,1);

To get the number of samples available call
glGetIntegerv(GL_SAMPLES,&amp;samples);

On my old computer with nvidia...

by trinitrotoluene
Replies
13
Views
3,836

Re: GL_ARB_multisample

I have an AMD Radeon HD 5870 under Ubuntu and multisampling is not enabled by default with a multisample renderbuffer attached to a FBO. I must call glEnable(GL_MULTISAMPLE) explicitly. On the...
25. Thread: Fast Way to Clear a Texture

by trinitrotoluene
Replies
10
Views
5,159

Re: Fast Way to Clear a Texture

If your gl implementation support timer query, you can verify the time taken in nanoseconds to clear your texture.

//------in init function
GLuint timerObject;
...
Results 1 to 25 of 362
Page 1 of 15 1