I did this some time ago
@Lainz: Very nice model. This is a long shot but could that model be used in the lainzmixer project if I renamed ‘dragonwindspropicos.obj’ and copied mtl & png into that folder? I tried that way with 2 other obj files from ‘tf3dm.com’ but got just a white screen cycling light to dark to light etc.
Unfortunately I’m not receiving sketchfab’s confirmation email (address is correct & its not in the spam folder) so I can’t download your model yet. Edit: email confirmed now but model not downloadable.
Another issue I didn’t think through: I’m currently using BGRABitmap Layers for plotting points over the base map layer. I’m not sure how or even if layers work with BGRAScene3D, BGLVirtualScreen, BGRAOpenGL & BGRAOpenGL3D. I’ll look into that.
Many thanks for your help again Lainz, all the best.
Hi, I have that model with a higher resolution image too. I uploaded the preview to that website because some time ago I was selling the 3D model, BTW I will send you a PM with a copy of it.
I did that demo with help of circular, that was not easy as calling a loading function but he improved the bgrabitmap code for loading a 3d model and a texture with a single procedure.
You need the .obj .mtl and .png for example, the first of course is the model, the second is the material file and third is the bitmap of that model.
Also the .mtl at the end must have:
map_Kd dragonwindspropicos.png
the map_Kd , most material files will not include it by default so you need to add it (the file I'm sending you by PM does not include it for example, you must add it).
Another thing is the zoom, is important to set it right, some models are too big and others too small, you need to figure if fits in the screen well.
And another thing is the resolution of the bitmap, if is too big it will not render! There is a texture resolution limit by OpenGL and by your graphics card (another example is the file i'm sending it by PM, the resolution is very high, but it works, just you need to change the format from tif to PNG).
Attached how the model I'm sending you looks with the lainzmixer demo.
With this changes, see the object name and the Scale method:
inherited Create;
FetchDirectory := '.';
with FetchObject('earth.obj', True) do
begin
// Perfectly aligned with Blender 'Front view'
MainPart.RotateZDeg(180, False);
MainPart.RotateYDeg(180, False);
MainPart.Scale(3.5);
end;
This model is realy very high res, it will be realy slow... well I've updated the model allowing Download in Sketchfab.
BUT if you can download the file I'm sending you by PM is has the .blend model that you can tune and set a different ammount of subdivisions with the subsurf modifier. For example if you set it to 0 and export the model will be like low poly but will run really fast in the lainzmixer demo. Try different values of subsurf and that's all.
Well here it is, anyone can dowload in Sketchfab or here, no annoying PM
https://mega.nz/#!6F8jRDjI!McHcRboueCF6n41fVEkzG54z9-NIhOolNUa_X-dMVt8