Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 5. Juli 2023, 18:00

Unable to load the 3D model

When trying to load a 3D model of a simple cube from Blender in the .obj format into a new project's krpano tour.xml file, the 3D model doesn't appear on the screen. I've tried numerous variations and examples, but I can't figure out why the model isn't displaying. Please help, as I don't know where else to look.

Quellcode

1
2
3
<include url="%VIEWER%/plugins/depthmap_navigation.xml" />
<scene name="scene_1" title="1" onstart="" havevrimage.mobilevr="false" havevrimage.no-mobilevr="true" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" alt="" heading="">    <view fovmin="20" fovmax="150" />    <display depthrange="5,100000" />
    <image>        <depthmap url="panos/mod.obj" backgroundurl="panos/2.jpg" subdiv="0" axis="-y+x+z" scale="1.0" origin="0,0,0" hittest="true" />    </image></scene>


2

Mittwoch, 5. Juli 2023, 18:48

Quellcode

1
<scene name="dollhouse" autoload="true" title="hello">    <image>        <depthmap backgroundurl="panos/2.jpg" url="panos/mod.obj" subdiv="0" rendermode="3dmodel" hittest="true" scale="125" textured="true" waitforload="true" center="0,0,0" axis="+x+y+z"/>    </image></scene>

Please give a simple example of the implementation of the model in .obj format

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

3

Mittwoch, 5. Juli 2023, 18:52

Download the annotations plugin. It has a simple template to view 3D objects included. Replace the .obj with your own .obj and see if you can view it there?

4

Mittwoch, 5. Juli 2023, 18:59

Thank you very much for your help, but for some reason I am unable to download from your website when I click on the "free trial" button.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Mittwoch, 5. Juli 2023, 19:19

Hi,
You're probably have aan issue with the mtl or it's paths/files or the missing texurl.
https://krpano.com/docu/xml/#depthmap.texurl

.. or?

Tuur *thumbsup*

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

6

Mittwoch, 5. Juli 2023, 19:36

Thank you very much for your help, but for some reason I am unable to download from your website when I click on the "free trial" button.

You need to enter an amount (0 if you want to try the trial) and then click "i want this"

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »kme« (5. Juli 2023, 20:45)


kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

7

Mittwoch, 5. Juli 2023, 20:12

You could also put a small example online for us to take a look at, it would really help to identify what could be the issue.

8

Freitag, 7. Juli 2023, 11:43

Thank you very much. The problem was that the scale was set incorrectly, which caused nothing to load and the page to hang. Should the MTL file be automatically loaded or do I need to directly load it using texurl="panos/mod.mtl"? In my case, if the MTL is supposed to be loaded automatically, it didn't load, only the texture loaded. I'm wondering if the issue might be with the OBJ format provided by Blender or with specific material settings. What do you think? *squint*

Beiträge: 141

Wohnort: Russia, Komi republic, Uhta

Beruf: developer

  • Nachricht senden

9

Mittwoch, 12. Juli 2023, 10:54

The obj file should contain a link to the mtl file, which is usually located next to the obj file.
And mtl will automatically load krpano, and further read it and load all the textures that will be prescribed in it.

Hello from uhta3d )))
I'm in telegram: Lastromantik