Most Popular

1500 questions
5
votes
1 answer

Changing colors after raytracing

Intro Maxwell Render has a feature called multilight, where one can ray-trace a scene with multiple light sources, and change the brightness of the individual light sources afterwards. Luxrender has a similar feature called light groups. I image…
5
votes
1 answer

Efficiently rendering sprites

In order to naïvely render sprites, you can send single rectangles with their position, rotation, size, and texture. This is very easy, but given that reducing state changes, draw calls, and data uploads are good ways to improve rendering…
porglezomp
  • 424
  • 3
  • 10
5
votes
2 answers

Will the gaussian kernels in this fragment shader be computed for every fragment?

I am running this fragment shader on every pixel on screen. I am trying to make it as efficient as possible. BTW I am running open gl es 2.0. The code segment below is only a sample from the code, there are about 56 different calls to Gaussian()…
J.Doe
  • 1,445
  • 12
  • 23
5
votes
1 answer

Texture Parts Terminology

I'm generalizing my texturing code, and have become confused by the frankly contradictory information about textures' pieces. Specifically, I'm looking to understand what exactly the terms "face", "layer", "layer-face", and "mipmap chain" refer…
geometrian
  • 1,980
  • 13
  • 26
5
votes
2 answers

Sharing calculation result between shader programs in OpenGL

Question Is there a way to compute something in a first shader program (eg. screen-space coordinates from word-space ones) and access those results in an another shader program? Possible solutions Give up multiple-shader-programs architecture and…
BPiek
  • 307
  • 1
  • 7
5
votes
2 answers

Is there a objective reason for matrix naming conventions?

I'm probably going to screw this up but.... In all the graphics libraries I've seen various matrices are often called something along the lines of viewProjection modelViewProjection worldViewProjection mvp wvp etc. But, that seems unintuitive given…
gman
  • 214
  • 1
  • 7
5
votes
1 answer

Where are the highlight definitions inside of my shader?

I have a pretty good glow shader going now thanks to some tips from people here. However there are a few things that bother me that could maybe be better. #1 Definition of the particles A lot of times if the particles are moving a lot it just looks…
J.Doe
  • 1,445
  • 12
  • 23
5
votes
1 answer

Closed form solution to a problem of tangent circles

I have two circles, that I know are both tangential to a third (unknown) circle. I also know what quadrants of the circles the tangential points are in. It is as pictured below. I also know the arc angle that the third circle spans between the two…
5
votes
2 answers

What is the difference between shading and shadowing?

Shading and shadowing are often mentioned in how to create realistic 3D graphics, but the distinction is not clear. Are both responsible for the generation of shadows, or do they refer to the same concept?
Crashalot
  • 181
  • 2
  • 6
5
votes
1 answer

OpenGL Instanced Rendering with Level of Detail

Problem: I'm trying to draw a scene with a lot (about 10000) of similar objects (in my case bushes, but could be anything). For each bush I have three meshes with a different number of triangles and I want to use one of these meshes depending on the…
AlbertM
  • 153
  • 6
5
votes
0 answers

How Texture Prefetch works?

I know GPU prefetches textures and that's why dependent texture reads are slower, but how does it work and at what point that happens? EDIT: Split the content of this question into others as suggested by trichoplax Here's a link to other…
Felipe Lira
  • 1,246
  • 1
  • 11
  • 16
5
votes
1 answer

Are there specific techniques for generating False Radiosity in surfaces?

I thought of this after my radiosity vs ray tracing question. A radiosity algorithm seems to require increased calculations because it's viewpoint independent and therefore, false radiosity was born (at least it's the way it was explained). It is…
Armfoot
  • 615
  • 1
  • 6
  • 14
5
votes
2 answers

Is it possible to render red / blue 3d from one image and a depth buffer?

To render an image for use with red & blue 3d glasses, the usual way to do it is to render from one point of view, convert it to a single intensity (greyscale) value per pixel, and then put that into the red color channel. Render from a slightly…
Alan Wolfe
  • 7,801
  • 3
  • 30
  • 76
5
votes
1 answer

Is this smaller grid for Poisson disc sampling still correct?

I've seen a number of 2D Poisson disc sampling algorithms online that use a grid to accelerate checking for existing points within the minimum radius [![r][r image]][r link] of a candidate point. For example: Dev.Mag mbostock They use a grid of…
5
votes
1 answer

How does directional Gaussian blurring work?

In image editing software, you often have the ability to do a directional blur where you can choose and angle and a magnitude of a blur. How does this actually work in practice with Gaussian blurring? I could see possibly doing something like making…
Alan Wolfe
  • 7,801
  • 3
  • 30
  • 76