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

visualisation: No trees or skies under Win 10 #84

Closed
copterspace opened this issue Nov 10, 2018 · 5 comments · Fixed by #131
Closed

visualisation: No trees or skies under Win 10 #84

copterspace opened this issue Nov 10, 2018 · 5 comments · Fixed by #131

Comments

@copterspace
Copy link

copterspace commented Nov 10, 2018

Hello, dear friends.
I run jmavsim on Windows 10 Cygwin toolchain, according to this instruction:
http://dev.px4.io/en/setup/dev_env_windows_cygwin.html
It runs OK (takeoff, hold, land, QGS connect, etc), but visualisation window shows only drone and ground - no trees, skies, other evironment - only black background instead:
2018-11-10_12-44-39

When ran on Ubuntu before - I never had such an issue.
Can you please suggest me how to make visualisation work correctly under Windows 10?
It would be better to see at least constant blue sky, instead of black one.

@hamishwillee
Copy link

@MaEtUgR I see same thing.

@MaEtUgR MaEtUgR added this to Reported in PX4 Windows Cygwin Toolchain via automation Nov 13, 2018
@MaEtUgR
Copy link
Member

MaEtUgR commented Nov 13, 2018

Confirmed
@copterspace Thanks for the report! I honestly also have that but only on part of the computers I'm using. The problem seems to be in the java graphics library that jMAVsim uses.

History
In PX4/PX4-Autopilot#8194 a higher resolution background was introduced and that seems to break some memory threshold of the java graphics library for certain graphics drivers. It already happened inside VMWare also for Ubuntu and we have a fix with the specific VMWare driver here: #63

At home on my GTX 1080 the bakcground shows normal for some reason... but I added it to the Cygwin todo list 👍

@MaEtUgR MaEtUgR moved this from Reported to Reproducable / Todo in PX4 Windows Cygwin Toolchain Nov 13, 2018
@obbe79
Copy link

obbe79 commented Mar 7, 2020

Same problem here. After installing the Cygwin toolchain I get the black sky on Win10. On a different PC with Win7 I see JMAVSim correctly

@obbe79
Copy link

obbe79 commented Mar 9, 2020

Same problem here. After installing the Cygwin toolchain I get the black sky on Win10. On a different PC with Win7 I see JMAVSim correctly

To temporarily solve the problem I changed line 276 in Visualizer3D.java to:

tex = loadTexture(TEX_DIR + SKY_TEXTURE_LOW_RES);

to force the low res texture in any case.

@copterspace
Copy link
Author

Yes, SKY_TEXTURE_LOW_RES helped, now looks quite good:
изображение

I think, it is possible to use SKY_TEXTURE_LOW_RES on all platforms. Or detect Win10 in Java somehow?...

copterspace added a commit to copterspace/jMAVSim that referenced this issue Oct 8, 2021
PX4 Windows Cygwin Toolchain automation moved this from Reproducable / Todo to Done Oct 18, 2021
bkueng pushed a commit that referenced this issue Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants