How to find the vertices of a 3D shape?

This topic has been viewed 19318 times and has 13 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: How to find the vertices of a 3D shape?

Post by enkonyito »

@ndorigatti
So that you can have the whole mesh to light up? Could be interesting for my Philips homroo light model, where the glass part would be a mesh light!
Yes it's the whole object that lights up like a 3D silhouette.
For your model, perhaps you could extract the glass part to turn it into light and then group it to the rest.


@Puybaret
Maybe this could be bound to triangles orientation. Did you try to reverse the order of the vertices?
By reversing the order of the vertices indices of each face, the emission of the light is oriented on the opposite side.
As there is no change of the scene (several geometric shapes) between each rendering (without closing the photo panel), I wonder if Sunflow would not keep some parameters in memory (after Java 3D export) which would have the consequence a random rendering. Especially with only one geometric shape present in the scene, the rendering is always correct.
triangle mesh light_geometric shape.sh3d


For those who want to test the mesh light rendering, first add these keys and their property values

Code: Select all

lightSourceX#n=0
lightSourceY#n=0
lightSourceZ#n=0
lightSourceColor#n=#919189
description#n=TriangleMeshLight
to your object in the PluginFurnitureCatalog.properties file of your light library.
Then install the PVR-1.7betaTest plug-in (simple photo rendering only).
Attachments
PVR-1.7betaTest.sh3p
(328.36 KiB) Downloaded 374226 times
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: How to find the vertices of a 3D shape?

Post by enkonyito »

Have you been able to turn objects into a triangle mesh light library?

How are they rendered?

Do you find this feature useful as a future version of the photo plug-in?
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: How to find the vertices of a 3D shape?

Post by enkonyito »

As this beta version of the plug-in is not 100% functional and does not seem to interest anyone, I do not think it will be made public.
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: How to find the vertices of a 3D shape?

Post by enkonyito »

With the YafaRay rendering engine it is no longer necessary to search for the coordinates of the vertices of an object.
Just use [font=courier new]meshlight[/font] type light with the [font=courier new]object ID[/font] .

Image Image
EnkoNyito
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests