Skip to main content
GameDev.net gamedev.net
🔒 Locked

Saving X files

Started by thedo Mar 23, 2003 at 12:57 PM 0 replies 300+ views
Original Post
thedo
thedo
I am having a bit of a dilema. I aam trying to save an x-file using D3DXSaveMeshToX(). This works OK if i dont set an attribute table/range/buffer (depending on which bit of the docs you wish to take its name from). However when I use any method of filling the attribute table (either using SetAttributeTable, or locking/memcpy-ing/unlocking) of the mesh the Save function access violates. Nothing funny in the debug spew and all HRESULTS are S_OK (including those to fill the buffer). I have searched the forums (questions about saving x-files seem to be unanswered) and t''internet and this subject in general seems to be skipped most of the time. Any help would be much appreciated. Neil WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
thedo
thedo
Nobody saves x-files?

The point of the exersize is to converts Quake3 BSP files to x-files. Why you ask? Well why not? I really wanted to compare how performance differs with my BSP engine and my (personally) optimized x-file rendering. If anyone has used this function any advice or example code would be nice.

Cheers

Neil


WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.