No faces created while loading this CSV File
2 posters
Page 1 of 1
No faces created while loading this CSV File
When I tried to view this CSV file via Object Viewer there was not a single face created. No faces visible, no wireframe either...... But when it comes to normals it displays fine. No error was reported by route viewer and the file content seems fine because it actually contains AddFace calls, but it seems to be not working correctly. I can't understand what's wrong with my model file.
https://od.lk/d/MzFfMjIyMzAzMzFf/A.obj.csv
(Texture files are not presented though because I want to make it smaller to upload... But the problem is not even a single face is created, even the ones which are associated with color.)
https://od.lk/d/MzFfMjIyMzAzMzFf/A.obj.csv
(Texture files are not presented though because I want to make it smaller to upload... But the problem is not even a single face is created, even the ones which are associated with color.)
Re: No faces created while loading this CSV File
Your SetColor statements are the issue.
Take this example:
You're setting the face color to the following:
Red: 178
Green: 178
Blue: 153
Alpha: 1
An alpha value of 1 is essentially transparent. (0 = 100% transparent, 255 = not transparent)
Take this example:
- Code:
SetColor, 178, 178, 153, 1
You're setting the face color to the following:
Red: 178
Green: 178
Blue: 153
Alpha: 1
An alpha value of 1 is essentially transparent. (0 = 100% transparent, 255 = not transparent)
Re: No faces created while loading this CSV File
Well, my bad! The original data is in a 0~1 section and I forget to multiply it by 255.leezer3 wrote:Your SetColor statements are the issue.
Take this example:
- Code:
SetColor, 178, 178, 153, 1
You're setting the face color to the following:
Red: 178
Green: 178
Blue: 153
Alpha: 1
An alpha value of 1 is essentially transparent. (0 = 100% transparent, 255 = not transparent)
Re: No faces created while loading this CSV File
No problem.
The wireframe probably ought to ignore the alpha value though
The wireframe probably ought to ignore the alpha value though
Re: No faces created while loading this CSV File
Current build now ignores the alpha when drawing wireframes; Using alpha here is nuts
Similar topics
» Object faces not matching up perfectly
» One complex face vs. several simpler faces
» New Renderer causes EmissiveColor faces turning dark in routes (Latest 1.7.1 versions)
» Loading textures
» Open BVE loading screen pic
» One complex face vs. several simpler faces
» New Renderer causes EmissiveColor faces turning dark in routes (Latest 1.7.1 versions)
» Loading textures
» Open BVE loading screen pic
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum