KatsBits Community

Game Editing => 3D Modeling & Content Creation => Topic started by: Polda18 on June 19, 2016, 09:30:29 AM

Title: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 19, 2016, 09:30:29 AM
Hello everyone. I downloaded Export addon script for exporting to ASE (Ascii Scene Export), that is labeled to be for Blender version 2.56 - it is the last version available here. I have Blender v2.73a (it's not the newest, but was at the time when downloaded and installed). I was successful to install MD3 Export and activate it (though it's not working much correctly; it's a version 2.63a), but I can't the hell activate the ASE Export as it's not even listed in the Import-Export list and even it's not available in Disabled nor already Enabled. I just installed the script both by extracting manually to the addons folder in %APPDATA% and both by installing the ZIP file by Blender GUI, but nothing helped :(

Is it some kind of script not supported anymore? I need to export to ASE to make the model be moveable throughout the directories inside PK3 file and to make it easily configurable for the new location (I mean edit the model's textures names to reflect new location). For my personal usage I can use MD3 Export as I make it in fixed location 8)

[EDIT] moved and renamed topic. kat
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 19, 2016, 11:02:11 AM
This is the latest working version for newer versions of Blender (http://www.katsbits.com/smforum/index.php?topic=257.0). It's best to install scripts from the User Preferences now as Blender's internal behaviour has changed a little bit from the days of dropping files directly into the Scripts folder.
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 19, 2016, 12:25:00 PM
Thank you, it finally added the Export function to the list :)
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 19, 2016, 01:48:31 PM
The exported ASE model crashed my GtkRadiant :( I am mapping for Quake III Arena. I attached the ASE file (due to ASE extension not allowed I had to enclose it to ZIP file). I also attached the Blender file to compare...

Why it causes crash? :(
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 19, 2016, 02:07:38 PM
Will take a look...
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 19, 2016, 02:43:43 PM
Looks like the problems are being caused by duplicate and inverted surfaces, they'll need to be removed. In View Properties ("N") enable "Normals" so you can see which way the errant faces point, inspecting the mesh from inside some of the normal will point inwards; those need to be flipped ("Mesh » Normals » Flip Normals") and/or removed. You'll also want to select everything and "Remove Doubles", establish Smoothing (Smooth Groups) using "Sharp" rather than splitting surfaces or creating extra edges (http://www.katsbits.com/tutorials/blender/sword-mesh-smoothing.php) - make sure to use the correct export options though, one works for idtech, the other doesn't.

(https://www.katsbits.com/images/misc/camero.jpg)
Title: Re: ASE Import/Export for Blender v2.73a?
Post by: Polda18 on June 19, 2016, 06:36:00 PM
Thank you. I already checked and removed doubles, made sure normals are pointing outwards, made smoothing groups using Edge Sharp and Edge Split modifier. Nothing helped, though :( Model still keeps crashing Radiant :(

This is the settting I used. Grid was set to scale 8 and division 32, model was already enlarged 8-times, so I kept the export scale settings at 1.00...
(https://dl.dropboxusercontent.com/u/76484093/ASEEXP.JPG)
I did not use the Triangulate function as the model is already triangulated. Modifier was set, but not applied. I think ASE Export will do it for me... I did not remove the Edge Seams as they are used for UV map coordinations and I do not know what it would do to the UV coordinates if the Edge Seams will be removed. I wanna keep the coordinates as they have been.

This is the tutorial I have been following while creating the model:
http://cgi.tutsplus.com/tutorials/create-a-low-poly-camaro-in-blender-part-1--cms-21730
http://cgi.tutsplus.com/tutorials/create-a-low-poly-camaro-in-blender-part-2--cms-21749

I modified the model to make it more realistic. Original author Karan Shah ommited the back-front mirrors and the wheel chambers are made into tunnel, which is wrong. It's a detail, but when it comes to actually looking at the wheels, it would be easy enough to see at the other side of the car. When you actually look at the wheel chamber, you see only black space and some pistons and springs behind the wheel, not the world behind the other side of the vehicle... So I just made that mistake disappear. The model looks great in Blender, but it's a mess when exported and Radiant doesn't like it :(

How to actually make it loadable in Quake 3 map editor GtkRadiant?
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 19, 2016, 07:33:28 PM
I'll need to take a proper look at this but won't be able to until tomorrow now. Hold tight...

[EDIT]pfftt had a quick look anyway. It's preferable to prep models manually that way you can spot problems before exporting. So triangulate ("Ctrl+T") and set the objects transform properties ("Ctrl+A") prior to export. When using the ASE251 script, for idtech, uncheck *all* the export settings, "Smoothing Groups" in particular. That should work.

Incidentally, you normally want "Tex" to be the top slot in Texture Properties, Blender reads the slots from the top down (iirc) so placing it at the bottom of the list might (don't quote me on that though) be a contributing issue - use the arrows to the right of the Texture list aperture to move up to the top of the list.

(https://www.katsbits.com/images/misc/camero_settings_sml.jpg)
For *idtech* disable all the export settings, Smoothing especially

(https://www.katsbits.com/images/misc/camero_radiant_sml.jpg)
models imported into Radiant and loaded into the editor
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 20, 2016, 09:08:57 AM
Thank you for your help. Unfortunately even when I uncheck all options it doesn't work :( I'm using the ASE250 (stable). Model is already triangulated and smoothed using Edge Split modifier with Edge Sharp markers. That modifier is not applied, though. Also I kept the Edge Seam markers to where the UV coordinates vertices are split.

Shouldn't it be wrong in there? May I change something to the markers or apply the modifier or do both?
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 20, 2016, 11:44:19 AM
Use ASE251 (https://code.google.com/archive/p/ase-export-vmc/downloads), the older script seems to be producing data Radiant can't see to get to grips with, resulting in an app crash - there's a significant difference between vertex position that seem to be the source of crashing when loading the models into the editor. ASE251 does work with Blender 2.73(a). Also make sure to Apply the Edge Split modifier before export.
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 20, 2016, 04:41:46 PM
Thank you. The model finally show up in Radiant. But now it crashes compiler :( It can't handle something and BSP compile crashes :( Only vis and lightmaps are generated :(
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 20, 2016, 05:28:53 PM
What's the error message? Or is the compiler just crashing?

For a model like that make sure you're not making it an inline model and generating collision using the key/value pairings, brush clipping should be all you need.
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 20, 2016, 06:12:13 PM
Just keeps crashing. Windows says "Not responding" :(

I do not have collision generated by key/value pairs, always using brushwork.
What does that mean, make it "an inline model"?
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: kat on June 20, 2016, 06:29:47 PM
'inline' basically forces the compiler to use the mesh for collision - it treats the models surfaces as if they're brushes (don't remember if they're actually converted to brush volumes or not though). The level compiles okay without the mesh?
Title: Re: [ASE] problem exporting mesh for Radiant
Post by: Polda18 on June 20, 2016, 07:34:20 PM
Nope. The level actually do not compile, but I have already previous version (with corrupted MD3 model with corrupted texture shown as missing in game), so the vis and lightmap got compiled to that outdated version instead...