Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vision code template #1

Closed
wants to merge 4 commits into from
Closed

vision code template #1

wants to merge 4 commits into from

Conversation

arhik
Copy link
Member

@arhik arhik commented Sep 9, 2022

This is an attempt to simulate human vision with two camera.

  • fixed Nested struct field blocks issue
  • Shader now checks if the shader object failed.
  • If failed naga is used to get verbose and visual hints in error generation.
  • Also dumps the wgsl file
  • Vision implementation
  • Added GLFW as a dependency
  • refactored Events
  • changed examples after events refactoring
  • Adding incomplete vision example
  • Still needs work on vision but this code may not change. so going ahead adding this
  • added isVision kwargs

fixed Nested struct field blocks issue

Shader now checks if the shader object failed.

If failed `naga` is used to get verbose and visual
hints in error generation.

Also dumps the wgsl file

Vision implementation

Added GLFW as a dependency

refactored Events

changed examples after events refactoring

Adding incomplete vision example

Still needs work on vision but this code may not
change. so going ahead adding this

added isVision kwargs
src/events.jl Outdated

struct Event
function attachScrollCallback(canvas, vision::Vision)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right now vision events functionality matches with camera, keeping it incase we need specialisation in future.

src/shader.jl Outdated
write(file, shaderSource)
close(file)
@warn "replaced @stage location with new format"
# TODO move scratch to scratch area with definite
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO can stay for now. We will have to look at this later.

Basic idea is to give the user a way to lookinto wgsl generated in their own environment and julia start path.

@arhik
Copy link
Member Author

arhik commented Nov 12, 2023

This is not relevant anymore. Closing it since viewport API is in-place to do the same thing.

@arhik arhik closed this Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant