-
Notifications
You must be signed in to change notification settings - Fork 299
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
Is there a place where I can see examples of using g3n? #295
Comments
Hi! G3ND uses the most recent tagged version of G3N, which is older than the latest commit. I'd guess that's why you're seeing discrepancies. The G3ND example |
Thank you for the comments. Come to think of it, I didn't post the example code I wrote. I will attach the code I used below Could you have a look at it?
|
You can see a use of animation from a gltf model here: https://github.com/529124368/golang_diablo3D I think one of the problem you have in your code, is that you check for the error after using the pointer, which happens to be nil, and might make you program fail. for i := range g.Animations {
anim, err := g.LoadAnimation(i)
+ if err != nil {
+ fmt.Println("Load Animation Err : ", err)
+ }
anim.SetLoop(true)
t.anims = append(t.anims, anim) //<=== #ISUUE t.ainms is nullPoint
- if err != nil {
- fmt.Println("Load Animation Err : ", err)
- }
} |
Hello, I'm trying to create a 3d modeling viewer using g3n-engine now.
However, I am having difficulty using it because there are not many examples of use.
There are parts of g3nd(Demo) and g3n that behave differently, so I want to see an example of this, where can I see it?
When I create a 3d modeling viewer based on g3nd, I can't play animation because it becomes nil pointer in certain parts.
I want to see an example of using animation in gtlf loader. Thank you.
The text was updated successfully, but these errors were encountered: