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

Dienstag, 21. Februar 2023, 19:19

Textured 3d model

Hi guys

I have questions about a ready-made textured 3d model, to be more precise:
when connecting a model in xml, do I always have to write texurl=" " so that the textures are connected, and if I already have a textured model?
Let's say I have a 3d model, but the baked textures for this model are distributed in separate jpg files, how to make these textures all connected at the same time ? what should the code look like if in texurl=" " we specify the path to only one picture.


Thanks in advance, you will really help me *thumbsup*
Best regards, Nikolai

2

Dienstag, 21. Februar 2023, 19:39

if texurl is not set, krpano by default uses the textures defined inside the obj file.
i think this is always a link to the mtl file which then must exist as well ofc.
(for stl / depth files you need to define a texurl)

3

Mittwoch, 22. Februar 2023, 10:47

Hi,

right, just link to the .obj file - the .obj file itself will link to a .mtl file - and that will link to the textures.

Best regards,
Klaus

4

Mittwoch, 22. Februar 2023, 19:20

Thus, the scene with the 3d model to which the material (.mtl) will automatically connect will look like this:


<scene name="model_1" autoload="true">
<image>
<depthmap url="tourmodel.obj" scale="100" hittest="true" />
</image>

</scene>


where tourmodel.obj and tourmodel.mtl are in the same folder

5

Freitag, 24. Februar 2023, 10:37

Hi,

inside the .obj file (just a text file) there is line like this:

Quellcode

1
mtllib tourmodel.mtl

That's refers to the name of the .mtl file (a relative to the .obj file path could be used too here).

That means the obj and the mtl files not necessarily needs to have the same base filenames.

Best regards,
Klaus

6

Dienstag, 1. August 2023, 04:39

Hi,

right, just link to the .obj file - the .obj file itself will link to a .mtl file - and that will link to the textures.

Best regards,
Klaus
In my case. It doesnt link to mtl file. I need to specify texurl