Orbiter-Forum  

Go Back   Orbiter-Forum > Projects > ORBITER: 2010-P1 and newer > Bug
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Shadows on hidden mesh groups Issue Tools
issueid=1377 09-05-2018 09:59 PM
GLS GLS is online now
Addon Developer
Shadows on hidden mesh groups

Hidden mesh groups cast shadows on planetary surfaces.
Using Orbiter BETA r84.
Issue Details
Project ORBITER: 2010-P1 and newer
Status Not a Bug
Priority 7
Affected Version Revision denoted in description
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

09-06-2018 11:09 PM
Orbiter Founder
 
Did you use UsrFlag=2 or UsrFlag=3 to hide the mesh groups? Note that bit 0 of the flag toggles the shadow, while bit 1 toggles the mesh visibility. So to hide mesh and shadow you would need to use UsrFlag=3.

I guess it could be argued that a hidden mesh group should never cast a shadow, so UsrFlag=2 should always be interpreted as UsrFlag=3, but I wanted to keep the option open for casing a shadow without a mesh. For example, a complex vessel might, for performance reasons, define a simple hidden group for casting the vessel shadow, while its visible mesh groups are defined without a shadow.
Reply
09-07-2018 08:07 AM
GLS GLS is online now
Addon Developer
 
Quote:
Originally Posted by martins
 Did you use UsrFlag=2 or UsrFlag=3 to hide the mesh groups? Note that bit 0 of the flag toggles the shadow, while bit 1 toggles the mesh visibility. So to hide mesh and shadow you would need to use UsrFlag=3.
That's probably it then, as I'm setting flag 2 only (via code).
When I get home I'll check how things look with flag 3.

Quote:
Originally Posted by martins
 I guess it could be argued that a hidden mesh group should never cast a shadow, so UsrFlag=2 should always be interpreted as UsrFlag=3, but I wanted to keep the option open for casing a shadow without a mesh. For example, a complex vessel might, for performance reasons, define a simple hidden group for casting the vessel shadow, while its visible mesh groups are defined without a shadow.
Makes total sense.
Reply
This petition for a change to Not a Bug was accepted
09-07-2018 06:05 PM
GLS GLS is online now
Addon Developer
 
Flag 3 indeed disables the shadows, so actually there is no bug... sorry for wasting you time.
09-07-2018 08:24 PM
Orbiter Founder
 
No problem - these are my favourite bugs
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 03:26 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.