question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmissiveMap texture error when using the MMDAnimationHelper and MMDLoader (maybe is texture error

See original GitHub issue

Describe the bug Same question at #23190

image O_3F@%Z%E$2%UG } YB3NFS

But If I turn off the pointLight and only open the ambient light it can display the emissiveMap silghtly X}629QQ%`HJVTB DMXN22S )SZX}91@81{TL9WY~J6Y7NJ

I found some solutions ways like https://zhuanlan.zhihu.com/p/350136476 and https://blog.csdn.net/qq_34272760/article/details/120530944 Then I follow their ways found this

//try to type this in console to find that emissiveMap
test.mesh.material[9].uniforms.emissiveMap

Surprisingly found this image So I thought that might be the texture error when parse the PMX file then I

test.mesh.material[9].uniforms.emissiveMap = test.mesh.material[9].uniforms.emissiveMap

nothing helped

To Reproduce

Steps to reproduce the behavior:

  1. Go to download https://drive.google.com/drive/folders/1XkZkIqJa8zMwbunGL4XFAmNvDY_JZzcG?usp=sharing
  2. Drag the package which named three.js-r139 into the folder MMDLoaderTest
  3. Open VSCode and switch to test.html
  4. Click right button select “Open with Live Server”
  5. Drag canvas to back of the character to see the problem

Code

//use this function in console to play and pause the motion
PlayPause()

Expected behavior I hope this can displayed rightly

Platform:

  • Device: [Desktop]
  • OS: [Windows11]
  • Browser: [Chrome 99.0.4844.84]
  • Three.js version: [r139]
  • IDE: [VSCode]
  • VSCodeExtension: [Live Server]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19

github_iconTop GitHub Comments

4reactions
takahiroxcommented, Apr 12, 2022

OK, figured out the root issue. shininess parameter is not handled properly. I will make a PR hopefully tomorrow.

2reactions
ChenZihan-sudocommented, Apr 14, 2022

@takahirox Thanks! It works very well! I test it yesterday and didn’t found any black shadow.

I see you only merge the change to the jsm folder but js folder in example. However I am not use module. So I just copy your change to modify mmd loader in js folder. It still works! Thanks!

Screenshot_20220414_090936_com.tencent.mobileqq.jpg

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the error white texture on pmx edit and pmd edit
GET YOUR ROXANNE WOLF (OR OTHER CHARACTER) PERSONAL VIDEO ON PATREON! (+EXCLUSIVE CONTENT): https://www.patreon.com/monsteroftruth21Today we ...
Read more >
MMDLoader – three.js docs
A loader for MMD resources. MMDLoader creates Three.js Objects from MMD resources as PMD, PMX, VMD, and VPD files. See MMDAnimationHelper for MMD...
Read more >
three.js - Attempts to load a texture show no error but the ...
I've tried the basic approach and come to the conclusion that it is probably that the scene is being rendered before the texture...
Read more >
When I import OBJ, no I get texture error code - SourceForge
So I import an OBJ that has a texture mapped to it and Meshlab always gives me an error (Failure loading textures). I...
Read more >
32 Emissive map ideas | game textures, hand ... - Pinterest
Dec 18, 2018 - Explore ahmed elsisy's board "emissive map" on Pinterest. See more ideas about game textures, hand painted textures, futuristic interior....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found