Our Gift to You: 20% off your own designs in Strong & Flexible Plastic through Dec 23, with promo code MY2014 · details
Home » Support » 3D Applications » MeshLab: Render obj file with my own computed normals
Search Search  
Show: Today's Messages    Show Polls    Message Navigator
icon4.gif  MeshLab: Render obj file with my own computed normals [message #29886] Wed, 29 June 2011 00:31 UTC
avatar ravi.dighade  is currently offline ravi.dighade
Messages: 1
Registered: June 2011
Go to all my models
Junior Member
I am trying to write a obj file with vertices. I am computing the vertex normals in my code and writing to this file as well. When I try to render this file in Meshlab it reads the vertices correctly, but when I go to 'Render->Show vertex normals', it is not showing the normals that I computed. Rather MeshLab computes its own normals and shows them.

I am not sure how I can visualize the normals that I computed/wrote to file. I want to apply Meshlab shader later based on my computed normals.

To test this I created a test obj file-

vn 0.517350 0.517350 0.517350
v 0.500000 0.500000 0.500000
vn -0.333333 0.666667 0.666667
v -0.500000 0.500000 0.500000
vn 0.666667 -0.333333 0.666667
v 0.500000 -0.500000 0.500000
vn -0.666667 -0.666667 0.333333
v -0.500000 -0.500000 0.500000
f 1//1 2//2 3//3
f 4//4 3//3 2//2

This is just one square. Now if I change the normal values in this file, it still shows its own vertex normals when I select 'Render->Show vertex normals'.
How can I have my own normals and apply shader that works on my computed normals?? Please help.

Thanks!!

 
   
Previous Topic:Combining multiple models (parts) in NetFabb?
Next Topic:Format conversion with MESHLABS

Logo

Hello.

We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.