Skip to content

coherence-engine-v2/Coherence-Visual-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Coherence Visual Validator (LoC-V)

A visual logic validator for Unity, powered by the Logic of Coherence (LoC) framework.


πŸ“ Rule Format (VisualRuleSet.json)

{
  "parameter": "isVisible",
  "comparator": "eq",
  "value": "false"
}

Triggers thenRequirements like:

{
  "property": "castsShadow",
  "expectedValue": "false"
}

πŸ” Example Rule

{
  "id": "shadow-on-invisible-object",
  "description": "Invisible objects should not cast shadows.",
  "ifCondition": {
    "parameter": "isVisible",
    "comparator": "eq",
    "value": "false"
  },
  "thenRequirements": [
    {
      "property": "castsShadow",
      "expectedValue": "false"
    }
  ],
  "message": "Object is invisible but still casting a shadow."
}

🎨 Supported Visual Properties

Property What It Means
isVisible Is the object's renderer enabled?
castsShadow Does the object cast real-time shadows?
materialColor The current material color of the object

You can expand this by adding your own properties in GetVisualProperty().


🌟 Features

  • Runtime visual coherence validation
  • JSON rule system (readable, editable, expandable)
  • Supports: isVisible, castsShadow, materialColor, etc.
  • Comparators: eq, ne, gt, lt, etc.
  • Extendable to:
    • Shader keywords
    • FX presence
    • Animator states
    • Camera effects

🧠 Based on the LoC Framework

This is a visual module for the broader Coherence Engine Stack, which includes:

  • βœ… Coherence Filter Engine (Logic Layer)
  • πŸ”· Coherence-Physics (future physical consistency layer)
  • πŸ”· Coherence-AI (logic-driven NPC validation)

πŸ“„ License

Free for non-commercial evaluation.
See LICENSE-EVAL.txt and COMMERCIAL.md for terms.


πŸ› οΈ Coming Soon

  • Unity Inspector Overlay (to highlight visual violations in-scene)
  • Editor-time validation for artists and designers
  • Unreal Engine version (mirror of this validator)

πŸ‘‹ Contact

Built by @NailerCole
Powered by 🧠 Logic of Coherence (LoC)
πŸ“§ nailercole@gmail.com


πŸ“š Foundational Research

This project builds on the Logic of Coherence (LoC) framework: