TheDuckCow / godot-road-generator

A godot plugin for creating 3D highways and streets.
MIT License
313 stars 16 forks source link

Not working on (web) export in Godot 3.5.1 #111

Closed Oahid243 closed 11 months ago

Oahid243 commented 1 year ago

The generated road works fine on pc with GLES2 but when exported for web the road is gone. Is there any fix?

TheDuckCow commented 1 year ago

Thanks for flagging the issue, we haven't tried in a web export at this moment. Are there any logs you can share output to the web console? You can also try explicitly forcing a rebuild of the roads using the roadnetwork object:

var network = $RoadNetwork # node in scene
network.rebuild_segments(true) # true is for the "clear_existing" arg.

if this doesn't work for you, our team can look a bit further into it in a simple web export ourselves.

TheDuckCow commented 1 year ago

Hey @Oahid243 I did some further checking, and it may have been an issue with releases in general. Can you verify if the code currently on main works now? (noting this commit that I pushed, which makes roads appear in exports again for me now)

TheDuckCow commented 11 months ago

Confirmed that this issue has been fixed in the main and dev branch, will be pushing a new release later this week (but you could already use these branches).

Simple example having exported via web here:

Screen Shot 2023-07-17 at 10 27 33 PM

Closing given it will be part of this release.