Commit Graph

72 Commits

Author SHA1 Message Date
Jammyjamjamman
86905dc6f7 G3D B290: remove line generating mesh code
Line was generated for meshes with duplicate verts, to prevent loss
of vertices. But this was a problem because some duplicate verts
need removing. (E.g. some duplicate verts are generated for UV
mapping. These should be removed during import.) This does mean the
g3d script can lose information on import.
2021-04-15 20:23:21 +01:00
Jammyjamjamman
9725336823 G3D B290: Better vert compare
* Use hashset for more efficient vert comparison. (Suggested by Titi.)
* Create line of verts for basis mesh, for rare cases where there's no
mesh frame where all the verts are different.
* Fix bug in animation where all animation frames shifted by 1 (and last
frame was not included in the animation).
2021-04-13 01:33:57 +01:00
Jammyjamjamman
133a1fc8b5 G3D B290 script: fix importing mesh with 0 size first frame
Script use to always use the first frame as the "basis" mesh.
But this caused problems because sometimes the first mesh had a
size 0 i.e. all the verts are the same. This is fixed by adding
a step to search for a frame with the largest number of verts in
different positions. This frame is then used as the basis mesh.
Errors could still happen if the mesh doesn't have any frames
without overlapping verts.
2021-04-12 01:34:02 +01:00
titiger
69b379201c revert "only selectable"
Because the same effect can be done with an object or plane with fully
transparent texture.
2021-04-10 22:43:28 +02:00
titiger
d873d91660 double sided only by our switch 2021-04-06 01:17:11 +02:00
titiger
3fcaa22d10 fixed double-sided switch and only-selectable
doublesided switch in blender 2.9x did not work before, it was always
rendered single sided in MG.
I added a new switch only-selectable which allows to create unvisible
but selectable meshes. This helps with selection of small units which
can now have an unvisible  hand craftet select object around them for
example..
2021-04-05 23:32:17 +02:00
Jammyjamjamman
d890e865dc Meshes now have "double sided" property and fix quad-to-tris bug.
Meshes were missing a "double sided" property. So they importing/
exporting "double sided" meshes failed.
Converting meshes from quads to triangles was failing, when a mesh was
selected, because not all of the vertices were selected in "edit" mode.
Script now selects all verts are selected when switched to edit mode.
2021-04-03 00:35:42 +01:00
Jammyjamjamman
d7847f5f1c G3D B290: more advanced file searching
If g3d has wrong texture filename it will try other texture
extensions.
Default 3d view has been improved.
2020-12-10 00:42:03 +00:00
Jammyjamjamman
85aca2c12e G£D B290 Script: Bugfixes
* All blender views now show texture.
* Alpha channel on tex image linked to material.
* Fixed bug where texture-less models wouldn't export.
2020-12-09 01:00:27 +00:00
James Sherratt
9e621fbb01
Feat/blender 2.90 support (#204)
* Blender 2.90 import mostly working

* g3d b290 script: Finish support for importing g3d

* G3D B290: exporter now works

Blender exporter now working. There's still a lot to fix in the script but the basic setup works.

* G3D B290: script now exports animations
2020-11-25 19:46:37 +00:00
filux
5a6c59f252 added the basic support for macOS to the 'system_report' script 2017-08-27 22:29:16 +02:00
filux
7f55d9fc1d added support for 'percent multiplier' in the techtree docummentation tools 2016-12-08 22:30:44 +01:00
filux
82b263e336 added support for os-release 2016-09-30 21:16:19 +02:00
filux
8873bfd112 improved auto-documentation's script 2016-06-02 21:44:10 +02:00
filux
bcb8d197d3 fixed some typos [ci skip]
https://lintian.debian.org/full/pkg-games-devel@lists.alioth.debian.org.html#megaglest
2016-02-19 21:17:31 +01:00
filux
60f7eb519a removed nasty timestamp from auto-documentation 2016-01-02 10:08:40 +01:00
filux
fcbf254a05 linux's installer based on binary and data files (no parallel configuration anymore) 2015-11-20 20:09:39 +01:00
filux
74cbbba6ba improvements for static build and a bit of cleaning 2015-06-14 19:24:08 +02:00
Tom Reynolds
fecf89f295 Cosmetics
[CI skip]
2015-06-10 12:02:45 +02:00
Tom Reynolds
729c99c5fe Change techtree doc image refs (http -> https)
[skip ci]
2015-05-17 18:08:00 +02:00
Tom Reynolds
f6a00c2be6 New HTML title for techtree docs 2015-05-17 18:02:03 +02:00
filux
b6f305e5ba checked and updated tool, added new useful script 2015-03-20 18:33:47 +01:00
titiger
b3cf4bf1fd meshes can glow 2015-03-18 20:21:59 +01:00
Tom Reynolds
d3d0fbf9bf lossless images compression
keeping file formats, comments + EXIV meta data intact
2015-01-14 23:58:30 +01:00
titiger
6d15d66795 newest blender exporter from Yggdrasil (thanks!!) . Works with blender 2.69 and later and fixes a serious bug with normals and too many exported vertices. 2014-01-17 23:14:40 +01:00
Tom Reynolds
533b1f0bfe Merge branch 'master' of github-tomreyn-megaglest:MegaGlest/megaglest-source 2013-12-26 18:29:35 +01:00
Tom Reynolds
9c51bfc60c introduce shared linux shell code / externalize distribution check 2013-12-26 18:28:21 +01:00
SoftCoder
3bb9da6cdf - removed directsound related references as it has been deprecated since 3.6.0.1
- coverity related fixes
2013-12-25 11:42:00 -08:00
SoftCoder
606aa392c7 - added coverity linux script
- a few updates to fix coverity reported issues
2013-12-17 23:57:45 -08:00
SoftCoder
e3996ceb92 - bugfixes for coverity reported issues
- new bash parameters for build-mg.sh (in prep for coverity automation)
- updated travis build to use new bash param
2013-12-17 17:35:51 -08:00
SoftCoder
f269273f07 - round #2 of coverity bug fixes 2013-12-14 22:37:15 -08:00
filux
00b4d9ab4e resolved conflicts by conversion CRLF to LF 2013-11-28 08:26:39 +01:00
filux
d0836a6573 transfered .tx and tx-cleanup to data, added license/readme, basic configuration 2013-11-28 07:58:09 +01:00
Tom Reynolds
5de5fba834 - New translations
- convert_faction_xml2html: Correct location of default INI file
2013-11-17 00:36:01 +00:00
Mark Vejvoda
9350b16c4a cleanup from cppcheck 1.62 2013-11-14 16:42:22 +00:00
Mark Vejvoda
2c1b181bc7 a bunch more code cleanup from cppcheck 2013-05-26 06:03:32 +00:00
Tom Reynolds
a6e6ab8f53 Use 'nproc' command instead of /proc/cpuinfo (doesn't work on armv5tel) to determine # of cores (lscpu can be another option) 2013-05-15 04:00:36 +00:00
Titus Tscharntke
a7b1f95ee4 g3d exporter sets fully transparent objects to opacity=1 2013-04-10 00:15:53 +00:00
Tom Reynolds
ef58a2285d Changes to olaus' techtree HTML docs script:
* rename mg.ini to megapack.ini
* add Opensuse support (thanks atze)
2013-03-17 18:55:59 +00:00
Tom Reynolds
ea458a7cf1 fix system report utility for linux 2013-02-25 21:20:09 +00:00
Mark Vejvoda
8e97a7598d - update cmake so some game tools respect output folder setting 2013-02-08 18:21:49 +00:00
Tom Reynolds
ef279c0ce1 Update to Linux system report utility 2013-01-15 20:51:28 +00:00
Tom Reynolds
3b99aa6a4e Mark all scripts as exectuable 2013-01-02 15:57:17 +00:00
Mark Vejvoda
b30909f90b - attempt to cleanup for debian compliance (proper copyright, etc) 2012-10-30 06:48:12 +00:00
Titus Tscharntke
1072223b48 Now a working version for of the g3d importer/exporter for blender 2.63! ( Includes "non-selectable"-feature too now ) 2012-09-01 19:25:08 +00:00
Tom Reynolds
fb2f643131 Make Linux system_report tool spell out the OS architecture 2012-07-19 11:08:29 +00:00
Tom Reynolds
07c6fb2720 nerd work 2012-07-17 20:32:27 +00:00
Titus Tscharntke
734e744727 new blender exporter from GAE for blender 2.63 and later 2012-07-16 21:43:35 +00:00
Tom Reynolds
de0362e8d8 Linux support utility renamed and improved 2012-07-15 17:21:38 +00:00
Tom Reynolds
7974788b13 re-add now missing sysinfo.sh 2012-06-16 22:22:21 +00:00