View Issue Details

IDProjectCategoryView StatusLast Update
0006517The Dark ModModelspublic28.04.2024 10:42
Reporterjonri Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSArch 
Product VersionTDM 2.12 
Summary0006517: Can't load .obj model exported from Blender without tweaks
DescriptionWhen I export a .obj model from Blender, it will load in DarkRadiant but not in-game. It fails with the following error:

------------- Warnings ---------------
during test_obj...
WARNING:Couldn't load model: 'models/testme.obj'
WARNING:file /fms/test/models/testme.obj, line 1: more than one dot in number

The exported model contains the following header:

# Blender 4.0.2
# www.blender.org

It seems that for some reason the code is trying to parse the comments. Editing the file and changing the line to
# Blender 4.0
works around the issue, but this will get bothersome when iterating on a design or building out a larger library of models.
Steps To Reproduce1. Create any model in Blender
2. Export it as a .obj file
3. Place it in a map
4. Run the map
Additional InformationSample obj model is attached
TagsNo tags attached.
Attached Files
testme.obj (88,358 bytes)   

Activities

jonri

jonri

28.04.2024 10:42

reporter   ~0016670

There is a similar issue with .obj files exported from DarkRadiant (tested with 3.9.0). The warning is:
"line 1: newline inside string"

This OBJ file's line 1 is:
# Generated by DarkRadiant's OBJ file exporter

The single ' is presumably getting parsed as the start of a string. This issue should also be solved by not attempting to parse the comment lines.

Issue History

Date Modified Username Field Change
04.04.2024 12:01 jonri New Issue
04.04.2024 12:01 jonri File Added: testme.obj
28.04.2024 10:42 jonri Note Added: 0016670