Collada import does not read emission #63478

Open
opened 2019-04-11 03:17:48 +02:00 by Carlo Wood · 6 comments

System Information
Operating system: linux
Graphics card:

Blender Version
Broken: 2.79b (probably all (later) versions).

Short description of error

When a material has Shader -> Emit set to a non-zero value, a collada export
reflects this in the phong section as

          <emission>
            <color sid="emission">0.33 0.33 0.33 1</color>
          </emission>

but importing that (or any other) .dae the Emit value always ends up having value 0.

                                                                                                                                                             
**System Information** Operating system: linux Graphics card: **Blender Version** Broken: 2.79b (probably all (later) versions). **Short description of error** When a material has Shader -> Emit set to a non-zero value, a collada export reflects this in the phong section as ``` <emission> <color sid="emission">0.33 0.33 0.33 1</color> </emission> ``` but importing that (or any other) .dae the Emit value always ends up having value 0. ```
Author

Added subscriber: @Aleric

Added subscriber: @Aleric
Author

Just tested 2.8 - that's three steps backwards. That version doesn't even export anything regarding materials (like alpha masking, colors, emission, etc).

Just tested 2.8 - that's three steps backwards. That version doesn't even export anything regarding materials (like alpha masking, colors, emission, etc).
Gaia Clary was assigned by Bastien Montagne 2019-04-11 07:53:04 +02:00
Member

last time i was looking into this the material system was not yet fully completed. Because of this the material support is not yet fully finished. It is on the todo list for 2.80. Maybe better look at this as "not yet there" instead of "three steps backwards" :)

regarding missing colors... actually the basic features should be available (diffuse color has been implemented for sure)

last time i was looking into this the material system was not yet fully completed. Because of this the material support is not yet fully finished. It is on the todo list for 2.80. Maybe better look at this as "not yet there" instead of "three steps backwards" :) regarding missing colors... actually the basic features should be available (diffuse color has been implemented for sure)
Author

Hi Gaia. I'm not even sure if collada supports having a diffuse color and a diffuse texture at the same time? At least, I couldn't find it. Other formats do.
At any rate, I'm only testing with textures; this is for Second Life, and SL almost always has a texture on any surface, but also allows a color at the same time.

Not just that, but SL has three 'alpha modes' 'None', 'Blending' and 'Masking' - the latter has an Alpha Masking cutoff value associated with it that I can't
find in blender (let alone that blender exports that to .dae). The ideal case would be where I can implement an export file from the SL viewer that when
read into blender shows more or less the same thing, but specifically, when exported from blender to the same format still contains the exact same data
that the viewer will need to import an object to the same state.

Hi Gaia. I'm not even sure if collada supports having a diffuse color and a diffuse texture at the same time? At least, I couldn't find it. Other formats do. At any rate, I'm only testing with textures; this is for Second Life, and SL almost always has a texture on any surface, but also allows a color at the same time. Not just that, but SL has three 'alpha modes' 'None', 'Blending' and 'Masking' - the latter has an Alpha Masking cutoff value associated with it that I can't find in blender (let alone that blender exports that to .dae). The ideal case would be where I can implement an export file from the SL viewer that when read into blender shows more or less the same thing, but specifically, when exported from blender to the same format still contains the exact same data that the viewer will need to import an object to the same state.
Author

I'm currently using the element of collada, inside a <profile_COMMON>. It would be cool if you could add to 2.80 that it just reads that and remembers it (even though blender can't use it) when you import something from collada - so it can export it again for the profile_COMMON in an with the same id?

For example, currently I'm doing:

	<effect id="Material6-fx">
		<profile_COMMON>
			<newparam sid="7b8015d9-d505-e74e-ce1f-42f657031f73_png-surface">
				<surface type="2D">
					<init_from>7b8015d9-d505-e74e-ce1f-42f657031f73_png</init_from>
				</surface>
			</newparam>
			<newparam sid="7b8015d9-d505-e74e-ce1f-42f657031f73_png-sampler">
				<sampler2D>
					<source>7b8015d9-d505-e74e-ce1f-42f657031f73_png-surface</source>
				</sampler2D>
			</newparam>
			<technique sid="common">
				<phong>
					<diffuse>
						<texture texture="7b8015d9-d505-e74e-ce1f-42f657031f73_png-sampler" texcoord="7b8015d9-d505-e74e-ce1f-42f657031f73_png"/>
					</diffuse>
					<specular>
						<color sid="specular">0 0 0 0</color>
					</specular>
				</phong>
			</technique>
			<extra>
				<technique profile="Aleric">
					<diffuse_alpha_mode>2</diffuse_alpha_mode>
					<alpha_cutoff>13</alpha_cutoff>
                                              <diffuse_color>0.639216 0.639216 0.639216 1</diffuse_color>
					<bump_shiny_fullbright>3</bump_shiny_fullbright>
				</technique>
			</extra>
		</profile_COMMON>
	</effect>
I'm currently using the <extra> element of collada, inside a <profile_COMMON>. It would be cool if you could add to 2.80 that it just reads that and remembers it (even though blender can't use it) when you import something from collada - so it can export it again for the profile_COMMON in an <effect> with the same id? For example, currently I'm doing: <effect id="Material6-fx"> <profile_COMMON> <newparam sid="7b8015d9-d505-e74e-ce1f-42f657031f73_png-surface"> <surface type="2D"> <init_from>7b8015d9-d505-e74e-ce1f-42f657031f73_png</init_from> </surface> </newparam> <newparam sid="7b8015d9-d505-e74e-ce1f-42f657031f73_png-sampler"> <sampler2D> <source>7b8015d9-d505-e74e-ce1f-42f657031f73_png-surface</source> </sampler2D> </newparam> <technique sid="common"> <phong> <diffuse> <texture texture="7b8015d9-d505-e74e-ce1f-42f657031f73_png-sampler" texcoord="7b8015d9-d505-e74e-ce1f-42f657031f73_png"/> </diffuse> <specular> <color sid="specular">0 0 0 0</color> </specular> </phong> </technique> <extra> <technique profile="Aleric"> <diffuse_alpha_mode>2</diffuse_alpha_mode> <alpha_cutoff>13</alpha_cutoff> ``` <diffuse_color>0.639216 0.639216 0.639216 1</diffuse_color> ``` <bump_shiny_fullbright>3</bump_shiny_fullbright> </technique> </extra> </profile_COMMON> </effect>
Gaia Clary was unassigned by Dalai Felinto 2019-12-23 16:34:39 +01:00

Added subscriber: @GaiaClary

Added subscriber: @GaiaClary
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:22 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#63478
No description provided.