nemyax on 1/9/2020 at 19:35
Quote Posted by R Soul
The one you found doesn't support objects with vhots.
What do you mean?
R Soul on 1/9/2020 at 22:13
Objects with vhots get combined into a single mesh before export. The same may happen with axles and subobjects but I haven't verified that.
This thread demonstrates the vhot problem:
(
https://www.ttlg.com/forums/showthread.php?t=149636)
You clearly know a lot more about the .bin file format than I do, so I'm sure you can experiment with a simple object with a vhot and compare the bin file generated with your plugin with a bin file generated the old way, or with a different plugin (Dark Exporter works up to Blender 2.79, the modified Blender Toolkit works from 2.8 onwards).
nemyax on 2/9/2020 at 07:08
Quote:
Models can have attachment points (hotspots) for external objects. To define a hotspot for an object, create an empty and make it a child of the object. During export, empties are sorted by name per parent object. Keep this in mind when you give them names, so that you get the correct hotspot order in DromEd.
Vhots are generated from Blender empties not from Blender meshes. Don't model small cubes. Just sprinkle a few empties and put numbers on them.
R Soul on 3/9/2020 at 17:42
Right, that's nice to know. :thumb:
Since your plugin create the bin files directly, is it able to get around the object poly limit? Or is it a limitation of the file format rather than BSP?
nemyax on 3/9/2020 at 18:06
R Soul
It's a file format limitation. The definition of the last polygon has to begin no further than byte 65535 of the polygon chunk. Whatever starts beyond that is invisible to the engine.
You can't cram in more polygons, but you can control their drawing order with named vertex groups and avoid BSP subdivision, which can blow up the polycount unpredictably.
PinkDot on 3/9/2020 at 20:17
Quote:
The definition of the last polygon has to begin no further than byte 65535 of the polygon chunk.
So, if I understand it correctly - you can have up to 2114 polygons, as each polygon struct is 31 bytes. 2114 * 31 = 65534. Is that correct?
nemyax on 3/9/2020 at 21:06
Quote Posted by PinkDot
each polygon struct is 31 bytes
That's true for triangles. Generally, the size of a polygon is variable and depends on the number of verts.
R Soul on 8/6/2021 at 22:26
Derspegn: No, this is for 2.8x onwards.
Everyone else, including Derspegn if you want:
Bump!A couple of updates
Blender 2.93 was released a few days ago. On the Discord channel, Dodylicious mentioned a few bugs which I've now fixed:
Download here for Blender 2.93:
(
https://github.com/RSoul82/Blender-NewDark-Toolkit)
Installation instructions towards the end of the readme
One of the bugs was also present in 2.92, so I've fixed that, but generally that version of the addon has now stopped.
To get the previous version, use the link above. The button on the left saying 'master' should be changed to 'RSoul82-blender2.82-archive'
R Soul on 17/12/2022 at 20:18
Bump!
I noticed a transparency bug because I didn't realise that bin/e files use 0 and 100 as expected for 'transparency' but values of 1 to 99 are inverted (i.e they refer to opacity) :tsktsk:
I've also made use of a feature on github which should make it a little easier manage the files.
Get the zip file at the top of this page:
(
https://github.com/RSoul82/Blender-NewDark-Toolkit/releases)
Installation is done via Blender, so just save the above your standard 'downloads' location.
In Blender go to Edit > Preferences > Addons section...
[INDENT]If you have the previous version, it will first need removing as the folder name has changed for the new version:
Search for/select Blender NewDark Tookit and remove it (via the button underneath the version number). This will tidy things up (the config file will remain in place as that's stored in a different folder).[/INDENT]
To install the new version:
Click the Install button at the top of the Addons window.
Select the zip file and Blender will put the files in the right place.
The config file can be edited to set default values:
"%AppData%\Blender Foundation\Blender\[version number, currently 3.4 is the latest]\config\scripts\Bin_Export.cfg"
Hit Deity on 17/12/2022 at 22:58
I should probably check it out. Never got very far into making custom objects.
Is there a Blender tutorial here on ttlg, or is there one you recommend?