Vertex colours?
 1-10  11-30  31-35

Previous
Next
 From:  amur (STEFAN)
8623.11 In reply to 8623.10 
Hi Marco,

sure it can! It is only handled differently from app to app with vertex colors in the obj
format, because it is not a standard, yet.

I do this all the time with .obj and vertex colors with meshlab baking to get vertex
colors from an obj into Maxwell Render, as textures. ;-)

Best regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
8623.12 In reply to 8623.11 
P.S. simply export your colored sphere from 3DCoat as .obj and import it into Meshlab
and you should see the vertex colors in Meshlab.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.13 In reply to 8623.11 
Ok Michael.

@You : "...because it is not a standard, yet...."

Thanks a lot for the info. I didn't know.

@You ; "...obj and vertex colors with meshlab baking to get vertex colors from an obj into Maxwell Render, as textures..."

Interesting....I will try to do the same in order to use this vertex color data into TheaRender.

Thanks.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.14 In reply to 8623.12 
Thanks futagoza!

I will try.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.15 In reply to 8623.12 
I apologize fugatoza.....

In my previous message I replied to Michael but the response was from you....

My mistake.

Thanks for the info !

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
8623.16 In reply to 8623.8 
Hello Michael,

I'm not familar with obj-files. A while ago I read the posted document without interest in coloring, only by the way I saw something about vertex Colors.
It seems, that it is used in connection with textures. Nevertheless I painted a face of a cube in Meshlab. I can't decide if there is a difference in the structure of both files.
Test.obj -> Export from MoI
Test2.obj -> Import Meshlab - painting -Export

Have a nice day
Karsten
p.s.: Forgot the Material

EDITED: 6 Mar 2019 by KMRQUS

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8623.17 In reply to 8623.11 
Hi Stefan, from what I can see those .obj files with vertex colors are not adhering to the .obj spec, they're using a custom variant.

Basically they're not "official" .obj files since they are putting in extra stuff that's not mentioned in the spec. It's possible that could cause problems with programs that are expecting that the contents of the file should follow what the spec says. But I guess that's why it's something that you have to specifically turn on.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
8623.18 
Damned! What I have done with this comment! While I wrote some lines - a Experts battle:-) I only want to explain the concept - sorry for that ...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8623.19 In reply to 8623.16 
Hi Karsten, thanks for posting the file. So yes your test2.obj file doesn't adhere to the spec you linked to above - according to the spec a "v" line specifying a geometric vertex can have x y z and optionally a w value for curves.

Your test2.obj file has x y z r g b values for each vertex, but that isn't mentioned anywhere in the spec.

It seems to be a variant that's used by several programs though.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.20 In reply to 8623.18 
Hi Karsten !

LOL :)

I think we are crazy :)

Ciao!

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8623.21 In reply to 8623.18 
Hi Karsten, no worries, you just made me wonder if I had missed something in the spec since you posted the link to it! :)

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
8623.22 In reply to 8623.17 
Hi Michael,

yes, i agree. In Shade for example i can tell the program wich "spec" i can use
by telling it ZBrush or 3DCoat. Other scentific software i have used uses vertex
colors for example in other formats and when converting those meshes i can
use them in Meshlab too as .obj with vertex colors. So maybe Meshlab is the
proper software to handle vertex colors.

Best regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.23 In reply to 8623.19 
Hi Michael.

Please check this file : http://take.ms/ndHVu

It's a simple spehere again that I've painted in 3DC and exported NOT in ply but in OBJ.

This is how it is displayed in MeshLab :

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8623.24 In reply to 8623.1 
So it looks like SketchFab does support this type of individual vertex color model data too, so I guess they were saying you could use that to make color gradients if you wanted to. I had thought maybe they meant use simple materials and not texture maps.

Back to the original question from keith:

> Are the colours produced by Moi Vertex Colours?

The answer is no - colors coming from MoI are material colors which are assigned to entire faces, not individual vertex colors.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8623.25 In reply to 8623.24 
Hi Michael.

@You : "...the answer is no - colors coming from MoI are material colors which are assigned to entire faces, not individual vertex colors..."

Thanks for the info.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8623.26 
Question asked due to uncertainty :-)

So, MoI can make say a green triangle, with edges blue, red, and yellow.

Some unwritten export script could export a file with one blue, one red, and one yellow vertex?

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
8623.27 In reply to 8623.26 
Edges are not a part of an .obj file or many other formats.

So it had then to convert the edge colors to vertex colors
and what purpose should this serve? Vertex colors are used
for example for painting models and with MoI you can't paint meshes.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
8623.28 
P.S. and how, if there was such a script would it handle the colors of a triangle? :-)



Regards
Stefan
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
8623.29 
A better idea maybe would be to improve the random colors script,
so that it would allow to select color ranges or gradients.

Here are two examples:

The blobby cube was colorized with Wings3D and Jotero's Kitten
was colorized in Shade 3D with a color gradient script. Both techniques
uses faces (or in case of MoI patches, or imported .obj faces into MoI)
like the random color script for MoI.






Regards
Stefan

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8623.30 In reply to 8623.27 
Hi Stefan
My example was based upon very limited understanding, that the vertex colors are a property of the exported mesh, in unknown export format.
From Polygon mesh - Wikipedia:
"It is also possible for meshes to contain other such vertex attribute information such as colour, tangent vectors, weight ..... "

So the question is, can MoI geometry database contain colour information for the vertices, which could be exported in some format?
http://moi3d.com/forum/index.php?webtag=MOI&msg=8201.7
...but after the boolean calculation is completed MoI will decompose objects into manifold volumes and only put manifold objects into its own geometry database.

I'm in over my head :-)

- Brian

Edit, one last link, Rhino/Grasshopper related, not MoI:
http://grasshopperprimer.com/en/1-foundations/1-6/1_What%20is%20a%20Mesh.html
So MoI cannot do this...?

EDITED: 12 Oct 2017 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-10  11-30  31-35