POV-Ray : Newsgroups : povray.newusers : Conversione file .stl in .inc per povray Server Time
8 Apr 2025 17:20:49 EDT (-0400)
  Conversione file .stl in .inc per povray (Message 1 to 4 of 4)  
From: Ignax
Subject: Conversione file .stl in .inc per povray
Date: 29 Mar 2025 01:40:00
Message: <web.67e78794fd38b77354ca2d0b96b6cee@news.povray.org>
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)

From: Ignax
Subject: Re: Conversione file .stl in .inc per povray
Date: 29 Mar 2025 01:55:00
Message: <web.67e789acae42d83b354ca2d0b96b6cee@news.povray.org>
"Ignax" <ign### [at] liberoit> wrote:
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


Post a reply to this message

From: MichaelJF
Subject: Re: Conversione file .stl in .inc per povray
Date: 29 Mar 2025 02:40:25
Message: <67e795d9$1@news.povray.org>
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

From: Bald Eagle
Subject: Re: Conversione file .stl in .inc per povray
Date: 29 Mar 2025 08:50:00
Message: <web.67e7ec2aae42d83b1f9dae3025979125@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.