Giter Club home page Giter Club logo

demos's Issues

Could you add a working version of this as a demo please?

I tried to make trivial changes to hellog3n to change the "up" direction from +Y to +Z, but it did not turn out as expected. I have tried to fix it for 2 days with no luck. I think it would be really helpful if a working demo of my failed attempt could be added to the demos. Here is a repo where you can see my three changes clearly marked in source and also documented in the included README.md: g3n-helpme-1

In brief, my three changes were:

  1. Change the camera position so that it is in the same place relative to the viewer after changing the "up" direction from +Y to +Z
  2. Change the "up" direction from +Y to +Z
  3. Use a tapered cylinder instead of a sphere so the change can be seen more clearly

exit status 0xc0000135

Newcomer to Go here, followed the steps in the documentation and haven't been able to get any g3n modules to run. Not finding any documentation on the exit status code, any thoughts on how to proceed?

Microsoft Windows 10 Pro
10.0.19043 Build 19043
AMD Ryzen 7 3700X 8-Core Processor, 3593 Mhz, 8 Core(s), 16 Logical Processor(s)

    Directory: C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
------        10/22/2021  11:47 AM            356 go.mod
------        10/22/2021  11:47 AM           1385 go.sum
------        10/22/2021  11:47 AM           2274 main.go
------        10/22/2021  11:47 AM          77760 screenshot.png


PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n> go install
PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n> go run main.go
exit status 0xc0000135
PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n>

panic on window resizing

  1. Open gui -> window
  2. Try to resize Window 1 (white one)

Result: application crashes

Output:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x90 pc=0x7ff65dbe1eee]

goroutine 1 [running, locked to thread]:
github.com/g3n/engine/gui.(*Window).onCursor(0xc000005c08, {0x7ff65dfa2489?, 0x7ff65dd33410?}, {0x7ff65def4440?, 0xc0000ea0a8})
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/gui/window.go:190 +0x22e
github.com/g3n/engine/core.(*Dispatcher).Dispatch(0x0?, {0x7ff65dfa2489, 0xa}, {0x7ff65def4440, 0xc0000ea0a8})
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/core/dispatcher.go:109 +0x8b
github.com/g3n/engine/gui.(*manager).onCursor(0xa?, {0x7ff65dfa2489?, 0x7ff65da1fd1b?}, {0x7ff65def4440?, 0xc0000ea0a8?})
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/gui/manager.go:171 +0x1ae
github.com/g3n/engine/core.(*Dispatcher).Dispatch(0xc0000ec000?, {0x7ff65dfa2489, 0xa}, {0x7ff65def4440, 0xc0000ea0a8})
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/core/dispatcher.go:109 +0x8b
github.com/g3n/engine/window.Init.func6(0xc000031bd8?, 0x7ff65da1e1e5?, 0xc000054000?)
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/window/glfw.go:353 +0x5e
github.com/go-gl/glfw/v3.3/glfw.goCursorPosCB(0x7ff65da51c29?, 0x4072c00000000000, 0x4064400000000000)
        C:/Users/astef/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/input.go:340 +0x3e
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwPollEvents()
        _cgo_gotypes.go:1540 +0x49
github.com/go-gl/glfw/v3.3/glfw.PollEvents()
        C:/Users/astef/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:964 +0xf
github.com/g3n/engine/window.(*GlfwWindow).PollEvents(...)
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/window/glfw.go:433
github.com/g3n/engine/app.(*Application).Run(0xc00006c180, 0xc000031ef8)
        C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/app/app-desktop.go:91 +0x8a
github.com/g3n/g3nd/app.(*App).Run(0xc000076140)
        C:/proj/pub/g3nd/app/app.go:623 +0x294
main.main()
        C:/proj/pub/g3nd/main.go:24 +0x18
AL lib: (EE) alc_cleanup: 1 device not closed
exit status 2

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.