Material missing on X3D export #69115
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#69115
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux
Graphics card:
Blender Version
Broken:
$ blender --version
Blender 2.80 (sub 75)
build date: 2019-07-29
build time: 17:17:04
build commit date: 2019-07-29
build commit time: 14:47
build hash: f6cb5f54494e
build platform: Linux
build type: Release
...
Short description of error
Material missing on X3D export
Exact steps for others to reproduce the error
When i import
https://wdune.ourproject.org/examples/in.x3d
i get
https://wdune.ourproject.org/examples/out.blend
when i export this to X3D i get
https://wdune.ourproject.org/examples/out.x3d
This file do not have a X3D "Material" node, it is shown full white in a X3D viewer
(freewrl. white_dune or view3dscene).
If you manual add a Material node , it is show in a gray color, similar as it is shown in blender.
Added subscriber: @mufti11
blender/blender#86115 was marked as duplicate of this issue
Added subscriber: @dark999
Can you upload directly here attached files (drag and drop or use cloud icon to upload from OS)? external link will can broke in future, thus this report will be unusable
IMO this is a function request not a bug, Blender 2.79 and 2.80 .x3d export addon not export materials (as designed?), in 2.81 import and export addons i had a error
Uploaded in.x3d
in.x3d
Uploaded blend file
out.blend
Uploaded X3D output
out.x3d
If i directly export the default box to X3D in blnder 2.79, i t gets a Material node.
out2.x3d
Added subscriber: @brutzman
Added subscriber: @lichtwerk
#66534 (X3D export in 2.80 does not save texture) is related
Added subscriber: @kahseng
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
Currently the X3D exporter doesn't handle node based materials at all. Since this ticket has already been marked as a known limitation, I'm setting this ticket to confirmed. Additionally, the H3D Extensions (
EXPORT_SCENE_OT_x3d.use_h3d
) that was apparently used to previously save shaders is broken. The add-on hasn't been properly update for 2.8x and later as it attempts to use functions that are no longer part of thegpu
module.I've tested this with the current master (2.92).
File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\addons\io_scene_x3d_init_.py", line 240, in execute
return export_x3d.save(context, **keywords)
File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\addons\io_scene_x3d\export_x3d.py", line 1605, in save
name_decorations=name_decorations,
File "Z:\01_git\01_contribution\blender-git\build_windows_Full_x64_vc16_Debug\bin\Debug\2.92\scripts\addons\io_scene_x3d\export_x3d.py", line 299, in export
gpu_shader_cache[None] = gpu.export_shader(scene, gpu_shader_dummy_mat)
Added subscriber: @Msk610
I've met this issue recently, how to solve this issue?
logs:
Python: Traceback (most recent call last): File "C:\Users\v\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\web3d_x3d_vrml2_format\__init__.py", line 212, in execute return export_x3d.save(context, **keywords) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\v\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\web3d_x3d_vrml2_format\export_x3d.py", line 1571, in save export(file, File "C:\Users\v\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\web3d_x3d_vrml2_format\export_x3d.py", line 283, in export gpu_shader_cache[None] = gpu.export_shader(scene, gpu_shader_dummy_mat) ^^^^^^^^^^^^^^^^^ AttributeError: module 'gpu' has no attribute 'export_shader'