Data embedded in PRO files

Started by
3 comments, last by Dr Pain 22 years, 6 months ago
I need to embed waypoint information into some of my PRO files. There will be a variable number of waypoints in each file, anywhere from 1 to 1000(?). Each waypoint would be the equivalent of a PR_POINT. Is this possible? What''s the best way? Ideally the artist would put in some kind of marker in 3DSMax, and those markers would be read out at runtime (but not visible). Dave
Advertisement
Maybe an animated dummy object with a position keyframe at each waypoint?

Author of Power Render (http:/www.powerrender.com)
How would I read that into my app?
First find the dummy segment in the entity (PR_FindSegment), then access the position keyframes list
using seg->pos_keys[keynum]

seg->num_pos_keys tells how long the key frame list is.

Chris



Author of Power Render (http:/www.powerrender.com)
Author of Power Render (http:/www.powerrender.com)
That worked perfectly.
Thanks Chris!

This topic is closed to new replies.

Advertisement