Hi,
I'm merging EdgeLib animated models (E3DSurface) into an OpenGL-rendered world. I've aligned the camera field-of-fiews (setting the EdgeLib camera to 60 degrees via
), and because the OpenGL-rendered world is significantly bigger than EdgeLib assumes (translations appear to be limited to approximately +/- 512), rather than translate the Edge camera (using WorldTranslate) and models (using E3DSurface->Translate) to the desired positions, I simply offset the models relative to the Edge camera. I have verified (by interactively moving the camera around in the scene) that the animated models are correctly locked to the OpenGL-rendered world.
Now I have the one remaining issue that the models appear "in front of" objects in the OpenGL world, when they should be "behind" those objects. Is there any chance that the Z-buffer is being cleared in the Perspective3D() call, or the WorldReset() call? Or is Edge internally using a range of Z values other than the OpenGL default (for Windows)?
Thanks for any insight,
Dave
I'm merging EdgeLib animated models (E3DSurface) into an OpenGL-rendered world. I've aligned the camera field-of-fiews (setting the EdgeLib camera to 60 degrees via
- Code:
display->Perspective3D(winW, winH, long(60 * 2048/180) );
), and because the OpenGL-rendered world is significantly bigger than EdgeLib assumes (translations appear to be limited to approximately +/- 512), rather than translate the Edge camera (using WorldTranslate) and models (using E3DSurface->Translate) to the desired positions, I simply offset the models relative to the Edge camera. I have verified (by interactively moving the camera around in the scene) that the animated models are correctly locked to the OpenGL-rendered world.
Now I have the one remaining issue that the models appear "in front of" objects in the OpenGL world, when they should be "behind" those objects. Is there any chance that the Z-buffer is being cleared in the Perspective3D() call, or the WorldReset() call? Or is Edge internally using a range of Z values other than the OpenGL default (for Windows)?
Thanks for any insight,
Dave