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.

Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

1

Samstag, 11. Februar 2023, 22:23

PolyspotPrinter (Blender Addon)



Create 3D polygonal hotspots with Blender

  • The PolyspotPrinter translates all position information for each point and outputs it as krpano hotspot-code in the console
  • You can enter a name and a style
  • You can print multiple hotspots at once
  • You can split 3 dimensional objects into several flat objects


You can get the addon on Gumroad and pay what you want!

More infos/example here:
der-mische.de/polyspotprinter/

Short video on YouTube

..and some more examples (from Tuur) here in the forum.

Happy blending! *smile*

2

Sonntag, 12. Februar 2023, 03:27

*thumbsup* *thumbsup* *thumbsup* *thumbsup*

3

Freitag, 23. Juni 2023, 18:06

Congratulations for this plugin. *thumbsup*
I will use it for future projects!
I encountered some problems with...
It does not like holes in the a surface like a window.
»yannoch« hat folgendes Bild angehängt:
  • Sans titre-1.jpg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »yannoch« (24. Juni 2023, 10:06)


4

Samstag, 24. Juni 2023, 05:35

Great! *thumbsup* *thumbsup* *thumbsup*

Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

5

Samstag, 24. Juni 2023, 10:47

Congratulations for this plugin. *thumbsup*
I will use it for future projects!
I encountered some problems with...
It does not like holes in the a surface like a window.


Hello!
Thank you! Glad you like it! *smile*

It depends on the shape of the polygons if the hotspot is displayed correctly.
Try to subdivide the large area to fix the problem.



Best regards!

6

Samstag, 24. Juni 2023, 11:25

Nothing change.

I have tryed a couple of time multiple topologies, disconnect some polygones, With or without ngones, but the issue still present.
The issue come from vertex indexing. It doesn't matter how the topology is made.

The script take vertex not in a good order.
And in the xml, all vextrex index are thrown raw.
krpano takes the first three indexes and builds a triangle, and take the next three, etc....

The only solution i found is to manage myself the order of index, but is realy difficult and boring.
But technically it is impossible to build a mesh with a hole with these methods, no matter the order of the indexing.


Can you migrate your blender plugin for Maxon Cinema 4D ?
»yannoch« hat folgende Bilder angehängt:
  • Cap112339.jpg
  • Sans titre-1.jpg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »yannoch« (24. Juni 2023, 11:44)


Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

7

Samstag, 24. Juni 2023, 11:46

Nothing change.

I have tryed a couple of time multiple topologies, disconnect some polygones, With or without ngones, but the issue still present.
The issue come from vertex indexing. It doesn't matter how the topology is made.

The script take vertex not in a good order.
And in the xml, all vextrex index are thrown raw.
krpano takes the first three indexes and builds a triangle, and take the next three, etc....

The only solution i found is to manage myself the order of index, but is realy difficult and boring.
But technically it is impossible to build a mesh with a hole with these methods, no matter the order of the indexing.


Can you migrate your blender plugin for Maxon Cinema 4D ?



Yes the order of the points is important.
If you use my addon, all points are output in the correct order!

Since you show a screenshot of C4D, I assume that the error is NOT caused by my Blender-addon, right?

Please clarify this!

8

Samstag, 24. Juni 2023, 12:19

Some time, with a shape like this: U , the order isnt in a good order.
I tried many times and the order from the plugin no correctponding with the vertex mesh sturcture order. I dont know why...
But if you want we can work together. I would be happy to help you ! (I specialize in 3D)

if you take 5min you will understand that with this method of building mesh in krpano, it is impossible to build a mesh with a hole.
Take 1 min, and draw the points of each vertex, then connect them 3 by 3. You will see that it is a real headache and that it is impossible without creating unwanted polygons or go back.


On Blender or Cinema4D the model is displayed correctly because it knows which vertices are connected to each other, but in krpano the mesh is created on the fly with only vertex positions then it connects them to each other, what causes problems.
»yannoch« hat folgendes Bild angehängt:
  • Cap121357.jpg

Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

9

Samstag, 24. Juni 2023, 12:49

  1. Use Blender!
  2. Use the PolyspotPrinter Addon!
  3. Create the shape as shown on the image
  4. Use the 'Meshsplitter' (it is part of the addon)
  5. Press 'Prints Points3D'

Result:
https://der-mische.de/panorama/polyspotprinter/hole.html

10

Samstag, 24. Juni 2023, 12:54

take a look of attached files.
i mean, we lost 2 vertex to close mesh.
»yannoch« hat folgende Bilder angehängt:
  • c4d mesh.jpg
  • blender mesh.jpg
  • krpano.jpg

11

Samstag, 24. Juni 2023, 13:02

  1. Use Blender! - I use blender
  2. Use the PolyspotPrinter Addon! - i use PolysportPrinter addon
  3. Create the shape as shown on the image - its created
  4. Use the 'Meshsplitter' (it is part of the addon) - tried too but create a lot of spot
  5. Press 'Prints Points3D' - yes i know.





i know the process, really ! with a convex mesh without hole its ok.
But with a complex mesh, we have issues.



can i send you my mesh? Or create a simple plane with hole.

Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

12

Samstag, 24. Juni 2023, 13:23

The meshsplitter is needed for complex shapes. Without it won't work..

This is how it looks in Blender after I used the mesh splitter:


And here the result in KRP:


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<style name="Yellow" fillcolor="0xFFFF00"
			borderwidth="0"
			bordercolor="0xFFFF00"
			borderalpha="0.0"/>
		
		<hotspot name="PolySpot1" style="Yellow" points3d="-440.74, -119.67, 906.65, -440.74, 119.67, 906.65, -600.0, 300.0, 906.65, -600.0, -300.0, 906.65" />
		<hotspot name="PolySpot2" style="Yellow" points3d="126.54, -545.68, 906.65, 264.07, -408.15, 906.65, -264.07, -408.15, 906.65, -126.54, -545.68, 906.65" />
		<hotspot name="PolySpot3" style="Yellow" points3d="126.54, -545.68, 906.65, 264.07, -408.15, 906.65, 264.07, -936.29, 906.65, 126.54, -798.76, 906.65" />
		<hotspot name="PolySpot4" style="Yellow" points3d="-264.07, -936.29, 906.65, 264.07, -936.29, 906.65, 126.54, -798.76, 906.65, -126.54, -798.76, 906.65" />
		<hotspot name="PolySpot5" style="Yellow" points3d="-126.54, -798.76, 906.65, -126.54, -545.68, 906.65, -264.07, -408.15, 906.65, -264.07, -936.29, 906.65" />
		<hotspot name="PolySpot6" style="Yellow" points3d="-600.0, 300.0, 906.65, 69.26, 300.0, 906.65, -136.11, 119.67, 906.65, -440.74, 119.67, 906.65" />
		<hotspot name="PolySpot7" style="Yellow" points3d="499.41, -147.75, 906.65, 600.0, -300.0, 906.65, -600.0, -300.0, 906.65, 69.26, -147.75, 906.65" />
		<hotspot name="PolySpot8" style="Yellow" points3d="600.0, -300.0, 906.65, 600.0, 300.0, 906.65, 499.41, 300.0, 906.65, 499.41, -147.75, 906.65" />
		<hotspot name="PolySpot9" style="Yellow" points3d="-136.11, -119.67, 906.65, 69.26, -147.75, 906.65, 69.26, 300.0, 906.65, -136.11, 119.67, 906.65" />
		<hotspot name="PolySpot10" style="Yellow" points3d="69.26, -147.75, 906.65, -600.0, -300.0, 906.65, -440.74, -119.67, 906.65, -136.11, -119.67, 906.65" />

13

Samstag, 24. Juni 2023, 16:30

"The meshsplitter is needed for complex shapes."


Yes, but it will create as many polyspots as quad, and this causes problem when hovering to call action or when I want the whole polyspot to be highlighted for example.

Mische

Fortgeschrittener

  • »Mische« ist der Autor dieses Themas

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

14

Samstag, 24. Juni 2023, 17:52

You are right about that.
..But I think it is not possible to create a single polygon hotspot with a hole. Neither in krpano nor in any 3D software.

However, this could be a workaround for hover effects for example:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
                <action name="over">
			for(sub(i, hotspot.count, 1), i GE 0, dec(i), 
			  if(hotspot[get(i)].style == "Yellow",
				assignstyle(hotspot[get(i)], "Red")
			  );
			); 
		</action>
		
		<action name="out">
			for(sub(i, hotspot.count, 1), i GE 0, dec(i), 
			  if(hotspot[get(i)].style == "Red",
				assignstyle(hotspot[get(i)], "Yellow")
			  );
			);
		</action>

		
		<style name="Yellow" fillcolor="0xFFFF00"
			borderwidth="0"
			onover="over();"
			onout="out();"
			/>
			
		<style name="Red" fillcolor="0xFF0000"
			borderwidth="0"
			onover="over();"
			onout="out();"
			/>


Result:
https://der-mische.de/panorama/polyspotprinter/hole.html