
Still no success, I'm really getting frustrated
Hi guys,
You may remember I posted about 10 days ago about loading 3D Studio Max files. I still haven''t resolved the problem, and I don''t think I''ve even isolated it
I have another program (3D Exploration shareware) that can read the model and output the data to a CPP file, so I can see what the data is. When I try and read the data myself though, particularly the Face chunk, I can read in the first 9 faces data correctly, and then the numbers go thru the roof. I''m getting values of about 46000, when it''s a simple 2 object model.
Now I''m pretty sure the file isn''t corrupt, because 3D exploration can read the model correctly. I had another problem earlier where I wasn''t allocating enough memory for my array for the vertices, and this seemed to alter the data I was reading from the file. Is this possible? And is it possible that I have another memory/other bug that is in no way related to the problem I''m getting?
I really can''t see where in my code I go wrong. I scan the file first to find out how much space I need for vertices and faces, and then I go back thru the file and read the data in, and the data is corrupted half way thru.
If anyone can give me a suggestion, I''d appreciate it greatly.
Thanks
$£¥
We scratch our eternal itch
A twentieth century bitch
We are grateful for
Our Iron Lung

We scratch our eternal itchA twentieth century bitchWe are grateful forOur Iron Lung
This sounds like a problem I had when I was trying to load .3ds files. Unfortunately I can''t remember what I did to solve it since this was over a year ago.
Since then I decided that the .3ds file format wasn''t flexible enough for my needs and I have written various plugins for different programms (which wasn''t nearly as hard as I first thought it would be). I started with writing a plugin for the program you mentioned (3d exploration). The SDK is up on there site. I''ve also written plugins for 3D Studio Max and Milkshape, the latter of which also supports bones. At the end I noticed that it was easier to write a plugin then to try to read in a .3ds file
If you still want to read one in I suggest you download a hex editor and use that (That''s what I did to write a .3ds reader, and I couldn''t have done it without one!). I suggest Hiew (Hackers view).
Since then I decided that the .3ds file format wasn''t flexible enough for my needs and I have written various plugins for different programms (which wasn''t nearly as hard as I first thought it would be). I started with writing a plugin for the program you mentioned (3d exploration). The SDK is up on there site. I''ve also written plugins for 3D Studio Max and Milkshape, the latter of which also supports bones. At the end I noticed that it was easier to write a plugin then to try to read in a .3ds file

If you still want to read one in I suggest you download a hex editor and use that (That''s what I did to write a .3ds reader, and I couldn''t have done it without one!). I suggest Hiew (Hackers view).
Prosser: But the plans were on display.Arthur Dent: On display? I eventually had to go down to the cellar.Prosser: That's the display department.Arthur Dent: With a torch.Prosser: The lights had probably gone.Arthur Dent: So had the stairs.Prosser: But you did see the notice, didn't you?Arthur Dent: Oh, yes. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign outside the door saying "Beware of the Leopard." Ever thought of going into advertising?
Thanks, I''ve got Hiew, but the plot has thickened ;(
Can someone please explain how the Build->Clean command works, because yesterday I clicked it, then my code compiled correctly. Unfortunately I hadn''t backed the code up, and I altered some things, and then, when I changed a couple of things, (can''t remember everything I altered, or from what
) it wouldn''t compile again.
I''m not sure, but I think it''s got something to do with the array I made to store the face data.
Originally I had the declaration like this :
int (*Face)[4] (I think)
but then I changed it to
int *Face // And just made a single dimensioned array 4 times the size. This seemed to work, after I had used the clean command, but then when I changed it back, it wouldn''t work any more. Unfortunately I also made some other adjustments, but I can''t remember exactly what I changed to what. Now I can''t get it working any more
We scratch our eternal itch
A twentieth century bitch
We are grateful for
Our Iron Lung
Can someone please explain how the Build->Clean command works, because yesterday I clicked it, then my code compiled correctly. Unfortunately I hadn''t backed the code up, and I altered some things, and then, when I changed a couple of things, (can''t remember everything I altered, or from what

I''m not sure, but I think it''s got something to do with the array I made to store the face data.
Originally I had the declaration like this :
int (*Face)[4] (I think)
but then I changed it to
int *Face // And just made a single dimensioned array 4 times the size. This seemed to work, after I had used the clean command, but then when I changed it back, it wouldn''t work any more. Unfortunately I also made some other adjustments, but I can''t remember exactly what I changed to what. Now I can''t get it working any more

We scratch our eternal itch
A twentieth century bitch
We are grateful for
Our Iron Lung
We scratch our eternal itchA twentieth century bitchWe are grateful forOur Iron Lung
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement