Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - excalibur

Pages: [1]
1
Python and Java API / Saving all chunks
« on: May 18, 2015, 01:08:44 PM »
Hi guys,

Is it possible to save (script) all chunks into separate photoscan files.

example: from 1 file with 10 chunks -> 10 files including only 1 chunk?

thank you

2
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: May 06, 2015, 01:46:56 PM »
It me again :)

this is a question to everyone :)

I did some test with script from wiki. Now I have a problem/looking for solution, since I am doing fully automated process for one of my needs...

With script, I got 9 chunks and 9 meshes instead of one big mesh.  As I understand script does the following:

1. Makes multiple chunks (my case 9) with aligned photos based on first chunk with all photos in it and all of them are aligned
2. Makes Pointcloud data inside of region box
3. Makes mesh based on pointcloud data from previous stage
4. Makes texture for mesh.

Problem: If you combine (open) meshes in for example Autodesk Maya you can see some holes (look at the picture)



I understand why we get this problem. But question is. Is there any way in Agisoft to do this a bit different to remove this problem. My thoughts were:

1. Import photos
2. Align photos
3. Make dense pointcloud
4. Make mesh from dense pointcloud
5. Make multiple chunks for example 9 (duplicate all data from original chunk: mesh) with smaller regions, like in script from wiki
6. Create texture just for part of the mesh which is inside of the bouding box. I want eacht part to have for example 4k texture
7. Important part: Export mesh but only from active region. By that I mean if you have for example mesh (from step 4) of dimension 90m*90m inside of each of 9 chunks (which are 1/9 of this area - in this case 30m*30m). In this case the active region dimensions would work like boolean and would make perfect cut. I tried this manually using Geomagic and results are epic :) I divided mesh in 9 equal part usin planes.

8. happy Excalibur :)

So, is this kind of task possible inside of Photoscan?



3
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: May 06, 2015, 10:28:52 AM »
Looks like I had to reinstall Agisoft and clean register and so on.. works now :D

4
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 28, 2015, 12:08:22 PM »
UPDATE:

I tried on different machines with windows installed - script does not work. On mac script works like a charm. I am using windows 8.1. Can this be a problem? Which windows are you using.

thank you

5
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 25, 2015, 01:32:00 PM »
Hi,

I am sorry for late response.

About your question. Nothing happens. Weird thing is that i tried same script back home on my mac (running os 10.10.3) and latest version of Photoscan pro. Works like a charm. So I think problem is somewhere else. But so far I have no idea where the problem is. :o :)

6
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 03:42:24 PM »
after every press of "enter" nothing happens  :o after all 3 lines nothing happens. if i press enter one more time I get same error.  :o

7
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 03:28:40 PM »
>>> PhotoScan.app.version
c = PhotoScan.Chunk()
PhotoScan.app.document.addChunk(c)

  File "<console>", line 1
    PhotoScan.app.version
c = PhotoScan.Chunk()
PhotoScan.app.document.addChunk(c)
                       
   ^
SyntaxError: invalid character in identifier

8
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 03:09:21 PM »
yes it is 1.1.5.

i have updated Photoscan when you sad to update it...

confused right now  :D

9
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 02:32:45 PM »
I tried once again.

1. Open one project
2. Align photos
3. run script (copy paste from your link)
4. clicked on Split

Error

Script started
Traceback (most recent call last):
  File "C:/Users/Marko/Desktop/script.py", line 80, in <lambda>
    proc_split = lambda : self.splitChunks()
  File "C:/Users/Marko/Desktop/script.py", line 159, in splitChunks
    doc.addChunk(new_chunk)
TypeError: addChunk() takes no arguments (1 given)
>>>

10
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 02:17:57 PM »
I have just updated - running 1.1.5 and still the same result  :(

Should I change something in code or should it work as "copy - paste" ?

Error appears after i press Split button



11
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 02:08:28 PM »
Ok, my chunk has label [R].

I am using Photoscan 1.1.0

12
Python and Java API / Re: Split pointcloud/mesh in equal parts
« on: April 24, 2015, 01:59:18 PM »
Since I am a noobie... what exactly does it mean referenced Chunk

I tried to run this script and i get an error:

Script started
Traceback (most recent call last):
  File "C:/*****/*****/*****/script.py", line 80, in <lambda>
    proc_split = lambda : self.splitChunks()
  File "C:/*****/*****/*****/script.py", line 159, in splitChunks
    doc.addChunk(new_chunk)
TypeError: addChunk() takes no arguments (1 given)
>>>

13
Python and Java API / Split pointcloud/mesh in equal parts
« on: April 24, 2015, 10:10:16 AM »
Hi!

I am new to this forum and new to Agisoft :)

I have a question if it is possible (with Python script) to divide/split pointcloud or mesh in equal parts.

For example:

I have one chunk that has N photos that cover (in real life) area of one square kilometer. And now I would like to split this area in 10 equal parts (areas of 100m by 100m). For me it doesn't matter if I split generated pointcloud or generated mesh. But in the end I would like to have 10 equal parts for further post-processing in other software. But it need to be done inside of Agisoft. I know how to achieve this result by hand in Geomagic for example, but this is not what I am looking for.

So is it even possible in any way (or something with similar results) inside of Agisoft using Python API?

Thank your for any advice or suggestion.

14
General / Re: How do i increase texture quality
« on: April 24, 2015, 09:23:41 AM »
Hi!

I am new to this forum (was searching for some infos) and found your question. I have a solution. My background is from computer graphics and 3D design.

I have really large area (in real life scale) and huge mesh and was having problems with texture in the beggining. I guess you have only one mesh in Photoscan and you just export texture?

There are two things you can do:

1. Make larger texture. When you export texture default size is 4k (4096 in settings). Try to bring this value up - 16k (16384). This will make larger file -> larger texture. For better understanding open both textures in Photoshop and compare them. You will see difference. Keep in mind that this will slower your PC since it has to load huge texture.

2. More efficient approach to this problem is that you divide your mesh into multiple parts (more chunks if you want) and make textures (4k, 8k, 12k, 16k if you want) for each part.

Just try those 2 things and you will get better results :) it just need a bit of understanding about textures and CG :)

have a nice day.

Pages: [1]