The tag has no wiki summary.

learn more… | top users | synonyms

12
votes
1answer
252 views

Accounting for waves when doing planar reflections

I've been studying Nvidia's examples from the SDK, in particular the Island11 project and I've found something curious about a piece of HLSL code which corrects the reflections up and down depending ...
6
votes
1answer
1k views

Where can I get a list or data base of light reflectance values for different materials?

I'm implementing lighting for a WebGL app but I'm not an artist so I don't know how to generate or where to obtain a list of materials with its values (diffuse, specular, ambient and shininess). I've ...
6
votes
1answer
227 views

What is the most efficient way to blur in a shader?

I'm currently working on screen space reflections. I have perfectly reflective mirror-like surfaces working, and I now need to use a blur to make the reflection on surfaces with a low specular gloss ...
4
votes
1answer
340 views

How do I check if a key is down in XNA when I'm only given a string that has the key's name?

I'm trying to get access to the keyboard state in XNA from an embedded JavaScript runtime. I'd like to do something similar to the following, but I can't seem to figure out how to get from "Left" to ...
4
votes
5answers
2k views

Input/Output console window in XNA

I am currently making a simple game in XNA but am at a point where testing various aspect gets a bit tricky, especially when you have to wait till you have 1000 score to see if your animation is ...
4
votes
1answer
325 views

Where can I find a BRDF reference implementation?

Does anyone have a link to a sample implementation of how to create/handle 4D BRDFs? I found a few interesting papers and websites, Szymon's (student, Princeton) BRDF survey, 1997 SIGGRAPH survey ...
4
votes
1answer
415 views

XNA Moddable Game - Architecture Design and Reflection

I've decided to embark on an XNA moddable game project of a simple rogue style. For all purposes of this question, I'm going to not be using a scripting engine, but rather allow modders to directly ...
4
votes
0answers
116 views

How can I implement real-time mutual object reflection?

So, given a scene like this (cubemap skybox with "real" spheres) Everything looks great, except for the fact that the spheres don't reflect each other. What's a good way to go about this? The ...
4
votes
2answers
172 views

How do I add a method to a class without editing the source file?

I am trying to add a method to a Minecraft source file, but I have to figure out how to do it without actually editing the source files, as it would be illegal to redistribute Minecraft's source files ...
3
votes
1answer
155 views

Rendering metallic look

I would really like to get the same metallic reflection look as in CSR Racing for my game in the simplest way possible. It doesn't have to be top-notch, but right now my rendering looks horrible and ...
2
votes
1answer
85 views

Is it important for reflection-based serialization maintain consistent field ordering?

I just finished writing a packet builder that dynamically loads data into a data stream for eventual network transmission. Each builder operates by finding fields in a given class (and its ...
2
votes
1answer
48 views

How To Set Constants Using ID3DShaderReflection

I got to the point where I am tired of hardcoding shaders and decided that it was now time to look into using ID3D11ShaderReflection to get data from the shader and set my shader's constant buffer ...
2
votes
1answer
169 views

Problem with D3DXMatrixReflect

Currently I am trying to reflect a sky sphere into a flat piece of geometry which is acting as water. The sphere is very small, it follows the camera on all 3 axis and the z-buffer is turned off so it ...
2
votes
1answer
244 views

Microfacet model - BRDF obtain extreme values at grazing angles

I've been trying to replicate the result of this paper (linked directly to PDF paper, but you don't need to read it to give an answer) and encountered a problem with the BRDF according to the ...
1
vote
1answer
1k views

How to draw reflection of shaded objects in OpenGL?

I am trying to draw a scene with objects floating around and a mirror among them to reflect the objects in front of it. I managed to draw the reflection properly when the floating objects aren't ...
1
vote
1answer
148 views

3D Reflection - Drawing Upside Down

After reading up on rendering reflections, it seems that the way to do it is the render the scene from underneath the plane of reflection, and then use projective texturing to map the reflected ...
1
vote
1answer
32 views

Correcting Lighting in Stencil Reflections

I'm just playing around with OpenGL seeing how different methods of making shadows and reflections work. I've been following this tutorial which describes using GLUT_STENCIL's and MASK's to create a ...
1
vote
0answers
149 views

reflection plane 3d

Hey there I'm trying to create a plane that can have a texture on it and reflect the 3d elements around it. for example a plane with a laminate floor texture and above it a cube rotating. I want the ...
1
vote
1answer
193 views

rendering a reflection on a texture [closed]

I want to render reflection on a planar surface but the reflecting surface has a texture mapped onto it.Would the normal technique of using stencil buffer and then blending in the reflected image with ...
0
votes
1answer
86 views

HLSL How to flip geometry horizontally

I want to flip my asymmetric 3d model horizontally in the vertex shader alongside an arbitrary plane parallel to the YZ plane. This should switch everything for the model from the left hand side to ...
0
votes
1answer
142 views

Why texture coordinate of flat surface reflection is calculated like this in fragment shader? [closed]

The whole project is here: https://developer.apple.com/library/mac/#samplecode/GLEssentials/Introduction/Intro.html The rendering flow is like this: Render the character upside down to a texture. ...
0
votes
1answer
351 views

C++ formatted serialization [closed]

I've decided it's time to implement serialization in my simple engine but this has caused me many headaches for the past couple of days/weeks. My engine uses an entity/component based approach similar ...
0
votes
0answers
31 views

How do I apply a specular/reflective map in Rhinoceros?

I'm designing a 3D model using Rhinoceros 5, and after having created the UVMap with UVLayout, I've imported the .obj file back into Rhinoceros to apply materials to it. I've successfully added ...
0
votes
0answers
34 views

bounding box of objects reflected in a surface

I'm interested in a subset of ray-tracing functionality. Specifically, I have a mirror surface (specified as some bidimensional surface, as of yet with no specified implementation, maybe some ...