The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
111 views

How does one calculate the surface normal, in 2D collisions?

I have a ball, which should bounce when it collides with a surface. I know the formula for reflections; (v1 - 2(v1 • n)n) However, I cannot obtain the required information. I know: the ball ...
1
vote
1answer
31 views

Unity reflections going white with camera movement

Please refer to this video to understand the issue I am facing. With camera movement, there is a strong white reflection that appears over the complete model. What settings do I need to change to fix ...
1
vote
0answers
149 views

Mirror reflection in Unity 5 without using reflection probes, but can't scale to mirror object's ratio

i'm using this cs code on the mirror: using UnityEngine; using System.Collections; // This is in fact just the Water script from Pro Standard Assets, // just with refraction stuff removed. [...
0
votes
0answers
22 views

Control cubemap reflection amount from metallic and smoothness properties

I have a custom surface shader, and I want to use the reflections from the reflection/environment probe. In the default standard shader (for unity), the reflection amount is controlled by the "...
1
vote
0answers
75 views

Unity Mirror can't reflect another mirror across from it.

I created a mirror in Unity using the FX/MirrorReflection and the script that comes with it. http://wiki.unity3d.com/index.php/MirrorReflection4 One mirror at a time works perfectly fine, but as soon ...
4
votes
1answer
114 views

Matte reflection effect in Unity?

I'm trying to achieve that kind of scene but in real time using Unity. It's basically composed of some primitives, a skybox, and a plane. I'm intrigued on how to do this effect in particular: The ...
4
votes
0answers
94 views

Environment mapping without cubemap (need coordinates projection)

I'm working on a project with C++ and glsl (4.1). I have implemented a mirror object which is a plane at height 0 that works as follow: I render the scene with a MVP computed such that the camera ...
1
vote
0answers
53 views

In Unity shaders, how is IN.worldRefl calculated?

I want to know how the world reflection vector in shaders is calculated so that I can manipulate it, but there is no documentation on what it does or how Unity calculates it. How is the reflection ...
4
votes
1answer
135 views

Reflection areas on texture

I have a wheel model. It's use Reflected Diffuse shader and only one texture and only one material. So it should seen like that, right? But it's seen like that: I'm really curious about that. What ...
1
vote
0answers
340 views

Unity: Build looks different then gameview: runtime reflection probes not working correctly

Im having a really hard time figuring out how to configure my reflection probes to update in runtime once I build. The game port view looks totally different than the build view. Ive tried turning off ...
5
votes
2answers
578 views

How to render water reflections on multiple heights

I'm making a voxel game on OpenGL, and are trying to find a way to render semi-realistic water (At least partially good looking, it doesn't need to be strictly scientific accurate). All sources ...
2
votes
2answers
223 views

Efficiency - Cubemap or Raytraced reflection?

I'm an amateur in 3D game development. The thing I want to know is shading related. For reflection purpose, which will be the efficient way? Either "Realtime render to Cubemap" or "Ray trace based" ...
1
vote
0answers
816 views

Unity 5 light reflection on the water surface

How to adjust reflection in Unity 5 to show up it on the water surface. So I have few light elements in the scene. So I want my water pro to reflect this lights. As example you can see red and yellow ...
1
vote
1answer
191 views

Ray tracing - glossy reflection

Here I am again with my ray tracer for ipad. Now I'm trying to add glossy reflection to an object. How do i implement it? I read some documentation online like these: http://www.cs.cmu.edu/afs/cs/...
4
votes
1answer
550 views

How can I enable flat surface reflections in UE4 on mobile?

Could someone please tell me how do I enable reflections on flat surfaces on a mobile in UE4? I have a simple room with one directional light. I need reflections on the tables and ground planes. I ...
1
vote
1answer
203 views

Integrating specular, diffuse reflection and refraction

I am implementing an MLT bidirectional path tracer. I have a problem integrating diffuse, specular reflection and refraction. 1) The first problem is diffuse and specular reflection. Diffuse ...
0
votes
0answers
143 views

