Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[Help] Weights issue in Noesis script

Featured Replies

  • Author
  • Localization

casauhoaca, posted Mon Feb 10, 2020 1:55 pm (53902)


Hi everyone,
After months giving up, I decide to fight again with the boneWeight and animation in Noesis.
The files come from jx2 - Kingsoft.
Mesh and bone are loaded correctly (or as I think so) but bone weight isn't.
There are 3 issues:
  1. I do not know how to use functions for bone weight in Noesis in my case.
  2. Why is there a 4x4 Mat for parent bone under each 4x4 Mat for each bone, or maybe I missunderstand about its role. See below for reference.
  3. How to test for the weight and bone when I have no animation file, is it anyway to create a simple animation for testing purpose?
Hope someone could help or give hints. Many thanks.
Here is the file structure:
Quote:
The ksword3d models look static - very simple, vertices 3 floats, normals 3 floats, UV 2 floats 1 long, triangle strips?

I add structure of bone as below:
Code:
bone offset 4 bytes - byte 188th from the beginning
After jumping to bone offset
number of bones 4 bytes
char bone-name 30 bytes
char parent-bone-name 30 bytes
int number of child bones 4 bytes
char child-bone-name[] 30 bytes
float transform-matrix[4][4] 64 bytes //need to be inversed
float parent bone transform-matrix[4][4] 64 bytes //need to be inversed
int number of vertex connected to this bone 4 bytes
int vertex id[] 4 bytes
float weight[] 4 bytes // weighting information corresponding to vertex id

Here is the code:
https://pastebin.com/vTbzXe8A
And sample file:
https://drive.google.com/file/d/14G-9xR_QSdagUPpa5hV7VF5HGQDnnPoB/view
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.