Questions tagged [culling]

133 questions
0
votes
2 answers

Android opengles 2d culling

Anyone have links to tutorials on this topic? I cannot seem to find any related to 2d culling. Or if anyone here could explain how it's done. I use gluOrtho2D and gluLookAt currently.
semajhan
  • 708
  • 3
  • 11
  • 24
0
votes
1 answer

Face culling works with GL_FRONT, but not GL_BACK

I've enabled face culling with glEnable(GL_CULL_FACE), and I'm trying to cull the back faces, but whenever I do glCullFace(GL_BACK) nothing gets rendered. If I do glCullFace(GL_FRONT) it works as expected (that is, renders the inside of my cubes,…
Lurern
  • 21
  • 3
0
votes
1 answer

Can I make an item be rendered when an ancestor of it has opacity 0?

Problem statement Can I make an item be rendered when an ancestor of it has opacity 0? Motivation The motivation for this question is this other question of mine (I'll call it the "hidden-texture-source" problem). Note that currently I'm using…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
0
votes
0 answers

JavaFx 3D - Display large amount of TriangleMeshes

I am trying to figure out the best way to display a scene that is made of of roughly 150k TriangleMesh. This is on the low end of what I need to be capable of displaying. Currently the FPS is unacceptably low. Are there any built in culling methods…
Chris
  • 2,435
  • 6
  • 26
  • 49
0
votes
1 answer

OpenSceneGraph - Cloack of Invisibility

I’m new using OSG and I’m having some issues trying to solve a problem. I’ve created a scene (a quad and two spheres, with a fixed background) and I’m trying to occlude one of the spheres with a transparent quad. I mean, to make a "Cloak of…
0
votes
0 answers

Occlusion shader turns whole scene black

I'm trying cull away every face, if it's normal has an angle of: 90 < x < 270 (degrees) with the vector from cameraPosition to vertexPosition. Everything I see is the screen turning black. I just started with GLSL so I don't know what the reason…
user3088126
  • 175
  • 1
  • 12
0
votes
1 answer

Generate Backface of a mesh in Blender

I am using my blender objects in unity. Unity is culling the backfaces. So I wanted to generate the backfaces as seperate polys from blender itself. I can do it by duplicating the mesh itself but is there any way to do it through a modifier?
Rakesh Malik
  • 607
  • 1
  • 6
  • 27
0
votes
0 answers

Is there a faster way to make this angle comparision?

I have two unitary vectors P and Q in Cartesian coordinates. I need a very fast way to know if the angle between then is smaller than a certain amount A. The best way I could think of is: if(acos(dot(P, Q)) < A) cull(); else draw(); or,…
lvella
  • 12,754
  • 11
  • 54
  • 106
0
votes
2 answers

OpenGL: Wireframe overlay hidden line removal

I encountered a problem when working on visualizing scientific 3d models. The task is to render a model filled with a color and a wireframe overlay. This works fine for models that are solids with a closed surface. Problem #1: I have several…
0
votes
1 answer

Frustum culling - error evaluating a point in the plane of the frustum

I am trying to implement the following code: http://www.lighthouse3d.com/tutorials/view-frustum-culling/geometric-approach-implementation/ I need to use frustum culling in my graphics engine. my functions are: void frustum::updateCameraData() { …
Fabian Orue
  • 193
  • 2
  • 14
0
votes
0 answers

OpenGL frustum culling with LWJGL

I'm currently programming a voxel engine with LWJGL and I want to optimize the fps. Can you explain me how to find out if a block is in the view of the camera? The informations I have are cubeX, cubeY, cubeZ, cameraX, cameraY, cameraZ, cameraPitch &…
0
votes
0 answers

View frustum planes from camera rotation

I'm trying to perform view frustum culling by rotating points and checking if they are in front of the camera (with a radius for spherical objects). The far near top and bottom planes are working fine, but the right and left does not cull as they…
0
votes
2 answers

SDL Screen Render Position Error Along Top of Window

I am making a top down isometric game using SDL 2.0 and C++ and have come across a glitch. When a texture is rendered to the screen using the SDL_RenderCopyfunction, the moment the top of the texture hits the top of the screen it gets pushed down by…
Khillasaurus
  • 310
  • 1
  • 2
  • 12
0
votes
2 answers

Libgdx ModelBuilder.createRect only visible from one side

In my first libgdx 3D game i now switched from createBox to createRect, to create only the visible faces (if a wall is on the left side of another wall, its right face is not visible...). I am creating 4…
Robert P
  • 9,398
  • 10
  • 58
  • 100
0
votes
1 answer

Unity3D - Not rendering triangles within area

I have this issue where SIDES of perfectly aligned meshes, turn into black dots and lines at certain angles. The issue is caused by the SIDE of the mesh, being visible through the front of the mesh. As a result, it would be cool if i could do some…
1 2 3
8
9