building: fix field office & cog building signs
This commit is contained in:
parent
7e777ca776
commit
d14f6303c0
|
|
@ -458,10 +458,10 @@ class DistributedBuilding(DistributedObject.DistributedObject):
|
||||||
backgroundNP = loader.loadModel('phase_5/models/modules/suit_sign')
|
backgroundNP = loader.loadModel('phase_5/models/modules/suit_sign')
|
||||||
backgroundNP.reparentTo(signOrigin)
|
backgroundNP.reparentTo(signOrigin)
|
||||||
backgroundNP.setPosHprScale(0.0, 0.0, textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 8.0, 8.0, 8.0 * zScale)
|
backgroundNP.setPosHprScale(0.0, 0.0, textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 8.0, 8.0, 8.0 * zScale)
|
||||||
backgroundNP.node().setEffect(DecalEffect.make())
|
|
||||||
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
||||||
signTextNodePath.setPosHprScale(0.0, 0.0, -0.21 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1 / zScale)
|
signTextNodePath.setPosHprScale(0.0, 0.0, -0.21 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1 / zScale)
|
||||||
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
||||||
|
signTextNodePath.setAttrib(DepthOffsetAttrib.make(1))
|
||||||
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
||||||
backgroundNP.wrtReparentTo(frontNP)
|
backgroundNP.wrtReparentTo(frontNP)
|
||||||
frontNP.node().setEffect(DecalEffect.make())
|
frontNP.node().setEffect(DecalEffect.make())
|
||||||
|
|
@ -558,10 +558,10 @@ class DistributedBuilding(DistributedObject.DistributedObject):
|
||||||
backgroundNP = loader.loadModel('phase_5/models/cogdominium/field_office_sign')
|
backgroundNP = loader.loadModel('phase_5/models/cogdominium/field_office_sign')
|
||||||
backgroundNP.reparentTo(signOrigin)
|
backgroundNP.reparentTo(signOrigin)
|
||||||
backgroundNP.setPosHprScale(0.0, 0.0, -1.2 + textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 20.0, 8.0, 8.0 * zScale)
|
backgroundNP.setPosHprScale(0.0, 0.0, -1.2 + textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 20.0, 8.0, 8.0 * zScale)
|
||||||
backgroundNP.node().setEffect(DecalEffect.make())
|
|
||||||
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
||||||
signTextNodePath.setPosHprScale(0.0, 0.0, -0.13 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1 * 8.0 / 20.0, 0.1, 0.1 / zScale)
|
signTextNodePath.setPosHprScale(0.0, 0.0, -0.13 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1 * 8.0 / 20.0, 0.1, 0.1 / zScale)
|
||||||
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
||||||
|
signTextNodePath.setAttrib(DepthOffsetAttrib.make(1))
|
||||||
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
||||||
backgroundNP.wrtReparentTo(frontNP)
|
backgroundNP.wrtReparentTo(frontNP)
|
||||||
frontNP.node().setEffect(DecalEffect.make())
|
frontNP.node().setEffect(DecalEffect.make())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue