No faces created while loading this CSV File

Go down

No faces created while loading this CSV File

Post by zbx1425 on 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

Posts : 52
Join date : 2017-08-18

Back to top Go down

Re: No faces created while loading this CSV File

Post by leezer3 on 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 : 1189
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: No faces created while loading this CSV File

Post by zbx1425 on 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

Posts : 52
Join date : 2017-08-18

Back to top Go down

Re: No faces created while loading this CSV File

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

No problem.

The wireframe probably ought to ignore the alpha value though Sad

leezer3

Posts : 1189
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: No faces created while loading this CSV File

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

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

leezer3

Posts : 1189
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: No faces created while loading this CSV File

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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