BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

No faces created while loading this CSV File

2 posters

Go down

No faces created while loading this CSV File Empty No faces created while loading this CSV File

Post by zbx1425 Thu Jun 28, 2018 10:22 am

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. Rolling Eyes
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.)
zbx1425
zbx1425

Posts : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Back to top Go down

No faces created while loading this CSV File Empty Re: No faces created while loading this CSV File

Post by leezer3 Thu Jun 28, 2018 11:34 am

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)

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

No faces created while loading this CSV File Empty Re: No faces created while loading this CSV File

Post by zbx1425 Thu Jun 28, 2018 12:35 pm

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)
Well, my bad! The original data is in a 0~1 section and I forget to multiply it by 255.
zbx1425
zbx1425

Posts : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Back to top Go down

No faces created while loading this CSV File Empty Re: No faces created while loading this CSV File

Post by leezer3 Thu Jun 28, 2018 12:59 pm

No problem.

The wireframe probably ought to ignore the alpha value though Sad

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

No faces created while loading this CSV File Empty Re: No faces created while loading this CSV File

Post by leezer3 Thu Jun 28, 2018 9:33 pm

Current build now ignores the alpha when drawing wireframes; Using alpha here is nuts Razz

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

No faces created while loading this CSV File Empty Re: No faces created while loading this CSV File

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum