PDA

View Full Version : Xenodream 2.3 with point cloud export


Tonttu
10-29-2010, 06:48 AM
The newly released Xenodream (http://xenodream.com/xd2newfeatures.htm) supports the exporting of 3d fractals as point clouds.

Art has an lscript to read CSV point cloud data. (http://www.newtek.com/forums/showthread.php?t=56965)

Already with the beta version, people created amazing motion graphics:
http://vimeo.com/groups/xenodream/videos/13411535

Anyone tried it with LW yet? Starbase1? Hope that script by Art still works.

névada
03-16-2011, 05:29 AM
Hi, Tonttu
I tried the csv script but it gives an error on line1
In fact i'm trying to import point clouds in Lw to include Modeler in a workflow using Photosynth 3D scanning exporting points with color in Meshlab.
I tried the same process to export xenodream to meshlab (re-writting the header in Oo calc).
Do someone succed to export colours from xenodream (demo)?

Tonttu
03-16-2011, 08:15 AM
Sorry I didn't try it, but maybe you could get help from:

http://tech.groups.yahoo.com/group/xenodreamers/

http://www.artssphere.com/contact.php

névada
03-26-2011, 08:45 AM
Hi Tonttu
I explored the workflow between xenodream and lightwave:
With the pointcoud export:
to keep the color of the mesh i transformed the .csv to .ply
(with Oo calc)

you can export the cloud in PLY (ASCII)
that's a plain text file with x,y,z,r,g,b
with the header i sent to you
but the r,g,b are a part of 256 i presume
so i multiplyded per 255 your r,g,b columns and replaced "," by "space" in Oo calc
+ the header...

usualy in MeshLab, we only need a header to open a point cloud:
ply
format ascii 1.0
element vertex XXXX
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
end_header

(XXXX) is the number of vertices

Despite an error when i open the ply:
unespected eof
i have the colored point cloud in the free Meshlab

I began to reconstruct the meshes:
Filters/Remeshing../Marching Cubes (APSS)
then:
Filters/Sampling/Vertex Attribute Transfer
source Mesh : the imported ply
Target mesh : the mc_mesh (made by the Marching Cubes )

I also imported a .obj mesh from XenoDream, which has very good
quality, and mapping the vertex colors from the ply file.
This works better,
but still results in jagged coloring especialy on hedges.
It needs the obj file to be centered and scaled to fit before the vertex attribute transfer.

Well it's not perfect but i'm just a newbee in Meshlab
but the workflow is open!

The problem now is:
Lightwave can't recognize the obj texture!!!!!!!!


have you a solution?
thanks

Tonttu
03-27-2011, 11:15 AM
I don't have a solution, but maybe you can share the .obj and texture so me and some forum lurkers can take a look at it? Upload it here, if it's big:
http://www.datafilehost.com/

art
05-04-2011, 07:34 AM
[QUOTE=névada;1123312]Hi, Tonttu
I tried the csv script but it gives an error on line1
[QUOTE]
I'll have a look at the script this evening. It's been a while since I wrote it and I don't remember all the details., but error on line1 sounds unusual. What version of LW are you using?
I think the script expects XYZ values in first three columns of the csv. Is that how you have it? If not, maybe the script (or the data?) needs to be adjusted accordingly.

Tonttu
05-04-2011, 08:34 AM
There's also a script by Red Oddity:
http://www.spinquad.com/forums/showthread.php?14348-Excel-data-to-LW&p=153302&viewfull=1#post153302

From the same thread, a commercial tool for animated stuff as well:
http://www.exosphere3d.com/pubwww/pages/csv2mot.html

Tonttu
05-04-2011, 01:03 PM
Now I understand after trying the export out myself:
-2.0306,-1.8323,1.2472,0.890,0.890,0.890
0.4515,-1.1020,1.1550,0.890,0.890,0.890
1.5832,1.0100,1.0697,0.890,0.890,0.890
0.9257,3.1294,0.9906,0.890,0.890,0.890

It gives rgb color data after xyz. Well, I think névada was referring to this.

art
05-04-2011, 01:27 PM
I see. I looked at the script, line1 refers to line1 of the csv file, not the lscript code.
The culprit is this block of code:

if(sizeof(tokens) != 3)
{
error("XYZ data error on line ", line_count);
return;
}

It checks if there are exactly 3 values per line. It should be safe to remove it out as long as XYZ data are in the first 3 columns.

EDIT: I attached updated script. I have no way of testing it at this moment but it should work.

EDIT2: since we already have the data it may be interesting to import RGB as well, maybe using 1 point polygons?

Tonttu
08-20-2011, 03:44 AM
Xenodream now has PLY export http://xenodream.com/xd2newfeatures.htm