View Issue Details

IDProjectCategoryView StatusLast Update
0005539DarkRadiantModelspublic13.01.2024 05:31
Reportergreebo Assigned Togreebo  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version2.11.0 
Target Version3.2.0Fixed in Version3.2.0 
Summary0005539: OBJ files: loader supports usemtl keywords directly referencing material names (without .mtl file)
DescriptionFollowing a discussion on Discord, an OBJ file can be referencing the material directly through the usemtl keyword, without the need for an external .mtl file.
TagsNo tags attached.

Activities

greebo

greebo

21.08.2022 12:46

administrator   ~0015188

cube_with_usemtl.obj (550 bytes)   
# cube.obj
#
g cube

usemtl textures/common/caulk
 
v  0.0  0.0  0.0
v  0.0  0.0  1.0
v  0.0  1.0  0.0
v  0.0  1.0  1.0
v  1.0  0.0  0.0
v  1.0  0.0  1.0
v  1.0  1.0  0.0
v  1.0  1.0  1.0

vn  0.0  0.0  1.0
vn  0.0  0.0 -1.0
vn  0.0  1.0  0.0
vn  0.0 -1.0  0.0
vn  1.0  0.0  0.0
vn -1.0  0.0  0.0
 
f  1//2  7//2  5//2
f  1//2  3//2  7//2 
f  1//6  4//6  3//6 
f  1//6  2//6  4//6 
f  3//3  8//3  7//3 
f  3//3  4//3  8//3 
f  5//5  7//5  8//5 
f  5//5  8//5  6//5 
f  1//4  5//4  6//4 
f  1//4  6//4  2//4 
f  2//1  6//1  8//1 
f  2//1  8//1  4//1 
cube_with_usemtl.obj (550 bytes)   

Related Changesets

DarkRadiant: master 190d9224

21.08.2022 12:20

greebo


Details Diff
0005539: Add unit test and a test OBJ model with a usemtl keyword referencing the material name Affected Issues
0005539
mod - test/Models.cpp Diff File
add - test/resources/tdm/models/cube_with_usemtl.obj Diff File

DarkRadiant: master 8682e881

21.08.2022 12:46

greebo


Details Diff
0005539: Parse the OBJ usemtl keyword and use it as shader name of the currently parsed surface Affected Issues
0005539
mod - radiantcore/model/picomodel/lib/pm_obj.c Diff File

Issue History

Date Modified Username Field Change
17.02.2021 11:50 greebo New Issue
17.02.2021 11:50 greebo File Added: hellknight2.obj
17.02.2021 11:50 greebo Status new => confirmed
21.08.2022 12:46 greebo Target Version => 3.2.0
21.08.2022 12:46 greebo Assigned To => greebo
21.08.2022 12:46 greebo Status confirmed => assigned
21.08.2022 12:46 greebo Note Added: 0015188
21.08.2022 12:46 greebo File Added: cube_with_usemtl.obj
21.08.2022 12:46 greebo File Deleted: hellknight2.obj
21.08.2022 12:46 greebo Assigned To greebo =>
21.08.2022 12:46 greebo Assigned To => greebo
21.08.2022 12:47 greebo Changeset attached => DarkRadiant master 190d9224
21.08.2022 12:47 greebo Changeset attached => DarkRadiant master 8682e881
21.08.2022 12:47 greebo Status assigned => resolved
21.08.2022 12:47 greebo Resolution open => fixed
21.08.2022 12:47 greebo Fixed in Version => 3.2.0
13.01.2024 05:31 greebo Status resolved => closed