Libgdx trying to get reflection of ball with plane in 3D space

I just cannot seem to get the right reflection result. Have tried reordering the operations but none seem to work. Hoping someone might tell me what I am doing wrong. Trying to accomplish the formula (...
4
votes
3answers
524 views

Object-oriented Ability System?

For my RTS game's ability system, I need an efficient ability system where each ability is its own class that implements certain functions from an inherited abstract base class, Ability. Every ability ...
0
votes
1answer
336 views

Reflection/environment mapping

I'm implementing reflection/environment mapping using a cubemap. I have it working for the most part but when I move my camera around, I see the same area reflected on the object. I am calculating the ...
3
votes
1answer
498 views

How can I create 2D, sprite-based reflections in HTML5 Canvas?

I'm trying to create simple reflections in a 2D, sprite-based game using HTML5. I'm looking to recreate an effect like the one you'd often see in GBA games, such as Pokemon Emerald and Mother 3: ...
7
votes
1answer
5k views

How to implement this kind of ripples with a GLSL fragment shader?

So I have already implemented the reflection part: uniform sampler2D texture; uniform vec2 resolution; uniform vec3 overlayColor; void main() { vec2 uv = gl_FragCoord.xy / resolution.xy; if (uv.y &...
1
vote
1answer
364 views

How to calculate reflection vector from point sprite sphere?

So far I achieved building a cube map following this tutorial. Then I drew three points using glDrawArrays(GL_POINTS,0,3) and calculate the normals based on a sphere. To compute the incoming light ...
2
votes
3answers
999 views

How do reflections work for large flat surfaces?

I understand how reflections work for objects. A cubemap would be rendered around a certain point in 3D space, usually at the center of the object that the reflection is to be applied to, and that is ...
1
vote
0answers
136 views

Realtime local reflections of particle system

I'm finding my way around CryEngine 3 (through Steam) and want to create a simple effect where a fire on shore is reflected in a body of water. For testing purposes, I've made the water dead calm... ...
2
votes
1answer
2k views

Reflection and shadows in OpenGL

I'd like to implement shadows and reflective surfaces in my OpenGL app. I already have ideas which I will provide below. But I would like to ask someone more experienced than me before I put too much ...
2
votes
2answers
367 views

Calculate laser bounce inside polygon

I am trying to calculate the reflection of a laser within a polygon. My current calculations are probably quite long-winded because I'm building on line intersection and other functions. The problem ...
4
votes
2answers
2k views

C++ property system interface for game editors (reflection system)

I have designed an reusable game engine for an project, and their functionality is like this: Is a completely scripted game engine instead of the usual scripting languages as Lua or Python, this uses ...
1
vote
1answer
110 views

Reflection velocity

I'm trying to get a moving circular object to bounce (elastically) off of an immovable circular object. Am I doing this right? (The results look right, but I hate to trust that alone, and I can't ...
5
votes
1answer
365 views

Understanding how texCUBE works and writing cubemaps properly into a cube rendertarget

My goal is to create accurate reflections, sampled from a dynamic cubemap, for specific 3d objects (mostly lights) in XNA 4.0. To sample the cubemap I compute the 3d reflection vector in a classic ...
1
vote
1answer
602 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 ...
2
votes
1answer
78 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 ...
5
votes
1answer
768 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 first ...
0
votes
1answer
331 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 ...
6
votes
1answer
451 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
3answers
637 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 ...
12
votes
1answer
476 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 ...
3
votes
1answer
474 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 ...
2
votes
1answer
389 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 ...
1
vote
1answer
330 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 ...
3
votes
1answer
229 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 ...
0
votes
1answer
234 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
796 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 ...
4
votes
1answer
769 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 ...
5
votes
5answers
4k 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 ...
2
votes
1answer
306 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 ...
1
vote
1answer
2k 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
225 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 ...
7
votes
1answer
4k 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 ...
1
vote
1answer
220 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 ...
4
votes
1answer
747 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 ...