-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Globe Materials not compatible with enableLighting = false #6042
Comments
Thanks @YousefED! I thought we fixed this before we merged in globe materials, but we must have missed something. @lilleyse @jasonbeverage I marked this as 'next release'. If we have time, we should try to address this for 1.41 |
I plan on tackling this along with #6039 |
@pjcozzi correct. I'm not using globe materials directly, but experimenting with code based on it to generate snow ⛄️ 😎 |
That looks great! We have a pretty nice "splatting" layer in osgEarth
that we could probably port to Cesium using globe materials. Basically
you feed in a land use raster to the GPU and figure out what texture to
repeat based on the land use code (grass, rock, same, etc), the normal and
elevation.
Here's a screenshot of what it looks like in osgEarth
https://pbs.twimg.com/media/B1SsPThIIAAjIdD.jpg
…On Wed, Dec 20, 2017, 4:58 AM Yousef ***@***.***> wrote:
@pjcozzi <https://github.com/pjcozzi> correct.
I'm not using globe materials directly, but experimenting with code based
on it to generate snow :):
[image: image]
<https://user-images.githubusercontent.com/368857/34201400-a4f9c2f6-e574-11e7-88d8-30526ac1e434.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6042 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAT74jx1eDjWJXeBF6kNFGInZfACMqJkks5tCNpGgaJpZM4Q8bwb>
.
|
@YousefED very nice!!! Also, check out some Cesium snow work my students did this past semester: https://github.com/HuYuxin/CIS565FinalProjectCesiumSnow/blob/master/CIS565FinalProjectREADME.md @jasonbeverage contributions welcome, as always! 😄 |
@pjcozzi awesome!! Are there more projects online? I missed the livestream (time difference)! |
Yes, they are all here: https://cis565-fall-2017.github.io/studentwork.html |
are there any code samples out there to do this kind of snowy rocky texture? That screenshot of @YousefED looks amazing! |
Closely related to #6039, but use-case is different nevertheless so decided to open a separate issue (cc @lilleyse as he might be working on this already).
Steps to reproduce:
viewer.scene.globe.enableLighting = true;
on line 7Result: shader compilation fails
Desired result: not have any time-of-day lighting effects, but still be able to use a globe material for slopes / heights.
The text was updated successfully, but these errors were encountered: