Coder Social home page Coder Social logo

kmirrors's People

Contributors

kink3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kmirrors's Issues

Sample Project?

I'm being especially dumb today but I can't get this to work. The Wiki implies I just need to add it to a scene but I can't see anything in the scene or game view other than a transform gizmo. Am I supposed to do something with kShading as well? The

Any chance you could include a demo scene? It's nice to start from a working example.

If you're having a problem getting this to work without kToons

I've spent over an hour debugging this, trying to get it to work and even downloading others example projects and still no luck getting a reflection to render.

If you are setting this up without a kToons dependency then you'll first need to make a custom ShaderGraph, you can name this kMirror.

correctshadergraph

The important thing to do when setting up this shadergraph is to make sure your _ReflectionMap property has "Exposed" unchecked! This will allow the shader to access the setGlobalTexture() property the script is setting.

After that, create a new material and change its Shader to your new "ShaderGraphs/kMirror" and apply that to your reflective object and it should work fine assuming you have the camera set up properly.

Graphics tests

Add graphics tests to cover visual elements that cant be covered by editor tests. Investigate different ways to implement a graphics test framework.

Tests to consider:

  • Projection
  • Orthographic
  • Oblique clipping with offset
  • Layer mask
  • Local / global
  • Renderer list
  • Output scale
  • HDR
  • MSAA

Recursive reflections

Currently reflecting a surface that has mirror reflections is undefined. Look in to recursive planar reflection (see paper here)

Does not work in VR

Hello !
Everything works perfectly, but in vr there is a bad looking offset between the two eyes, do you have any idea for that ?
Thanks

When i try to import it, unity tells me it has invalid dependencies

This is the error message displayed in the editor:

[Package Manager Window] Unable to add package [file:C:/Users/[user]/Downloads/kMirrors-master/kMirrors-master]:
Package com.kink3d.mirrors@file:C:\Users[user]\Downloads\kMirrors-master\kMirrors-master has invalid dependencies or related test packages:
com.unity.render-pipelines.universal (dependency): Version '7.x.x' is invalid. Expected a 'SemVer' compatible value.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

would be cool if you could help

Stripes Artifact Appearing When Using Multiple Mirrors in Local Mode

I'm observing an odd artifact when I have a scene with multiple mirrors. I switched the various mirror components into local mode and set them to pass their texture to a specific renderer in the scene. In general, each one looks right but every so often some black stripes slowly crawl across the mirror at a very specific and repeatable distance.

I have a video example here: https://youtu.be/qCZzTZngyvA

Expected Behavior: Multiple mirrors in a scene should be possible if you set them to local mode and assign the proper renderer. They will not reflect each other recursively but the first bounce reflection should look right.

Observed Behavior: While it works in general, every so often some very noticeable artifacts appear of black lines crawling across the mirror.

Speculation: I'm wondering if this is a mipmap or LOD artifact since it comes in at a very predictable and repeatable distance to the mirror.

Experiencing some errors,Helpppppp........

Thanks for sharing,I encountered some errors when using, I don't know the reason, what should i do
20230416161112

Missing Profiler.EndSample (Every BeginSample call must have a subsequent EndSample call within the same frame): Mirror 28230 Previous 5 samples: RenderLoop.CleanupNodeQueue RenderTexture.SetActive Graphics.Blit RenderTexture.SetActive FinalBlit In the scope: Mirror 28230 Inl_ScriptableRenderContext.Submit Inl_RenderPipeline.BeginCameraRendering Inl_RenderCameraStack Inl_UniversalRenderTotal

Source: Mirrors missing?

By following the wiki I got to a point, where last thing to set up in my project is to select the source of environmental reflections on a material with kShading Lit shader. The whole "Source" input is simply missing. Any idea why?

Using Unity 2019.3.4f1 with URP 7.3.1 and having Android as target platform.

Thanks for any hints.

kMirror with reflection probes issue

I am trying to make a floor reflective using the kMirror method for the floor object itself. I would like the walls, which are planar objects (no volume) to be affected by reflection probes.
I am not sure if there is a contradiction per design, but when a kMirror object is added, a reflection probe placed in the same scene does not render the front face of the planar objects, i.e. of a plane GO. I figured that if the material on the planar object is set to render the back face (or both) the reflection probe render is fine.
Any suggestions on this odd behaviour?
As a note, if the kMirror component is disabled then the reflection probe bakes everything as expected.

Culling Mask

It seems that it is not possible to overwrite the culling mask of the mirror camera without code. But that would be extremely useful. Please include it in the next update.

Multiple mirror setup

thank you so much for this amazing package.

I would like to know how to set up multiple mirror at the same time? When i assign Kmirrors to different surface it is working individually but in game mode its showing only one mirror reflecting.

breaks with depth normals (or Decals) renderer features enabled

If a renderer feature for Depth Normals (or Decals, which seems to have something like that built-in) is enabled, it will cause this error and make the game window black:

"A non-multisampled texture being bound to a multisampled sampler. Disabling in order to avoid undefined behavior. Please enable the bindMS flag on the texture. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

in Unity 2021.3.6.f1. These features are necessary for doing things that are pretty basic to game art workflows, not some super niche stuff. Anyone know of a quick workaround?
otherwise, really really great package so far! been a joy to use :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.