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

Materials doesn't apply to models when using ikpolish_28 and others shaders #266

Closed
NuageJuice opened this issue Jan 13, 2023 · 4 comments
Closed
Assignees
Labels

Comments

@NuageJuice
Copy link

hello hkrn, when I load ikpolish everything works thanks to your page about it. however when trying to apply materials from the "materials" folder of ikpolish_28 to the models, an error occur. it is not just this shaders, but any shaders with materials, the materials doesn't not work, but the main.fx generally does, is it possible nanoem doesn't support normal maps and such?

ikpolishmainapplied

main.fx applied, any fx from Main folder works

ikpolishmodelmaterial

moving to the "Model" Tab to apply materials from the "Materials" folder of ikpolish (for skin, cloth, glass, metal ect...)

ikpolisherror1

when trying to load an effect, it will show this error...

ikpolisherror2

...or it will show this error

other shader such as pmotskin doesn't work at all.

MacbookAir M1

information

I'm really puzzled by all this, please enlighten me, thank you for your hard work, hoping to see new updates of the software in the future

@hkrn
Copy link
Owner

hkrn commented Jan 19, 2023

The error message indicates that this is due to the use of token pasting, which unfortunately is not supported by current nanoem's effect plugin. Also, since this problem relies on the implementation of glslang and have to implement and replace it by own preprocessor to resolve. Therefore, there is no plan to support token pasting.

(There is a possibility that a new effect plugin under development may solve this problem, but I'm not ready to release it to the public yet.)

@Tyfp
Copy link

Tyfp commented Jan 25, 2023

Hey can you fix my problem?

@hkrn
Copy link
Owner

hkrn commented Jan 28, 2023

There is no immediate fix available.

It may possible to fix by token pasting by yourself, but it's unknown if it can be done due to effect complexity.

@stale
Copy link

stale bot commented Mar 29, 2023

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Mar 29, 2023
@stale stale bot closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants