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

Unlink character.png from b3d export #917

Closed
wants to merge 1 commit into from

Conversation

stujones11
Copy link

Fixes Irrlicht: Could not open file of texture: character.png warning

Fixes Irrlicht: Could not open file of texture: character.png warning
@sofar
Copy link
Contributor

sofar commented Mar 14, 2016

Can you explain to me how you did this? I've attempted to do this in blender but have come up empty handed every time.

@stujones11
Copy link
Author

Select the entire mesh in edit mode then remove the texture reference from the UV layout editor by clicking the 'X' next to the image combo. Next you need to remove the texture from the material, however, I have often found it necessary to delete the material altogether then add a new one otherwise the model will load transparent. I have no idea why that is...

@stujones11
Copy link
Author

Note: I would have done this some time ago but thought that some might complain that the model is more difficult to edit without the image. Since the image has now been removed from the models directory the model was linked to a non-existent file anyway.

@sofar
Copy link
Contributor

sofar commented Mar 15, 2016

Can we modify the b3d export script to omit the texture? That would solve the problem, right?

@paramat paramat added this to the 0.4.14 milestone Mar 15, 2016
@stujones11
Copy link
Author

Can we modify the b3d export script to omit the texture?

We do not supply the export script, do we? Even if we did that is not a proper solution IMO. If people need the texture it is easily added back by re-selecting it in the UV image combo. The texture associated with the material is only required for renders.

Like I said, since the texture has been removed from the directory the model is linked to a non-existent file, so technically a bug.

@sofar
Copy link
Contributor

sofar commented Mar 15, 2016

I've been strongly contemplating that we should package the b3d export script as there have been upstream changes to it that have broken it. It would be really helpful for folks if they knew where the right version would be. Then, if we are distributing it, we can modify it to not include the exported texture (or make that an option that is disabled by default).

@stujones11
Copy link
Author

I do not think that it is our responsibility but if the exporter were to be included we should definitely not break it to accommodate some obscure use case.

@sofar
Copy link
Contributor

sofar commented Mar 15, 2016

I'm not proposing to break it, just (1) distribute a version that isn't broken by upstream and (2) has options to make exporting for minetest easier.

@stujones11
Copy link
Author

There is only one b3d model in the game (afaik) which very rarely changes so this is totally unnecessary. Also, where does it end, what about DirectX or other supported formats.

If you want to include custom exporters with minetest then I think that should be a separate issue.

@sofar
Copy link
Contributor

sofar commented Mar 15, 2016

I don't understand your resistance. You've exposed a problem for anyone making minetest models with animations, and instead provide only a short term solution that will get broken once the next person re-exports the model. I'm not saying that it shouldn't be done, but the resistance to a long-term solution is weird. At least provide a documentation patch or a wiki link with the steps you took so it can be reproduced?

@stujones11
Copy link
Author

It is not a problem for me and I would hardly class myself as an expert. A note in the wiki sounds like a reasonable solution. What I do not understand is why such a trivial fix ends up becoming such a big deal.

This is not a short-term solution, the error will only come back if someone re-adds the (non-existent) texture. That would be wrong and consequently up to the game maintainers to reject such a change.

@sofar
Copy link
Contributor

sofar commented Mar 16, 2016

Replaced by #931
Additionally, see minetest/minetest#3865 (stash a copy of b3dexport.py that does this properly)

@sofar
Copy link
Contributor

sofar commented Mar 16, 2016

We now have: https://github.com/minetest/B3Dexport

@paramat
Copy link
Contributor

paramat commented Mar 18, 2016

931 merged.

@paramat paramat closed this Mar 18, 2016
asl97 added a commit to asl97/pixture that referenced this pull request Nov 14, 2016
Fix "Irrlicht: Could not open file of texture: character.png" messages
See minetest/minetest_game#917
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants