Hi everyone! I created an imposter of TGLFreeForm (chess rook). The problem is that the imposter is not renderered in full but basically cut in half. Everything work fine when I created an imposter of the teapot. Also when I modeled an object in Blender and loaded into a TFreeForm everything worked as expected. I then downloaded a 3d model from the internet and loaded it into a TGLFreeForm and I then experienced the same problem again. In the screenshot the TGLFreeForm is the rook on the left and the imposter is just to the right. I don't know what is causing this problem! I send an image as an attachment. Here is my code:
Global variables declared in var section of interface of the unit:
GLMaterialLibrary1, MaterialWhite, GLFreeFormTest, GLCamera, GLRenderPoint, GLStaticImposterBuilder .
Hi Pavel!
Thank you for the reply! When I run the Pawn demo it says: 'Could not open file: ashwood.jpg'. It happens when the RotationSolid tries to load the texture.
Where can I download the 'ashwood.jpg' file if you don't mind?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! I played around with the position and scale of visibility, but no luck! I don't know what is meant by the 'volume' of visibility. For some or other reason the imposter is cut in half compared to the 3d model from which it is built. Does anyone have some ideas? I think it must be something trivial since it only happens with some 3D models and not with others. What baffles me the most is that the imposter is rendered just next to the 3D model from which it is built, yet is not rendered properly! Honestly I don't know how to approach this problem. Any more help will be much appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! I am still struggling with the same problem. This time I include the whole project as an attachment. If there is an angel out there that can maybe run this project and help me to solve this problem it will be much appreciated! I promise not to bug this forum anymore after today about this matter!
Hi everyone! I created an imposter of TGLFreeForm (chess rook). The problem is that the imposter is not renderered in full but basically cut in half. Everything work fine when I created an imposter of the teapot. Also when I modeled an object in Blender and loaded into a TFreeForm everything worked as expected. I then downloaded a 3d model from the internet and loaded it into a TGLFreeForm and I then experienced the same problem again. In the screenshot the TGLFreeForm is the rook on the left and the imposter is just to the right. I don't know what is causing this problem! I send an image as an attachment. Here is my code:
Components:
GLScene1, GLSceneViewer1, GLDummyCube1, GLDirectOpenGL1 .
Global variables declared in var section of interface of the unit:
GLMaterialLibrary1, MaterialWhite, GLFreeFormTest, GLCamera, GLRenderPoint, GLStaticImposterBuilder .
I kindly ask for diagnosis and treatment!
Jacobus,
Adjust position, scale or volume of visibility for your pawn like in https://sourceforge.net/p/glscene/code/HEAD/tree/trunk/Demos/Delphi/extrusion/pawn/
Pavel
These two files are also important:
Hi Pavel!
Thank you for the reply! When I run the Pawn demo it says: 'Could not open file: ashwood.jpg'. It happens when the RotationSolid tries to load the texture.
Where can I download the 'ashwood.jpg' file if you don't mind?
Thank you.
Hi Jacobus,
It not says, all textures and models are in https://sourceforge.net/p/glscene/code/HEAD/tree/trunk/Demos/media/
Thank you back.
Hi Pavel!
Sorry, my mistake! Thank you for the help.
Hi! I played around with the position and scale of visibility, but no luck! I don't know what is meant by the 'volume' of visibility. For some or other reason the imposter is cut in half compared to the 3d model from which it is built. Does anyone have some ideas? I think it must be something trivial since it only happens with some 3D models and not with others. What baffles me the most is that the imposter is rendered just next to the 3D model from which it is built, yet is not rendered properly! Honestly I don't know how to approach this problem. Any more help will be much appreciated!
Hi! I am still struggling with the same problem. This time I include the whole project as an attachment. If there is an angel out there that can maybe run this project and help me to solve this problem it will be much appreciated! I promise not to bug this forum anymore after today about this matter!
Hi! Problem solved! With 'GLStaticImposterBuilder.SamplingRatioBias := 0.5' everything works as expected! Thank you.