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

[Question] saving ground hills geometry #32

Open
arpu opened this issue Dec 23, 2017 · 7 comments
Open

[Question] saving ground hills geometry #32

arpu opened this issue Dec 23, 2017 · 7 comments

Comments

@arpu
Copy link

arpu commented Dec 23, 2017

for network aframe i need to save the ground hill geometry
so every user get the same ground
is this possible?

@feiss
Copy link
Contributor

feiss commented Dec 23, 2017 via email

@arpu
Copy link
Author

arpu commented Dec 23, 2017

perfect! i will test this asap

@arpu arpu closed this as completed Dec 23, 2017
@arpu
Copy link
Author

arpu commented Dec 26, 2017

screenshot-socialvr app-1514317084473
testing with
<a-entity environment="shadow: true; flatShading: true;ground: hills; groundYScale: 25; seed: 17; skyType: none; skyColor: #14645f; horizonColor: #a3dab8; lighting: none; lightPosition: [object Object]; fog: 0.73; groundTexture: none; groundColor: #ae3241; groundColor2: #db4453; dressing: none; dressingAmount: 150; dressingColor: #a9313d; dressingVariance: [object Object]; gridColor: #239893; grid: none;"></a-entity>

on all clients but i get different results ( different hill height and position)

@arpu arpu reopened this Dec 26, 2017
@arpu
Copy link
Author

arpu commented Jan 1, 2018

i think i need to save h in an array?
https://github.com/feiss/aframe-environment-component/blob/master/index.js#L484

looks like the different come from this noise

@arpu
Copy link
Author

arpu commented Jan 1, 2018

yeahh this works for me! i overwrite the the verts[i].z with a saved heightmap

@arpu arpu closed this as completed Jan 1, 2018
@jamesdeantv
Copy link

Hi @arpu can you provide your code changes that show networked entities sharing the same environment? @feiss is this possible without generating a heightmap? Can you provide a bit more insight to the discussion? In the end, I would like to be able to load randomly networked terrains with the option to sideload custom heightmap also. Thanks

@feiss
Copy link
Contributor

feiss commented Oct 4, 2018

there must be a bug in the generator, two terrains with the same seed should look the same. I will look at it

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

3 participants