cesiumlab / cesiumlab/XbsjEarthUI

CustomPrimitive不显示背面

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
documentation question
Dominant language
JavaScript
Stars
734
Forks
193
PR merge metrics
No merged PRs in 30d

Description

为什么CustomPrimitive绘制出来的面只能从正面看,背面就消失了,我用CustomPrimitive绘制一个立体风车,从正面看,有6个面24条线,从背面看,只有24条线没有面,请问一下需要怎么处理才能各个角度都看得到

![image](https://user-images.githubusercontent.com/13550568/71659475-b726e780-2d82-11ea-978e-a886802627dc.png)

![image](https://user-images.githubusercontent.com/13550568/71659486-c017b900-2d82-11ea-96bd-880eaa26ef2a.png)

---

需要设置以下renderState

xxx.renderState = XE.Obj.CustomPrimitive.getRenderState(false, false);

getRenderState的第二个参数,为true时,不显示背面,为false时,双面都显示

![image](https://user-images.githubusercontent.com/13550568/71659450-a4141780-2d82-11ea-8828-980ebe25dd10.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the CustomPrimitive renderState setup and the getRenderState entry point named in the issue. Verify the render-state configuration for the primitive and confirm that the windmill faces remain visible when viewed from both front and back.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.