Hi! I hope someone can help. I have loaded an obj-file into a TFreeForm. I have the following code: GLFreeForm.LoadFromFile('BishopWFinaalLowPoly.Obj'); GLFreeForm.Material.Texture.Disabled := False; GLFreeForm.Material.Texture.TextureMode := TGLTextureMode.tmReplace; There seems to be no texture. Must I load the mtl-file seperately for it to display texture? If so, what unit must I add? I know you must add GLS.FileOBJ to load obj-files? Your help will be much appreciated?
I rendered a chessboard where all of the chess pieces are imposters. How can I bring a certain chess piece to the front (rendered last)? I tried the following code: GLDirectOpenGL.MoveLast; GLDirectOpenGL.Visible := False; GLDirectOpenGL.Visible := True; AND GLDirectOpenGL.MoveFirst; GLDirectOpenGL.Visible := False; GLDirectOpenGL.Visible := True; Can someone maybe hint me in the right direction?
Hi! Problem solved! With 'GLStaticImposterBuilder.SamplingRatioBias := 0.5' everything works as expected! Thank you.
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! 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!...
Hi Pavel! Sorry, my mistake! Thank you for the help.
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.
These two files are also important: