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

SkyBoxes are not being exported #203

Open
sercero opened this issue Mar 3, 2024 · 1 comment
Open

SkyBoxes are not being exported #203

sercero opened this issue Mar 3, 2024 · 1 comment

Comments

@sercero
Copy link
Collaborator

sercero commented Mar 3, 2024

It seems that we are not exporting environments, despite the DotScene DTD supporting it:
https://github.com/OGRECave/ogre/blob/master/PlugIns/DotScene/misc/dotscene.dtd#L96

The issue came to my attention here:
https://forums.ogre3d.org/viewtopic.php?t=97214

I created this issue mostly to investigate and see how it could be implemented.

There might be other properties that could be exported as well.

@paroj
Copy link
Member

paroj commented Mar 3, 2024

yeah, we are currently only exporting this:

# Environ settings
world = bpy.context.scene.world
if world: # multiple scenes - other scenes may not have a world
_c = [ ('colourBackground', world.color)]
for ctag, color in _c:
a = doc.createElement(ctag); environ.appendChild( a )
a.setAttribute('r', '%3f' % color.r)
a.setAttribute('g', '%3f' % color.g)
a.setAttribute('b', '%3f' % color.b)
if world and world.mist_settings.use_mist:
a = doc.createElement('fog'); environ.appendChild( a )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants