Advertisement

Need you help again ...

Started by January 05, 2002 03:07 PM
3 comments, last by Leyder Dylan 23 years, 1 month ago
Hi, I need your help again ... For my T3D converter, I''ve a line in the T3D : Location=(X=%f,Y=%f,Z=%f) My problem is that the line is never like that ! Sometimes, the line looks like this, it depends if the polygon is placed or not in the space : Location=(X=512.000000) or Location=(Y=123.000000) or Location=(X=512.000000,Y=126.0000) or Location=(X=512.000000,Z=129.0000) or Location=(Z=5) or Location=(X=1,Y=-1,Z=6) etc ........ I''d like to write a function for conserve the X, Y, Z values and if the values aren''t in the line, the values = 0.0f Someone can help me ? Thanks in advance ======================== Leyder Dylan http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
this may sound stupid but did you clear the values before using them?
Advertisement
Okay I know nothing about what you''re doing, but it seems like you should check in the line for "X=" or the like to see whether not to expect it.

Let me back up. You using sscanf()?
Hi,

I use "fscanf" because I read i a file.

Yes, the values are = 0.0f

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
I''ve fixed the problem.

Thanks.

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/

This topic is closed to new replies.

Advertisement