Freeciv-Web WebGL/Three.js prototype

Web version of freeciv. Please mention the site you're using, if speaking things other than general freeciv-web codebase.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

I'm glad that you managed to get Freeciv-web running on Arch Linux, Louis. I'll take a look at your changes.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

A new version of Freeciv-web, with several updates to the WebGL version has been pushed to the production server now.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

Louis, I think you need to run build.sh. It creates the models.zip file. (I can see your JavaScript errors in the Three.js logs).
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Freeciv-Web WebGL/Three.js prototype

Post by louis94 »

AndreasR wrote:Louis, I think you need to run build.sh. It creates the models.zip file. (I can see your JavaScript errors in the Three.js logs).
How can you see my errors in your logs ?

I'm trying to get the network back up to install zip… it's not part of the "base" group…

Thanks :)
Louis
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

Freeciv-web uses trackjs.com to report JavaScript errors. This is so that I can easily fix the most important JavaScript errors, and I think that this is a very valuable tool for monitoring JavaScript errors. It has greatly improved the quality of the JavaScript code. I can give you access, if you want.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

I have committed initial support for rendering unkown terrain (black tiles) in Freeciv-web WebGL mode.
Image

This is not a perfect solution, but since unkown terrain and exploration of the map is such a central part of the game, I think it's best to start somewhere and improve it later.

The new version has been pushed to the production server also.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

Here's a short status update on the progress of making the WebGL version of Freeciv-web:
Image

- I have implemented smoother tile edges and smooter edges towards the beaches.
- A line is rendered for the current goto path. There is a bug in OpenGL on Windows which prevents lines from having more than 1 pixel width. I'll have to fix that.
- There is also a Google Cardboard version in the works.
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

I have released an update to the live server now. Louis, what do you think are the most important things to improve in the 3D WebGL version now?
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Freeciv-Web WebGL/Three.js prototype

Post by louis94 »

AndreasR wrote:I have released an update to the live server now.
I see you added tile blending :) Normal maps would make terrain more realistic.
AndreasR wrote:Louis, what do you think are the most important things to improve in the 3D WebGL version now?
Memory usage on Firefox. Really. The WebGL renderer uses 1GB on its own here (too much for my tablet). After that, we can think about making it as user-friendly as the 2D version… though improving the graphics is more fun.

I'll keep looking at the development and try to write some code, but my exam session is coming and I must write my master thesis… Expect bursts of activity on my side, maybe a few days long, one week at most.

Louis
AndreasR
Elite
Posts: 755
Joined: Thu May 02, 2013 10:26 pm

Re: Freeciv-Web WebGL/Three.js prototype

Post by AndreasR »

louis94 wrote: Memory usage on Firefox. Really. The WebGL renderer uses 1GB on its own here (too much for my tablet).
I have tried to reduce memory usage to about 800MB on desktops and about 700MB on mobile devices.
Could you please try to test if the game works on your tablet now?

I have released an update to the server, which renders trees using the Three.js particle system,
and with updated city names and some special tiles.
Image
Post Reply