|
 |
Sto cercando di utilizzare "stl2pov" per convertire degli oggetti creati con
Sketchup ed ottenere il contenitore per Povray. Una volta creato il solido in
Sketchup, lo converto in .stl con l'estensione apposita. Utilizzo poi "stl2pov"
mediante comando "dos" ed ottengo il file .inc senza apparenti problemi. Quando
poi carico il file ottenuto in Povray ed eseguo il comando "run", ottengo, come
Post a reply to this message
Attachments:
Download 'l383hdt.inc.txt' (11 KB)
|
 |
|
 |
Am 29.03.2025 um 06:53 schrieb Ignax:
> Uso Sketchup per costruire il mio modello; esporto il file ottenuto in formato
> "STL". Poi uso "stl2pov" per convertire il file "STL" in file"INC"senza
> apparenti problemi. Quando carico il file INC ottenuto in Povray, render tutto
> nero. Cosa sbaglio? Devo usare altre strategie per costruire i miei modelli?
> Grazie
I hope
https://www.deepl.com/de/translator
gave the right translation.
Your file declars an object only. You can use it in your scene with an
object-Statement and adding some kind of texture. The definiton of a
camera and a light_source will help as well.
For example:
light_source { <0,100,0>, <1,1,1> }
include "L383HDT.inc"
camera {
location <50,15,18>
look_at <0,0,18>
}
object { m_L383HDT
pigment { colour rgb <0,1,1> }
}
Best regards
Michael
Post a reply to this message
|
 |
|
 |
As MichaelJF pointed out, you need to have some sort of LIGHT source to be able
to see your mesh.
Try this:
#version 3.8;
global_settings {
assumed_gamma 1.0
}
#declare Location = <0, -12, -40>;
camera {
location Location
right x*image_width/image_height
up y
look_at <0, -12, 0>
}
sky_sphere {pigment {rgb 1}}
light_source {<20, 0, -50> rgb 1}
#declare E = 0.00001;
#include "l383hdt.inc"
#declare Min = min_extent (m_L383HDT);
#declare Max = max_extent (m_L383HDT);
#debug concat ("Min = ", vstr(3, Min, ", ", 0, 3), " \n")
#debug concat ("Max = ", vstr(3, Max, ", ", 0, 3), " \n")
object {m_L383HDT texture {pigment {rgb z*0.2} finish {specular 0.2}} rotate
x*90 translate y*Max.y }
- Bill
Post a reply to this message
|
 |